thomas fan
2007-Aug-28 07:43 UTC
[Xen-users] how to setup a hvm using image file, which include LVM partition, as backend
Basically, I want to use a VMWare image in the XEN. I have a RHEL43 installation using LVM at VMWare, and then I convert the .vmdk file into a raw .img file using qemu-img file, name it as rhel43-flat.img. #fdisk -l -u rhel43-flat.img You must set cylinders. You can do this from the extra functions menu. Disk rhel43-flat.img: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System rhel43-flat.img1 * 63 208844 104391 83 Linux rhel43-flat.img2 208845 41929649 20860402+ 8e Linux LVM Partition 2 has different physical/logical endings: phys=(1023, 254, 63) logical=(2609, 254, 63) I searched a lot, there are follwing instructions on how to setup a hvm: # lvcreate -L 20G -n rhel43 vg # dd if=rhel43-flat.img of=/dev/vg/rhel43 bs=1M It uses a logical volume to finish this job, however I want to know if there is a way to setup the hvm using the file as backend instead of LVM(We can split the original image into multiple image through dd, but just not use a logical volume). Is there anybody having some ideas? Thanks, Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users