VirtualBox 导致主机 BSOD 在 Windows 10 下启动 VM。Hyper-V 已关闭

Cho*_*ett 8 virtualbox bsod windows-10

我有一个新安装的 64 位 Windows 10 系统,安装了 VirtualBox 和 CentOS 7.0 VM 映像。每当我尝试启动 VM 时,Windows BSOD 都会出现SYSTEM_SERVICE_EXCEPTION, code 0x0000003b

经过大量(且令人沮丧)的谷歌搜索后,我发现很多关于这是由 Windows 10 的 Hyper-V 虚拟化引起的引用,因此我已通过 Windows 功能将其关闭;确保没有 Hyper-V 服务正在运行,或设置为在启动时运行。这并没有阻止 BSOD。

这个完全相同的设置,包括硬件,但使用 Win 7 32 位而不是 Win 10 64 位,一直运行良好,直到 IT 将我的机器重新映像到 Windows 10。

下面是 VBox.log 的输出,虽然它看起来不像任何相关的东西。

VirtualBox VM 5.0.40 r115130 win.amd64 (Apr 28 2017 19:55:07) release log
00:00:00.308913 Log opened 2017-07-10T13:36:10.933562500Z
00:00:00.308914 Build Type: release
00:00:00.308917 OS Product: Windows 10
00:00:00.308918 OS Release: 10.0.14393
00:00:00.308918 OS Service Pack: 
00:00:00.383912 DMI Product Name: B85M-E
00:00:00.386322 DMI Product Version:  
00:00:00.386327 Host RAM: 8063MB total, 3856MB available
00:00:00.386329 Executable: C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe
00:00:00.386329 Process ID: 9952
00:00:00.386330 Package type: WINDOWS_64BITS_GENERIC
00:00:00.389754 Installed Extension Packs:
00:00:00.389787   None installed!
Run Code Online (Sandbox Code Playgroud)

任何人都可以提出前进的道路吗?

编辑此处提供 Minidump,对于相同的失败,VirtualBox v 5.1.22 除外。

小智 8

事实证明,仅禁用 Hyper-V 是不够的。还有另一个 Windows 功能,称为基于虚拟化的安全性,它使用 Hyper-V。你也需要禁用它。

我需要做的就是更改一个注册表项并重新启动:

使用regedit设置

HKEY_LOCAL_MACHINE\SYSTEM\Software\CurrentControlSet\Control\DeviceGuard

到 0,然后重新启动。

此处对 Device Guard / Virtualization Based Security 有很好的描述:Windows 10 Device Guard and Credential Guard Demystified

  • 早期迹象对此修复有好处 - 除了我们系统上的密钥是“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\EnableVirtualizationBasedSecurity”(Windows 10 Enterprise Version 1607(OS Build 14393.1770)) (5认同)

mag*_*981 0

我们无法修复此问题,因为 Windbg 将 Virtualbox 驱动程序显示为原因,该驱动程序尝试执行不允许的命令(特权指令):

EXCEPTION_CODE: (NTSTATUS) 0xc0000096 - Privileged instruction.

00 nt!KeBugCheckEx
01 nt!KiBugCheckDispatch
02 nt!KiSystemServiceHandler
03 nt!RtlpExecuteHandlerForException
04 nt!RtlDispatchException
05 nt!KiDispatchException
06 nt!KiExceptionDispatch
07 nt!KiGeneralProtectionFault
08 0x0
09 0x0
0a 0x0
0b VMMR0

    Image path: \??\C:\Program Files\Oracle\VirtualBox\VMMR0.r0
    Image name: VMMR0.r0
    Browse all global symbols  functions  data
    Timestamp:        Fri Apr 28 17:37:03 2017 
Run Code Online (Sandbox Code Playgroud)

尝试最新的测试版本,如果仍然遇到问题,请在错误跟踪器中向开发人员报告。