11

I need to change my client OS from Windows 2008 to Windows 7. I therefore need to convert all of my HyperV images to Virtual Box.

What is the best way to do this? Or is there a way to run HyperV on Windows 7?

14

Virtualbox does actually support importing VHD file, unfortunately this is only for VHD's created with Virtual PC, not Hyper-V, which adds some additional information to the VHD. Some people have successfully got VHD Vm's to boot by ensuring the VM in Virtualbox uses an IDE rather than SATA controller.

I'm not aware of anyway to convert VHD's straight into virtual box, however you can convert VHD files into VMWare VMDK files (using tools like Starwind V2V) which Virtualbox is then able to use.

  • 2
    You just saved me a TON of frustration. Thanks Sam... I kept getting bluescreens with the SATA and SCSI controllers in Virtualbox (with my VHD created in Hyper-V), but the IDE controller worked like a charm. – Sean Earp Mar 15 '11 at 4:09
  • I wonder if Microsoft Convert-VHD can - as a by-effect - reduce virtual disks to "bare" VPC VHD technet.microsoft.com/en-us/library/hh848454.aspx – Arioch 'The Mar 11 '16 at 10:19
6

This did the trick for me:

VBoxManage clonehd input.vhdx output.vdi --format VDI

I added this new disk as an IDE drive ("PIIX4") as suggested here and enabled System/EFI Setting for this VM.

  • 2
    I had a .vhdx virtual hard drive (HV on windows 10) to convert to a .vdi file. Using that command, I could convert the drive. However, the hard drive is now at the state it was at the time of the snapshot I made in Hyper-V. But then I had an issue with creating the Virtual machine. I followed your steps to enable EFI ("no bootable medium found" otherwise) and falled into the EFI shell. I "exit" ed it, chose "boot from file", selected "shimx64" to boot. Then, followed the steps here : askubuntu.com/a/573672/650725 : echo '\EFI\ubuntu\grubx64.efi' > /boot/efi/startup.nsh as root – cube45 Jun 23 '17 at 12:41
  • @cube45 you are an absolute hero. This comment should be added to the answer! – tim687 May 17 '18 at 9:23

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.