To convert the LVM disk to qcow2 formatted disk image,
Use lvdisplay to get the Logical volume name
$ sudo lvdisplay
Use qemu-img to convert to the required image format
# qemu-img convert -O qcow2 /dev/mapper/lv_name <destination_file>.qcow2
eg:
# qemu-img convert -O qcow2 /dev/mapper/disk1 disk1.qcow2
This will be useful to replicate the virtual machines to other hardware.
./arun
Leave a Reply