I have a production environment where I am having 4 Guest OS running on a Ubuntu server which uses kvm. These OS are in an LVM based setup.I want these Virtual Machines to be in a vmdk format also.Where people would do experiments with these Virtual Machines so this in a vmware environment (or it can be Xen too) would be different from the kvm server.I would not have any control on that other environment so I want to give people vmdk images of these virtual machines.
The production Virtual Machines will still keep running on kvm server but the VMs on which experiments would be done would be of type vmdk.(vmdk is a constraint)
Here is output of lvscan
ACTIVE '/dev/abcd/lvm1' [100.00 GiB] inherit ACTIVE '/dev/abcd/lvm2' [150.00 GiB] inherit ACTIVE '/dev/abcd/lvm3' [50.00 GiB] inherit ACTIVE '/dev/abcd/lvm4' [100.00 GiB] inherit
Now suppose /dev/abcd/lvm4 is the virtual machine with which I am going to start this experiment.
So is the following way correct to go on server 1 (where kvm is running)
Step 1 qemu-img create -f vmdk myos.vmdk 10G
After this step how do I go on populating the vmdk image I just created above with all that content which is in lvm? Any ideas to this part?