vagrant up ----失败 问题解决


命令行启动提示信息

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: 0xc000000034
STATUS_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,选安装
然后重启电脑就可以正常运行了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM