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.vmdkI'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_vmdkFor example:
qemu-img convert -f qcow2 -O vmdk -o subformat=streamOptimized CentOS-7-x86_64-GenericCloud-1503.qcow2 CentOS-7-x86_64-GenericCloud-1503.vmdkUpdate 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))