Hi all,
I would like to convert an LVM based disk to VHD format.
I have done it successfully by getting a backup (vma.lzo) and then decompressing it, extracting it and converting it (qemu-img convert).
I woud like to do this in fewer steps. So, I have the following questions:
- I though of converting directly from the LV by doing:
# qemu-img convert /dev/mapper/vol1-vm--533--disk--0 -O vpc -o subformat=dynamic vm523.vhd
but when the VM is stopped, I can't find the corresponding LV in /dev/mapper. When the VM is started, the /dev/mapper device appears but I can't use it because it is active.
How can I solve this problem?
- Assuming that I am converting from a backup file (vma.lzo), how is it possible to do something like:
# lzop -d -c BACKUPFILE | vma extract -v - OUTPUTDIR | qemu-img convert ......some options...
I understand that OUTPUTDIR is a dir and qemu-img can't really use it, but I might be missing some other utils that can do it, in one step.
Cheers,
Sp
I would like to convert an LVM based disk to VHD format.
I have done it successfully by getting a backup (vma.lzo) and then decompressing it, extracting it and converting it (qemu-img convert).
I woud like to do this in fewer steps. So, I have the following questions:
- I though of converting directly from the LV by doing:
# qemu-img convert /dev/mapper/vol1-vm--533--disk--0 -O vpc -o subformat=dynamic vm523.vhd
but when the VM is stopped, I can't find the corresponding LV in /dev/mapper. When the VM is started, the /dev/mapper device appears but I can't use it because it is active.
How can I solve this problem?
- Assuming that I am converting from a backup file (vma.lzo), how is it possible to do something like:
# lzop -d -c BACKUPFILE | vma extract -v - OUTPUTDIR | qemu-img convert ......some options...
I understand that OUTPUTDIR is a dir and qemu-img can't really use it, but I might be missing some other utils that can do it, in one step.
Cheers,
Sp