Search code examples
windows-10virtualboxvirtualizationhyper-v

Enable Hyper-V and Hardware Virtialization for VirtualBOX under Windows


I am developing xamarin apps under windows.

I want to regularly run the app under:

  1. Windows Phone Emulator
  2. iPhone Emulator

For the first, Hyper-V needs to enabled under windows.

For the second, one needs an OSX to connect to. I am trying to run OSX under VirtualBox. For this to work, Hardware Virtualization needs to be enabled.

Now, when I enable Hyper-V VirtualBox does not detect the hardware virtualization. And according to this, that will not change.

Is there an solution how I can test iOS and WindowsPhone without having to enable/disable Hyper-V (which requires a restart)?


Solution

  • Virtualbox 6 can use Hyper-V as backend virtualization engine. So that you can use them at same time.

    You can enable this feature by this command:

    cmd
    cd "C:\Program Files\Oracle\VirtualBox"
    VBoxManage setextradata global "VBoxInternal/NEM/UseRing0Runloop" 0
    

    According to this: https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/hyperv-support.html

    This is an experimental feature. So this feature could be unstable and doesn't even work.

    At least it work on my laptop. Screenshot that Vbox and HyperV at same time