- It's recommended to uninstall Virtualbox guest additions tools from the virtual machine before conversion. Otherwise this may cause issues on the Hyper-V server.
- Virtualbox snapshots keep separate VDI files for each machine. So if you convert the original base VDI file, you will not get the latest state of the virtual machine. Also, you can’t convert snapshot VDI files separately. Therefore it’s recommended to delete snapshots, or integrate them into the base VDI image before conversting the original disk file.
- After completing the above two steps, run the following command:
c:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage" clonehd old.vdi new.vhd --format VHD
old.vdi: Current working VDI hard disk image.
new.vhd: Destination and file name of VHD. - Move or copy the VHD-file to the Hyper-V server and run it.
Also see Convert vhdx to vdi for use with Virtualbox.