1

I am using KVM on Ubuntu Server 10.04. and Virtual Machines are running on it in LVM. I have to migrate some of them to Vmware server.How can I achieve this? I searched and came across some links but they all talked converting vmdk images to qcow or so.In this case I have OS in LVM.

I also looked at man page of qemu-img and as I understand it should do what I am asking in this thread. But how exactly should I proceed in this case.Since it is not a file based image (OS running in an LVM which has filesystem in that LVM). So I am not able to understand what should I be doing to achieve the same. Can I achieve the above with snapshots of LVMs rather than shutting down the VM itself.

Bond
  • 741
  • 4
  • 11
  • 22

3 Answers3

4

Yes, you can create an LVM snapshot volume and convert it with qemu-img:

lvcreate -L592M -s -n myvolume /dev/myvg/myvolume_snapshot
qemu-img convert /dev/myvg/myvolume_snapshot -O vmdk myvolume.vmdk
chris
  • 432
  • 4
  • 9
0

VMware Converter doesn't clearly support KVM images, but you could treat your KVM image like a physical machine and use VMware Converter as you would a P2V conversion.

Keith Stokes
  • 927
  • 6
  • 7
-1
qemu-img convert win2k3.img -O vmdk win2k3.vmdk

try out above command :)

Rajat
  • 3,329
  • 21
  • 29