我在Windows 7上运行Vagrant(1.8.1)+ VirtualBox(5.0.12)并尝试启动Windows 7映像(modernIE / 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 ---------------------------
我运行了查询命令,但服务“未find”。
> sc.exe query vboxdrv [SC] EnumQueryServicesStatus:OpenService FAILED 1060: The specified service does not exist as an installed service.
我也尝试重新启动。 没有。
我在Windows 10上,下面的步骤适用于我:
脚步:
谢谢!
VirtualBox的安装有问题(我已经看到这个问题早在4.x报告)。 安装程序为驱动程序SYS文件(本例中为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
试试下面的代码:
sc.exe start vboxdrv