# 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

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: https://www.virtualbox.org/manual/ch08.html#vboxmanage-clonevdi

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:

https://superuser.com/a/472854/405096