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(DeviceVBoxDrvStub) 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 FilesOracleVirtualBoxdriversvboxdrv, 右击VBoxDrv.inf,选安装
然后重启电脑就可以正常运行了
原文地址:https://www.cnblogs.com/humiao-0626/p/11165477.html