Hi there,
I am having trouble migrating a VMware (vmdk) image to KVM residing on an LVM storage.
The story so far: I followed the instructions in the wiki getting a valid qcow2 file. I added a directory to the storage, created a vm in proxmox with a hard-disk utilizing the new dir-storage, detached the hd, copied my qcow2 file over the existing hard-disk image, reattached the hd and started the vm, with success; this all worked like charm.
Next I followed the howto in the wiki to create a LVM group with some extra info from this howto. I tested the LVM group creating a new vm and installing Win2008 on it, worked fine as well.
Finally following the instructions here (in German) I wanted to convert the qcow2 image to a raw image in my LVM. I deleted my 2008_Test vm and created a new vm using LVM group also. Regarding the document the command for converting to lvm is
, but I always get errors saying either "qemu-img: Error while formatting '/dev/vm-sbo/vm-102-disk-1'" or "qemu-img: Error while writing". Also I created a logical volume manually using the instructions in the howto, but I get the same error. What I can run is something like
resulting in a .raw file. But how do I get this guy into the logical volume in the LVM group?
Does anybody has experience with that, or some idea what is going wrong?
Thanks in advance, best regards
christoph
I am having trouble migrating a VMware (vmdk) image to KVM residing on an LVM storage.
The story so far: I followed the instructions in the wiki getting a valid qcow2 file. I added a directory to the storage, created a vm in proxmox with a hard-disk utilizing the new dir-storage, detached the hd, copied my qcow2 file over the existing hard-disk image, reattached the hd and started the vm, with success; this all worked like charm.
Next I followed the howto in the wiki to create a LVM group with some extra info from this howto. I tested the LVM group creating a new vm and installing Win2008 on it, worked fine as well.
Finally following the instructions here (in German) I wanted to convert the qcow2 image to a raw image in my LVM. I deleted my 2008_Test vm and created a new vm using LVM group also. Regarding the document the command for converting to lvm is
Code:
qemu-img convert vm-101-disk-1.qcow2 -O raw /dev/vm-sbo/vm-102-disk-1
Code:
qemu-img convert vm-101-disk-1.qcow2 -O raw win2003-pve.raw
Does anybody has experience with that, or some idea what is going wrong?
Thanks in advance, best regards
christoph