Thursday, November 18, 2021

[SOLVED] Unable to launch Ubuntu18.04 on VirtualBox [VERR_NEM_VM_CREATE_FAILED]

Issue

Ubuntu18.04 was working fine for me on VirtualBox v6.x until I got windows updates (insider preview). Now any of my old as well any new VM is crashing with following error

Call to WHvSetupPartition failed: ERROR_SUCCESS (Last=0xc000000d/87) (VERR_NEM_VM_CREATE_FAILED).

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

I don't want to uninstall windows updates unless there is no solution to this problem.

pls let me know if any quick fix available for this.


Solution

After searching for couple of hours and trying various things..finally below method worked for me on Windows 10

In order to allow VirtualBox to run properly you need to enable/disable following windows feature by going into programs and feature (Win + R >> appwiz.cpl)

  1. Disable Hyper-V (if it is available on your machine)
  2. Enable "Virtual Machine platform"
  3. Enable "Windows Hypervisor platform"
  4. Disable "Windows Sandbox" (if available on your machine)
  5. Open Poweshell command prompt as admin and then run followng command

    bcdedit /set hypervisorlaunchtype off

  6. Restart machine

and the error should go away...



Answered By - Kundan