Converting .qcow2 V Hard Disk into .VMDK (Windows/VMWare)

Is any way to convert a .qcow2 into .vmdk on Windows 7 64-bit using VMWare Workstation?

i did that using a tool qemu-img in my linux host (SLES11):

qemu-img convert -f qcow2 vdisk.qcow2 -O vmdk vdisk.vmdk

I've only a Windows 7 host accesible ATM and if it is not possible which tool should i use?.

2 Answers

There is a build of qemu for Windows. Another note Windows handles arguments differently for some reason, so you would need to change your order to:

qemu-img convert -f qcow2 -O vmdk vdisk.qcow2 vdisk.vmdk
2

Use the updated qemu binary to convert the qcow2 image to a vmdk image by running this qemu-img convert command:

qemu-img convert -f qcow2 -O vmdk -o subformat=streamOptimized source_qcow_image_path destination_path_to_vmdk

For example:

qemu-img convert -f qcow2 -O vmdk -o subformat=streamOptimized CentOS-7-x86_64-GenericCloud-1503.qcow2 CentOS-7-x86_64-GenericCloud-1503.vmdk

Update the vmdk version setting embedded in the converted image using this script:

printf '\x03' | dd conv=notrunc of=<vmdk file name> bs=1 seek=$((0x4))

For example:

printf '\x03' | dd conv=notrunc of=CentOS-7-x86_64-GenericCloud-1503.vmdk bs=1 seek=$((0x4))

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like