我在Windows7上运行Vagrant1.8.1+ VirtualBox (5.0.12),并试图引导Windows7映像(现代化I/w7-IE8)。但是,我得到了以下错误:
---------------------------
VirtualBox - Error In supR3HardenedWinReSpawn
---------------------------
<html><b>NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries) (rc=-101)</b><br/><br/>Make sure the kernel module has been loaded successfully.<br><br><!--EOM-->where: supR3HardenedWinReSpawn
what: 3
VERR_OPEN_FAILED (-101) - File/Device open failed.
Driver is probably stuck stopping/starting. Try 'sc.exe query vboxdrv' to get more information about its state. Rebooting may actually help.</html>
---------------------------
OK
---------------------------
我运行了查询命令,但是服务“找不到”。
> sc.exe query vboxdrv
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:
The specified service does not exist as an installed service.
我也试过重新启动。没什么。
发布于 2016-01-13 22:26:27
VirtualBox的安装有问题(我早在4.x就看到了关于这个问题的报告)。安装程序为驱动管理系统文件(本例中的ImagePath
)注册一个不正确的位置。
PS> Get-ItemProperty HKLM:\system\currentcontrolset\services\vboxdrv
Type : 1
Start : 3
ErrorControl : 1
ImagePath : \??\C:\Program Files\Oracle\VirtualBox\VBoxDrv.sys
DisplayName : VBox Support Driver
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\system\currentcontrolset\services\vboxdrv
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\system\currentcontrolset\services
PSChildName : vboxdrv
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
文件不存在。
PS> Test-Path (Get-ItemProperty HKLM:\system\currentcontrolset\services\vboxdrv).ImagePath
False
实际位置需要额外的drivers\vboxdrv
。
PS> Test-Path 'C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.sys'
True
您可以更新注册的位置。
PS> Set-ItemProperty HKLM:\system\currentcontrolset\services\vboxdrv -Name ImagePath -Value '\??\C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.sys'
现在你可以启动司机/服务了。
> sc.exe start vboxdrv
发布于 2016-08-04 16:59:04
我在windows 10上,下面的步骤适用于我:
步骤:
发布于 2016-06-13 12:58:16
尝试以下代码(作为管理员):
sc.exe start vboxdrv
https://stackoverflow.com/questions/34778147
复制相似问题