I am in the process of switching from Xen to qemu-kvm. My current Xen installation has a number of LVM volumes each with a partition (rather than a full disk image). In Xen, I start each VM with a configuration like so:
kernel = "/boot/vmlinuz-2.6.18-128.4.1.el5xen"
ramdisk = "/boot/initrd-xen-2.6.18-128.4.1.el5xen"
disk = [ 'phy:/dev/vmdata/vm-standalone,sda1,w' ]
I now want to reuse these VMs but start them under kvm instead. It seems that virt-install --import
would let me do this, using --boot kernel=<kernel>,initrd=<initrd>
, but I don't see how I can instruct virt-install to attach the existing volume as boot/root file system. Is this possible?