Mac – Convert OVA to VHD for usage in Hyper-V

hyper-vvirtual machinevirtualization

I have a OVA file that I need to convert to VHD in order to use Hyper-V. Opening the .ova file in winrar gives me one .ovf file and one .vmdk file. I tested the program Microsoft Virtual Machine Converter 3.0 that was recommended on SU but it required a host server. I do not have that, I only have the file.

Import ovf and/or vmdk to Hyper-V

Best Answer

Quite easy actually, install VirtualBox that comes with the program VBoxManage.exe. It can be used with clonehd to specify the new format of the disk. You specify the original disk file, in this case the .vmdk, and then give a location and name to output the .vhd.

Open a cmd prompt, CD to C:\Program Files\Oracle\VirtualBox or Virtualbox install directory and then run:

VBoxManage.exe clonehd --format vhd "C:\temp\VM\disk1.vmdk" "C:\temp\VM\disk1.vhd"

Documentation for VirtualBox:

Then I created a new virtual machine from Hyper-V Manager and selected "Use an existing virtual hard disk". Worked perfectly.

Use this guide for internet access: