VirtualBox 6.0 and Hyper-V

Discussions related to using VirtualBox on Windows hosts.

Re: VirtualBox 6.0 and Hyper-V

Postby socratis » 23. Dec 2019, 20:09

'odbayar',
Since your reply came right after my post, I'm assuming you're referring to my post. I am not Oracle. I do not have any channels with Microsoft. I'm just a simple user just like you...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
 
Posts: 27690
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: VirtualBox 6.0 and Hyper-V

Postby nsteblay » 31. Dec 2019, 03:42

Is it worth trying to get Virtualbox working on Windows 10? It looks like many are having the Call to VidMessageSlotMap failed: Last=0xc000000d/87 (VERR_NEM_VM_CREATE_FAILED error with no obvious resolution.
nsteblay
 
Posts: 6
Joined: 1. Jan 2010, 20:14
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Ubuntu

Re: VirtualBox 6.0 and Hyper-V

Postby nathaniel515 » 11. Jan 2020, 01:22

If using the ring 0 runloop is a (now-broken) hack, why doesn't VirtualBox disable it by default? It's not improving performance if it stops everything from working...
nathaniel515
 
Posts: 6
Joined: 8. Jan 2019, 20:46

Re: VirtualBox 6.0 and Hyper-V

Postby jruhe » 8. Feb 2020, 22:08

socratis wrote:Gerhart,
They briefly worked when MS published their API with 1809, but they broke it with 1903 and they really nuked the place with 1909.

In release 2004 something will change angain, because Vmware officially announced hyper-v support.
https://blogs.vmware.com/workstation/20 ... -20h1.html

jruhe
jruhe
 
Posts: 2
Joined: 30. Oct 2019, 12:28

Re: VirtualBox 6.0 and Hyper-V

Postby Gerhart » 14. Feb 2020, 12:02

Microsoft hope, that VirtualBox will be working with Hyper-V in future.
https://twitter.com/vBenArmstrong/statu ... 2305601536

But we still don't hear from VirtualBox developers, what exactly they need from Microsoft for good VirtualBox performance: kernel API analog of Windows HV platform, 1-2 documented callbacks to Hyper-V virtual CPU scheduler or something else...
Gerhart
 
Posts: 6
Joined: 2. Nov 2019, 13:44

Re: VirtualBox 6.0 and Hyper-V

Postby BillG » 21. Feb 2020, 06:00

The changelog for Version 6.1.4 claims that the ability to run VirtualBox with Hyper-V enabled has been restored, and in fact it has.

I upgraded my machine running Windows 10 Version 2004 (Build 19041.84) to VirtualBox 6.1.4 and checked that my Windows 7 guest ran OK. I then installed Hyper-V and tried my vm again. It started and booted to the Windows 7 Starting Windows screen with the green turtle icon showing. Some time later it is still at the same spot but has not crashed. Task Manager shows the VIrtualBox Virtual Machine running and using about 29% CPU.

It is certainly not usable yet but it does at least run, not abort.


VBoxT.PNG
VBoxT.PNG (95.31 KiB) Viewed 2761 times
Attachments
Turtle.PNG
Turtle.PNG (111.06 KiB) Viewed 2759 times
Bill
BillG
Volunteer
 
Posts: 4461
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 7,8,Server

Re: VirtualBox 6.0 and Hyper-V

Postby klaus » 21. Feb 2020, 15:10

Yes, what 6.1.4 effectively does is disabling the (apparently no longer working, probably needs to be improved) optimization which avoids going always to usermode. We couldn't find time to work on restoring the functionality of the optimization, so we had to give in for now. We also couldn't investigate the new improvements available in 20H1 (preview only so far) which apparently VMware is providing a test version for.
klaus
Oracle Corporation
 
Posts: 759
Joined: 10. May 2007, 14:57

Re: VirtualBox 6.0 and Hyper-V

Postby BillG » 22. Feb 2020, 03:41

Thanks. At least the vm loads, so users will see the Green Turtle rather than an obscure message from the host OS, so the cause will be obvious.
Bill
BillG
Volunteer
 
Posts: 4461
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 7,8,Server

Re: VirtualBox 6.0 and Hyper-V

Postby rsrx » 22. Feb 2020, 05:51

Thanks for working on this. I have Windows 10 v2004 and with latest VirtualBox it seems that vagrant is able to boot up Ubuntu machine but it halts halfway through. Is there any ETA on when this will be fully supported?
rsrx
 
Posts: 1
Joined: 22. Feb 2020, 05:50

Re: VirtualBox 6.0 and Hyper-V

Postby evil_gr » 6. Mar 2020, 10:38

Hi everyone!

I try to run Ubuntu x64 using VirtualBox 6.1.4 r136177 on Windows 10 build 1809 with enabled Hyper-V, and it seems to me that there is a bug - I've found something interesting in the startup log:

Code: Select all   Expand viewCollapse view
00:00:03.206187 VMSetError: F:\tinderbox\win-rel\src\VBox\VMM\VMMR3\NEMR3Native-win.cpp(1301) int __cdecl nemR3NativeInit(struct VM *,bool,bool); rc=VERR_NEM_MISSING_KERNEL_API
00:00:03.206189 VMSetError: VMMR0_DO_NEM_INIT_VM failed: VERR_NEM_MISSING_KERNEL_API
00:00:03.206204 NEM: NEMR3Init: Native init failed: VERR_NEM_MISSING_KERNEL_API.
00:00:03.206212 VMSetError: F:\tinderbox\win-rel\src\VBox\VMM\VMMR3\HM.cpp(622) int __cdecl HMR3Init(struct VM *); rc=VERR_VMX_NO_VMX
00:00:03.206216 VMSetError: VT-x is not available
00:00:03.335027 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={VMMR0_DO_NEM_INIT_VM failed: VERR_NEM_MISSING_KERNEL_API (VERR_NEM_MISSING_KERNEL_API).


Looks like an uncaught exception or unexpected behavior. You can find the full log in the attached file.
Attachments
VBox.log
(32.36 KiB) Downloaded 8 times
evil_gr
 
Posts: 2
Joined: 6. Mar 2020, 10:32

Re: VirtualBox 6.0 and Hyper-V

Postby klaus » 6. Mar 2020, 18:52

That's a very strange issue - you're running Windows 10 1809, and this has been reported to be working by others. I wonder if there are API availability differences between the Windows 10 editions, i.e. Home/Pro (and maybe the S mode also has an effect).

What's really odd is that the failing check is in the vbox kernel part, and this shouldn't be used any more with 6.1.4.
klaus
Oracle Corporation
 
Posts: 759
Joined: 10. May 2007, 14:57

Re: VirtualBox 6.0 and Hyper-V

Postby yawnmoth » 8. Mar 2020, 22:36

I'm running VirtualBox 6.1.4 and when I try to open up a VM I get the following error:

Failed to open a session for the virtual machine vagrant_default_1583698990398_29087.

VMMR0_DO_NEM_INIT_VM failed: VERR_NEM_MISSING_KERNEL_API (VERR_NEM_MISSING_KERNEL_API).

VT-x is not available (VERR_VMX_NO_VMX).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

I thought VirtualBox was supposed to play nice with Hyper-V as of 6.0. What gives?
yawnmoth
 
Posts: 2
Joined: 8. May 2011, 02:17
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu 11.04

Re: VirtualBox 6.0 and Hyper-V

Postby BillG » 9. Mar 2020, 08:20

Hyper-V is not the only app which can lock hardware virtualisation. There are a host of Windows and third party apps which can do this, and there is no "magic bullet" fix. You just have to find what it is by trial and error.

To say that Hyper-V and VirtualBox 6.0/6.1 "play nice" is an overstatement. As klaus said in his post a few posts back, all they have done in version 6.1.4 is disable the optimisation which was causing serious problems. We are back to the stage where it doesn't abort before loading. It loads and displays the green turtle icon below the screen, but does not actually do anything useful after that.

The only way to satisfactorily run VirtualBox version 6.1.4 on Windows 10 at present is to prevent the Hyper-V hypervisor from loading and remove any other app which locks hardware virtualisation to itself.

In addition, this forum does not support vms running under Vagrant.
Bill
BillG
Volunteer
 
Posts: 4461
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 7,8,Server

Re: VirtualBox 6.0 and Hyper-V

Postby Larswa » 9. Mar 2020, 08:43

BillG wrote:Hyper-V is not the only app which can lock hardware virtualisation. There are a host of Windows and third party apps which can do this, and there is no "magic bullet" fix. You just have to find what it is by trial and error.

To say that Hyper-V and VirtualBox 6.0/6.1 "play nice" is an overstatement. As klaus said in his post a few posts back, all they have done in version 6.1.4 is disable the optimisation which was causing serious problems. We are back to the stage where it doesn't abort before loading. It loads and displays the green turtle icon below the screen, but does not actually do anything useful after that.

The only way to satisfactorily run VirtualBox version 6.1.4 on Windows 10 at present is to prevent the Hyper-V hypervisor from loading and remove any other app which locks hardware virtualisation to itself.

In addition, this forum does not support vms running under Vagrant.



What do you mean by "the forum does not support vms running under vagrant" ?

HyperV and virtualbox 6.1.4 vagrant machines are running fine on my machine. An Amd Ryzen 3900. Performance for my usage ... Testing local infrastructure Ansible Scripts ... are okay. I dont see any difference between running vb natively without hyperv running, but the new cpu might hide the fact that it is wildly inefficient underneath :lol:

https://photos.app.goo.gl/W2i7WXniSP75mHFC8
Larswa
 
Posts: 3
Joined: 16. Aug 2019, 19:07

Re: VirtualBox 6.0 and Hyper-V

Postby mpack » 9. Mar 2020, 11:26

Larswa wrote:What do you mean by "the forum does not support vms running under vagrant" ?

It means exactly what Bill said. We don't support Vagrant here, only the official VirtualBox install. That doesn't mean it won't work, it means take your support questions to the Vagrant forum.
mpack
Site Moderator
 
Posts: 32016
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

PreviousNext

Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 49 guests