How to use Hyper-V virtual machine in Virtualbox on Windows 11?

How to use Hyper-V virtual machine in Virtualbox on Windows 11?
Hyper-v to Virtualbox

You created a virtual machine on Hyper-V but due to some reason, you want to move to VirtualBox.

Hyper-V supports VHDX file format whereas VirtualBox supports VDI and VHD. So the first thing we have to export the Virtual Machine on Hyper-V which will be in VHDX format then convert the exported virtual disk to VDI/VHD format. Finally, start using the converted VDI/VHD file on VirtualBox.

1. Export the Virtual Machine on Hyper-V

Export Option
export path
Exporting started

2. Convert the virtual disk formatted from VHDX to VDI.
If you have already installed VirtualBox on your PC then go to the installed path. Usually, the default path of software can be on “C:\Program Files\Oracle\VirtualBox”. Open that path in the windows command prompt/terminal and run the below command –

VBoxManage.exe clonemedium disk "<Path of the exported VHDX file>" "<Path of generating VDI file>.vdi"

3. Create a new Virtual Machine on VirtualBox.

Select the new button and fill in the name of the new VM
Select the memory size based on your resource and requirement.
Select “use an existing virtual hard disk file” and click on the “select folder icon” right side to select the VDI formatted virtual disk
Select the Virtual Disk you have converted from VDHX to VDI format.
VM with the given name will be created and before starting the VM you will have to change some settings.
Select the settings of the newly created VM and do the following changes.
This is an optional step but if you have exported the Hyper-V Virtual Machine from EFI based system or Windows 11 then you will have to enable the “Enable EFI” option on the virtual box.
You can enable the Clipboard feature if you want to copy and paste from Host to Virtual Machine and vice-versa.
You can also increase the number of cores based on your resource and requirement.

Press the OK button then start the VM. Ideally, VM should boot and work as if it was working on a Hyper-V machine. You may have to change the display setting once you start running VM.

Important errors to know –

Though there is a debate where it says VirtualBox does support VHDX as well when I tried, it didn’t work for me, and ended up getting the below error.
Screenshot-2022-09-19-212539.webp

VHDX does not support async I/O (VERR_NOT_SUPPORTED)

If you try without enabling the EFI mode on Virtual Box but the Hyper-V machine had it enabled then you may see

“FATAL: No bootable medium found! System halted”

#”FATAL: No bootable medium found! System halted”

Read more