Converting vmdk version 3 images
SoftwareSo 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