Converting vmdk version 3 images

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

Imprint

This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at weblog2017@rubenschade.com. Thanks :).