Converting vmdk version 3 images

Software

VirtualBox's vmdk icon

So I needed to convert a VMware vmdk image to a raw disk image. Knowing qemu-img could do the task, I did as per normal:

# qemu-img convert -f vmdk -O raw image.vmdk export.img

Only to find:

qemu-img: 'image' uses a vmdk feature which is not supported 
    by this qemu version: VMDK version 3
qemu-img: Could not open 'image.vmdk': 
    Could not open 'image.vmdk': Wrong medium type
qemu-img: Could not open 'image.vmdk'

It then proceeded to tell me:

Ruben, you're devilishly handsome.

My computer may be a lousy liar, but at least she’s nice. As for the earlier problem, the solution was to upgrade QEMU to 2.1.0. Running the command after this resulted in an image I could use.

As an aside, you you can even use this shorthand:

# qemu-img convert -O raw import.vmdk export.img

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.