r/virtualbox • VMs rule! • Oct 19 '21

Help "Failed to open a session for the virtual machine ... Call to NEMR0InitVMPart2 failed: VERR_NEM_INIT_FAILED (VERR_NEM_VM_CREATE_FAILED). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole ..."

This was in my upgraded VB v6.1.28 from v6.1.26 in my updated, 64-bit W10 Pro. PC. VB keeps showing this after starting a guest VM:

"Failed to open a session for the virtual machine ...

Call to NEMR0InitVMPart2 failed: VERR_NEM_INIT_FAILED (VERR_NEM_VM_CREATE_FAILED).

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

They last worked on a couple days ago too in v6.1.26 before upgrading to v6.1.28. Is anyone else seeing this too? I already tried rebooting, repairing, etc. I didn't uninstall and reinstall VB yet. I might go downgrade it back to v6.1.22 soon? Let's see if we can fix it first. http://zimage.com/~ant/temp/AntsVirtualBox6.1.zip for my VB settings and logs (will delete when fixed).

Thank you for reading and hopefully answering soon. :)

26 Upvotes

72 comments sorted by

•

u/AutoModerator Oct 19 '21

Your post is too short. Please read the requirements for posting in this subreddit. You MUST include, at minimum:

  • The version of VirtualBox you are using (don't say "latest")

  • The host and guest OSes

  • Whether you have enabled VT-x/AMD-v and disabled HyperV (if applicable)

  • Whether you have installed Guest Additions and/or Host Extensions (this solves 90% of the problems we see)

  • PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. You can copy your post into a new one, and make sure to add the required information. Or you can edit this post, and send the moderators a message to review it.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/antdude VMs rule! Oct 20 '21

FYI. I downgraded back .26 since it works. Also, I have a forum thread in https://forums.virtualbox.org/viewtopic.php?f=6&t=104175 too about this issue.

2

u/antdude VMs rule! Oct 21 '21

Also, I made a bug report in https://www.virtualbox.org/ticket/20624. Please kindly add your logs and details into both my forum thread and bug report.

2

u/rikonaka Oct 23 '21

Hi antdude, how to downgraded virtualbox without break the original VMs?

1

u/antdude VMs rule! Oct 23 '21

Just reinstall v6.1.26. It didn't break my VMs. I hope you make frequent back ups of your VMs and others often just in case.

3

u/sastuvel Oct 21 '21

I had the same error message, and I can confirm that after I installed .26 (and the corresponding expansion pack) things just worked.

3

u/kaasszje Oct 22 '21 edited Oct 22 '21

Having same problems after upgrade to v6.1.28

Trying the downgrade, to see if it al starts working again

After downgrade it all is working again.

Seems .28 has some problems ;)

2

u/antdude VMs rule! Oct 22 '21

Please add your v6.1.28 logs to my bug report so VB developers can analyze and fix this issue ASAP.

1

u/notEnoughOnion Oct 23 '21

Same error trying to open Win 7 x64 vm on Windows 10 host. No Hyper-V enabled. I just re-ran the .26 installer and all is well.

3

u/chr1573r Nov 06 '21

Encountered the same problem here going from 6.1.18 to 6.1.28 on Windows 10 21H1

Re-installed 6.1.18 and now I can power up my Debian VM again

1

u/antdude VMs rule! Nov 06 '21

Use v6.1.26 instead?

2

u/chr1573r Nov 06 '21

Could probably do that, I just grabbed the old setup I still had in my Downloads folder.

This particular machine isn't running anything important and there isn't anything I'm missing running a bit behind the latest and greatest.

I just occasionally update when I've grown tired of dismissing the update nag screen on startup when I reboot my PC ¯_(ツ)_/¯

2

u/antdude VMs rule! Nov 07 '21

Ha, just disable its update checker. :P

2

u/rmc555 Nov 14 '21

This worked for me too. Thanks.

2

u/Face_Plant_Some_More Oct 19 '21

I can't download your zip file. In any case, you are on a Windows Host. So check the vbox.log for the VM you tried to start. If it says something like -

"HMR3Init: Attempting fall back to NEM: AMD-V or VT-x is not available"

then you've got Hyper-v enabled on your Host. You need to disable it to resolve the error. Instructions on how to resolve this can be found here - https://forums.virtualbox.org/viewtopic.php?t=62339

1

u/antdude VMs rule! Oct 19 '21 edited Oct 19 '21

Can't download? It works for me. Did you get an error?

I don't see a vbox.log in my C:\Users\ant.VirtualBox. I do have selectorwindow.log and VBoxSVC.log files. I don't see any AMD-V and VT-x.

2

u/Face_Plant_Some_More Oct 19 '21 edited Oct 19 '21

I don't see any AMD-V and VT-x.

Well, of course you didn't, as you did not look inside the appropriate log file. The vbox.log file is located in the in the Virtual Box machine folder for the particular VM in question. In your case, that would be -

C:\users\ant.virtualbox\virtualbox vms\<VM name>\

If you did not change the defaults.

1

u/antdude VMs rule! Oct 19 '21 edited Oct 19 '21

Thanks. I see it now: 00:00:02.807381 HM: HMR3Init: Attempting fall back to NEM: VT-x is not available

Also, I reuploaded my zip file with vbox.log files. My https://forums.virtualbox.org/viewtopic.php?f=6&t=104175&p=507408#p507405 forum thread got an answer to https://forums.virtualbox.org/viewtopic.php?f=25&t=97412. Where is this "Windows Hypervisor Platform (NEM)" option at as mentioned in "If Hyper-V cannot be disabled, e.g. due to company policy, then VirtualBox v6.x has a new ability to run via the Windows Hypervisor Platform (NEM), however Windows 10 (1809) or later is required, the feature still has bugs (as of VirtualBox 6.1.12), Microsoft keeps changing it, and it currently causes a significant drop in VM performance." in https://forums.virtualbox.org/viewtopic.php?t=62339#p506311? I need Hyper-V for Credential Guard, Windows Sandbox, etc. :( Although, OptionalFeatures.exe doesn't show any Hyper-V checked. Any my Windows Sandbox still works. Weird/Odd.

2

u/Face_Plant_Some_More Oct 19 '21

Virtual Box can run on Windows Hosts with Hyper-v enabled. But it's very hit or miss -- for some Host and Guest configs it works with a performance hit, on others it does not work at all.

Unless you are going to spend alot of trial and error to find a working config, you could simply disable Hyper-v on your Host whenever you need to run Virtual Box.

1

u/antdude VMs rule! Oct 20 '21 edited Oct 20 '21

It looks like I am not alone now in https://forums.virtualbox.org/viewtopic.php?f=6&t=104175&p=507408#p507411. AndyCot ran into this issue with .28, but other versions and builds were OK. So, I downgraded back to .26 (didn't even uninstall and reboot to reinstall). It's back to normal. It looks like .28 has issues.

2

u/Langanore Oct 20 '21

I have faced the same issue in the same context : upgrading from .26 to .28.

But now it works for me :)

I follow the guidelines indicated in this comment (regarding W10 Hypervision config) and after a reboot, I was able to launch my VM.

1

u/Face_Plant_Some_More Oct 20 '21 edited Oct 20 '21

Well if it works for you then great. But other users have reported behavior where it only appears to work at first, but otherwise just ends up corrupting all the data in said VMs, to the point where such data become unrecoverable. There is an entire thread on this -

https://forums.virtualbox.org/viewtopic.php?f=6&t=90853

In other words, running Virtual Box on a Windows Host with Hyper-v is a crapshoot. Sometimes it works, sometimes it wont, and sometimes you can sustain data loss / corruption with your VMs. If your VMs are mission critical, I would not recommend running Virtual Box in this fashion.

2

u/SumBadCheck Oct 20 '21

Do you have secure boot enabled?

1

u/antdude VMs rule! Oct 20 '21

Nope. Is there a way to confirm it in W10 Pro?

2

u/SumBadCheck Oct 20 '21

it's a bios setting. I had a similar issue with HPE DL380 gen10 running 2019 all the sudden stop working after patches. I took a guess that the issue was related to secure boot (a component of UEFI). Unfortunately, i cannot keep this setting off since we have mandates to follow DOD STIG recommendations.

1

u/antdude VMs rule! Oct 20 '21

I still don't understand why .26 works, but not .28. What changed in VB?

2

u/SumBadCheck Oct 20 '21

You’re not the only one lol! I blame windows

1

u/antdude VMs rule! Oct 20 '21

To me, I blame VB since .26 works. :/

2

u/extraneu Oct 23 '21

I don't understand your surprise. VB is a very complex product, and if you look at the changelog they change way more than is expected for a "maintenance release", there is plenty of opportunity for new bugs :-/ Of course one would not expect that kind of obvious and universal bug to slip into a relase...

2

u/vernonranis Oct 24 '21

I got the same error. I referred to this post to fix the error.

  1. open a cmd with admin privilige

  2. bcdedit /set hypervisorlaunchtype off

  3. reboot

Error gone and VMs are working again.

1

u/antdude VMs rule! Oct 24 '21

Others and I shouldn't have to do that if .26 and earlier worked though.

1

u/CherryGG2 Oct 24 '21

This works for new installations and old installations. Thanks.

1

u/rogueuser Oct 24 '21

Thanks, This worked for me as well!

1

u/tabormeister Oct 25 '21

This worked! THANKS! What does this hypervisor setting actually do?

1

u/watsonhaigh Oct 25 '21

bcdedit /set hypervisorlaunchtype off

This worked for me too.

u/tabormeister It basically disables the Hyper-V hypervisor running on the Windows host machine. In my case this is fine since I no longer use Hyper-V. https://stackoverflow.com/a/35812945/1413849

1

u/tabormeister Oct 26 '21

I'm going to pretend I know what that means :P

1

u/Admirable_Ad_2868 Nov 17 '21

Thanks. it worked

1

u/bpw1009 Nov 17 '21

Worked for me. thanks

2

u/Upbeat_Intern_5563 Nov 23 '21

Rollback to the 6.1.22. so for now VM working fine also as WSL environment with ubuntu and kali

1

u/antdude VMs rule! Nov 23 '21

Did you try v6.1.30 that was released yesterday? It was fixed for me.

2

u/SashasBSOD27 Jun 19 '26

У меня такая же проблема, но с 6.0.18, я перепробовал всё, но нет никакого результата. Буду пользоваться последней версией.

1

u/antdude VMs rule! Jun 19 '26

Post in VB's official forum and and file a bug report with logs.

2

u/Available_Ad_1186 Nov 01 '21

Not only disable "hyper-v" but also "virtualization platform" on windows in "Apps and features". Worked here (windows 10)

2

u/storm072969 Nov 01 '21

This did not work for me but I'm still trying some things.

1

u/antdude VMs rule! Nov 07 '21

Any updates?

1

u/Available_Ad_1186 Nov 14 '21

could you solve it?

2

u/[deleted] Nov 05 '21

thx, it worked for me :)

1

u/Sarcares Nov 12 '21

Thanks, it worked for me too!

1

u/I_fking_Hate_Reddit Nov 15 '21

thanks, that worked

1

u/[deleted] Nov 23 '21

its not working

1

u/arwilde Nov 26 '21

I disable virtualization platform and fixed the problem thank you

1

u/[deleted] Oct 25 '21

Another solution is turning off the Windows features settings. Turn off Virtual Machine Platform and Hypervision and then restart your computer and you should be all good to go.

1

u/antdude VMs rule! Oct 25 '21

Why were you deleted?

3

u/pras92 Oct 28 '21

As others mentioned, can confirm both option works. You can either downgrade to 6.1.26 or disable Hyper-V. A system restart is necessary for the changes to take effect. Thanks to ygoe for his GUI HyperV switch, which additionally mentions the current status of HyperV.

2

u/[deleted] Oct 24 '21

Hi all, chiming in here. Thanks for your posts, I found this thread after I ran into this problem myself today. I tried the commands that u/vernonranis shared but they didn't work for me, and I tried turning the hypervisorlaunchtype back to auto to see what would happen. Downgrading to 6.1.26 resolved the problem. You can download it from here: https://download.virtualbox.org/virtualbox/6.1.26/

1

u/AA2303_PRO Oct 29 '21

Thanks DanV_Rev9! It works.

1

u/IronMatt97 Oct 30 '21

thanks a lot man!

1

u/No_Safety_5453 Oct 31 '21

worked, thanks

1

u/gmr2048 Nov 10 '21

This was the fix I used as well. Seems to be working so far with my HomeAssistant guest VM. Thanks!

1

u/Shade1260 Nov 12 '21

This is what solved it for me, thanks

1

u/rem_kudusov Dec 23 '21

Thank's a lot, dude

1

u/[deleted] Oct 27 '21

[removed] — view removed comment

1

u/Acrobatic_Student632 Oct 28 '21

Yep, worked me too!!

Thanks DanV_Rev9!

2

u/Awkward_Remove127 Oct 24 '21

Yes, I was using kali then updated, and now can not use it.

2

u/AA2303_PRO Oct 25 '21

Yeah, me too either after update it. And now I'd to use Hyper-V.

2

u/adamf663c Nov 02 '21

Just as a data point: I had exactly the same issue and downgraded to 6.1.26. However, I'd forgotten to downgrade the extension pack and when I tried to start a vm, got the same error as when I attempted 6.1.28. Downgrading the extpack fixed it.

Next, I'm going to retry 6.1.28 with win10 hyper-v and virtualization removed and that bcdedit fix.

2

u/adamf663c Nov 02 '21

I verified that hypervisorlaunchtype was off. My VM is a linux (ubuntu) guest and the advanced setting for hypervisor is set to kvm.

Back to 6.1.26

2

u/[deleted] Nov 14 '21

Also disable Microsoft Defender Application Guard.

0

u/[deleted] Oct 23 '21

[deleted]

1

u/antdude VMs rule! Oct 23 '21 edited Oct 24 '21

Please share your VB v6.1.2.28 logs into bug reports so VB's team can analyze and fix it ASAP.