VirtualBox 6.0 and Hyper-V

Discussions related to using VirtualBox on Windows hosts.
Locked
loyukfai
Posts: 14
Joined: 27. Jun 2019, 17:47

Re: VirtualBox 6.0 and Hyper-V

Post by loyukfai »

How's the performance? Is Sandbox enabled on your box?

Cheers.
Last edited by socratis on 14. Aug 2019, 16:34, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
TomL12953
Posts: 38
Joined: 16. Mar 2012, 03:15
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Commodore OS, Win 8

Re: VirtualBox 6.0 and Hyper-V

Post by TomL12953 »

That did it for me! It runs incredibly slowly, though.

Tom L
Last edited by socratis on 14. Aug 2019, 16:35, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
TomL12953
Posts: 38
Joined: 16. Mar 2012, 03:15
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Commodore OS, Win 8

Re: VirtualBox 6.0 and Hyper-V

Post by TomL12953 »

How do you enable sandbox mode? Is it in VirtualBox or in Hyper-V?

Tom L
Last edited by socratis on 14. Aug 2019, 16:35, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
jstangroome
Posts: 1
Joined: 30. Jul 2019, 02:14
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Ubuntu 18.04

Re: VirtualBox 6.0 and Hyper-V

Post by jstangroome »

How do you enable sandbox mode? Is it in VirtualBox or in Hyper-V?
Windows Sandbox, see attached screenshot. For more information, see December article on Windows Kernel Internals techcommunity (sorry I can't post URLs).
Attachments
Optional Windows Features dlg.png
Optional Windows Features dlg.png (91.01 KiB) Viewed 9051 times
TomL12953
Posts: 38
Joined: 16. Mar 2012, 03:15
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Commodore OS, Win 8

Re: VirtualBox 6.0 and Hyper-V

Post by TomL12953 »

WesleyRast wrote:This is what fixed it for me. Hyper-V is just cancer for running anything else related to virtual machines.

Open an admin Powershell and type the following to disable Hyper-V:

Code: Select all

bcdedit /set hypervisorlaunchtype off
Then restart your machine. `vagrant up` will now work with no problem.
It's no solution at all. The whole point of this thread is to be able to run Hyper-V AND VirtualBox at the same time.
daMaskf
Posts: 1
Joined: 7. Aug 2019, 01:02

Re: VirtualBox 6.0 and Hyper-V

Post by daMaskf »

RColbert wrote:To make this work for me on the current 20H1 Insider release of Windows 10, I added the line mentioned in a previous post to the ExtraData section of the %userprofile%\.VirtualBox\VirtualBox.xml config file.

<ExtraDataItem name="VBoxInternal/NEM/UseRing0Runloop" value="0"/>

64bit Windows and Linux VMs are able to run.
After a few days of struggling, this got me up and running. 8)
jmar83_the2nd
Posts: 341
Joined: 9. Mar 2012, 00:14

Re: VirtualBox 6.0 and Hyper-V

Post by jmar83_the2nd »

Thank you for your informations! :-)
regards, jan
loyukfai
Posts: 14
Joined: 27. Jun 2019, 17:47

Re: VirtualBox 6.0 and Hyper-V

Post by loyukfai »

This customization:

Code: Select all

<ExtraDataItem name="VBoxInternal/NEM/UseRing0Runloop" value="0"/>
1. Works with SandBox too?
2. Performance?
3. VB's recommended solution?

Gotta find out :)
kwinz
Posts: 10
Joined: 26. Jun 2019, 14:26

Re: VirtualBox 6.0 and Hyper-V

Post by kwinz »

When can I expect a new VirtualBox release that feels less alpha release and supports
  • Running on the same system as Hyper-V
  • automatically suggests enabling or sets the proper Windows settings by itself
  • Has sane error messages
  • Does not need UseRing0Runloop workaround
  • No or little performance penalty
  • just works?
I am generally curious. Thanks for your work!
GastlyCold
Posts: 3
Joined: 12. Aug 2019, 16:31

Re: VirtualBox 6.0 and Hyper-V

Post by GastlyCold »

I got it working on my XPS with "fast ring" on Win10 Pro enabled. (I will post a follow up with logs/settings once I get them collected)

I have Sandbox and WSL2 working already.

What I noticed is that about every 4th time I boot the same Linux guest, it "hangs" with "dracut-initqueue timeout' at startup.

It is not consistent on this. I am using XFS for the filesystem in the guest (MBR, primary partitions... this usually works best).

I see the "turtle" at the bottom. But. performance is certainly acceptable.
GastlyCold
Posts: 3
Joined: 12. Aug 2019, 16:31

Re: VirtualBox 6.0 and Hyper-V

Post by GastlyCold »

loyukfai wrote:This customization:

Code: Select all

<ExtraDataItem name="VBoxInternal/NEM/UseRing0Runloop" value="0"/>
1. Works with SandBox too?
2. Performance?
3. VB's recommended solution?

Gotta find out :)
I was getting startup crashes on the instances until I enabled this in my CentOS template image. Now everything is fine.
Larswa
Posts: 3
Joined: 16. Aug 2019, 19:07

Re: VirtualBox 6.0 and Hyper-V

Post by Larswa »

Hey guys ... good work digging out this setting.
<ExtraDataItem name="VBoxInternal/NEM/UseRing0Runloop" value="0"/>
One question though. Does this only work on the insider builds of windows 10? I still can't get it to work on my windows 10 1903 build 18362.295

I guess this depends on some future work to make the underlying hyperv apis accessible to 3rd party providers like VirtualBox and VMWare workstation, right?

/Lars
GastlyCold
Posts: 3
Joined: 12. Aug 2019, 16:31

Re: VirtualBox 6.0 and Hyper-V

Post by GastlyCold »

After some long nights of testing and installing from scratch, I suspect that the device drivers in the Linux guest additions is causing unpredictable behavior.

I *believe* this is the culprit with one of the drivers that gets loaded as I am having issues with booting and the Vbox error logs (at the host) are looking mostly normal.

My recommendations to folks is hold off on installing the Guest Additions in their Linux VMs until a useful bug report can be submitted.

The testing I did was with CentOS 7.5.1804 with Virtualbox 6.0.10 on an i7 XPS 9570 running the latest patches.
RustyPuma
Posts: 13
Joined: 18. Aug 2019, 09:36

Re: VirtualBox 6.0 and Hyper-V

Post by RustyPuma »

@BillG Thank you!

If it is better not running VirtualBox while Hyper-V is enabled(i.e. for dockers APPs), and disable Hyper-V and reboot Win10 when VirtualBox needs to run VM?

Will this start the VirtualBox again, and the VMs that had been created be safe to start and run as usual?
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: VirtualBox 6.0 and Hyper-V

Post by BillG »

Your vms will not be affected, nor will the VirtualBox program (except that it will now work properly because the Windows hypervisor is not running).
Bill
Locked