Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
How does that answer my question? –  Bond Jan 5 '11 at 4:24

3 Answers 3

up vote 2 down vote accepted

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
share|improve this answer
    
Ok this is great.I will try this one. –  Bond Jan 5 '11 at 4:25
qemu-img convert win2k3.img -O vmdk win2k3.vmdk

try out above command :)

share|improve this answer
    
Its not a .img file it is on LVM. –  Bond Jan 5 '11 at 4:25

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.

share|improve this answer
    
I tried that but it failed to detect the Virtual Machine. –  Bond Jan 7 '11 at 9:56
    
Did you run it from the original guest or from another machine? –  Keith Stokes Jan 7 '11 at 13:01
    
I tried it from another machine on the original machine installation itself had failed. –  Bond Jan 7 '11 at 15:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.