VMware Communities
TOM21231
Contributor
Contributor

Convert "CentOS VM" built using VMware Fusion to KVM ??

Hello,

I am hoping someone can help. 

I built up a CentOS VM using VMware Fusion on my Mac.

I need to scp this VM to CentOS server elsewhere to be started and run.

They only run KVMs on this CentOS server os they want me to convert this VM to a KVM VM first.

When I open the CentOS-64bit-VM.vmwarevm I created I see 12 vmdk files.

How would I go about converting these 12 vmdk files into a single KVM image?

Thanks

0 Kudos
3 Replies
mini2008
Enthusiast
Enthusiast

Hi TOM21231,

For simplify multiple vmdk files, suggest you to revert disk type to None or Pre-allocate, and here is the step:

Settings->Hard Disk->Advanced options->uncheck 'Split into multiple files' and 'Pre-allocate disk space'.

Hope helpful.

WoodyZ
Immortal
Immortal

I do not know if you first need to make the .vmdk monolithic, and pre-allocated as suggested by mini2008, however I believe the following command syntax is applicable to convert to a format usable by KVM...

qemu-img convert -f vmdk vmware_image.vmdk -O qcow2 kvm_image.qcow2

TOM21231
Contributor
Contributor

Thanks mini and woody.  Both tips were helpful and go me where I needed to go.

0 Kudos