简体   繁体   English

无法在 VirtualBox 上启动 Ubuntu18.04 [VERR_NEM_VM_CREATE_FAILED]

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

Ubuntu18.04 was working fine for me on VirtualBox v6.x until I got windows updates (insider preview). Ubuntu18.04 在 VirtualBox v6.x 上运行良好,直到我获得 Windows 更新(内部预览)。 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).调用 WHvSetupPartition 失败:ERROR_SUCCESS (Last=0xc000000d/87) (VERR_NEM_VM_CREATE_FAILED)。

Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}结果代码:E_FAIL (0x80004005) 组件:ConsoleWrap 接口:IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

I don't want to uninstall windows updates unless there is no solution to this problem.除非没有解决此问题的方法,否则我不想卸载 Windows 更新。

pls let me know if any quick fix available for this.请让我知道是否有任何快速修复可用于此。

After searching for couple of hours and trying various things..finally below method worked for me on Windows 10在搜索了几个小时并尝试了各种事情之后……终于下面的方法在 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 )为了让 VirtualBox 正常运行,您需要通过进入程序和功能( Win + R >> appwiz.cpl )来启用/禁用以下窗口功能

  1. Disable Hyper-V (if it is available on your machine)禁用 Hyper-V(如果它在您的机器上可用)
  2. Enable "Virtual Machine platform"启用“虚拟机平台”
  3. Enable "Windows Hypervisor platform"启用“Windows 管理程序平台”
  4. Disable "Windows Sandbox" (if available on your machine)禁用“Windows Sandbox”(如果您的机器上可用)
  5. Open Poweshell command prompt as admin and then run followng command以管理员身份打开 Poweshell 命令提示符,然后运行以下命令

    bcdedit /set hypervisorlaunchtype off

  6. Restart machine重启机器

and the error should go away...并且错误应该消失......

Windows Subsystem for Linux (WSL) feature was enabled.适用于 Linux 的 Windows 子系统 (WSL) 功能已启用。 This solved it for me:这为我解决了:
1) go to Windows features and disable WSL 1)转到Windows功能禁用WSL
2) restart 2)重启
3*) if still doesn't work, enter the following command (turn off HyperV as mentioned in the previous answer) 3*) 如果仍然不起作用,请输入以下命令(关闭上一个答案中提到的 HyperV)

bcdedit /set hypervisorlaunchtype off

then然后
4*) restart 4*) 重启
*In my case, step 1) and 2) were enough *就我而言,步骤 1) 和 2) 就足够了

If nothing from suggested answer works for you try to go to: Windows Features -> uncheck Virtual Machine Platform.如果建议的答案对您不起作用,请尝试转到:Windows 功能 -> 取消选中虚拟机平台。 It worked for me.它对我有用。

None of the above worked for me so I followed the thread here which says: https://forums.virtualbox.org/viewtopic.php?f=6&t=104175&p=507408以上都不适合我,所以我跟着这里的线程说: https : //forums.virtualbox.org/viewtopic.php?f=6&t=104175&p=507408

I get the same problem with 6.1.28我在 6.1.28 遇到同样的问题

I have tired the following Virtualbox versions: OKAY - VirtualBox-6.1.26-145957-Win.exe OKAY - VirtualBox-6.1.27-147422-Win.exe (test build) OKAY - VirtualBox-6.1.97-147373-Win.exe (yes 6.1.97 test build) BAD - VirtualBox-6.1.28-147628-Win.exe我厌倦了以下 Virtualbox 版本:OKAY - VirtualBox-6.1.26-145957-Win.exe OKAY - VirtualBox-6.1.27-147422-Win.exe(测试版本)OKAY - VirtualBox-6.1.97-147373-Win。 exe(是 6.1.97 测试版本)不好 - VirtualBox-6.1.28-147628-Win.exe

So it looks like a change between SVN 147422 and 147628 has caused the NEMR0InitVMPart2 failure to occur.所以看起来SVN 147422和147628之间的变化导致了NEMR0InitVMPart2故障发生。

I have changed between the different versions listed above without any reboots or Windows changes, so the only changes are with the different VirtualBox installs.我在上面列出的不同版本之间进行了更改,没有任何重新启动或 Windows 更改,因此唯一的更改是不同的 VirtualBox 安装。

I upgraded my Oracle Virtual Box from 6.1.28 to 6.1.30 and that fixed it.我将我的 Oracle Virtual Box 从 6.1.28 升级到 6.1.30 并修复了它。

Turn Windows features on or off.打开或关闭 Windows 功能。

  • Enable Hyper-V启用 Hyper-V

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM