[xen-tools-discuss] Automatic LVM-based FS creation on Debian guest installation

nik0 vp nik0_vp at hotmail.fr
Mon Sep 1 10:23:31 CEST 2014


Hi,



I'm new to Xen, i've search through wiki and different site/help/discuss archives but didn't find the solution to my little problem.



Well, I'd like to create a debian VM with the cmd tool xen-create-image 
but i'd like to create it with lvm on the guest AND on the dom0 BUT with
 partitioning only on the domU side.


Scheme : 


                                                                                               FS (/, /tmp, /var ....)
                            |
                            lv_* (LV)
                            |
                            rootvg (VG)
                            |
                            xvdap1 (PV)
                            |
Dom U                  xvda (Disk)
                            |
                            lv_vm (LV)
                            |
Dom0                   vmVG (VG) 



As for creating VG/LV on the dom0, it's ok.

As for using the LV as a block device to create the domU, it's ok  (--image-dev option)



Now i'm stuck, how can I create FS on the domU ? There is a nice 
directory to describe the partitions (/etc/xen-tools/partitions.d/) but 
the xen-tools create them on the dom0.



I know that what I'm trying to achieve is possible since I've done it 
manually using the debian installer, but i'd like to automate it.


Thanks for your time and answers,

Regards,


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xen-tools.org/pipermail/xen-tools-discuss/attachments/20140901/a1af893c/attachment.html>


More information about the xen-tools-discuss mailing list