命令行啟動提示信息
there was an error while executing `vboxmanage`, a cli used by vagrant for controlling virtualbox. the command and stderr is shown below.there was an error while executing `vboxmanage`, a cli used by vagrant for controlling virtualbox. the command and stderr is shown below.
command: ["startvm", "e3088608-a6e8-49d5-b04d-72fe944fac85", "--type", "headless"
BOX啟動Ubuntu的虛擬機時,遇到錯誤信息:
NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034STATUS_OBJECT_NAME_NOT_FOUND (0 retries) (rc=-101)Make sure the kernel module has been loaded successfully.
問題原因:
這是沒有用命令 vagrant halt正常退出虛擬機,造成的問題
解決方案:
運行“sc.exe query vboxdrv”檢測vboxdrv的運行狀態。 如果"STATE"不是“RUNNING”,則需要啟動該服務
啟動命令“sc start vboxdrv" 啟動后,顯示為:
如果啟動失敗,可以嘗試重新安裝vboxdrv。
找到安裝目錄下的vboxdrv文件夾,如C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv, 右擊VBoxDrv.inf,選安裝
然后重啟電腦就可以正常運行了