执行`VBoxManage`

时间:2016-10-08 20:26:43

标签: laravel vagrant git-bash homestead

我的laravel项目昨天正常运作。但今天我给了"homestead up" 我收到了以下错误。

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "52b79407-0736-482d-86aa-596388cf3668", "--natpf1", "delete", "ssh", "--natpf1", "delete", "tcp33060", "--natpf1", "delete", "tcp44300", "--natpf1", "delete", "tcp54320", "--natpf1", "delete", "tcp8000"]

Stderr: VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 493 of file VBoxManageModifyVM.cpp

我知道这个问题类似于There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. windows 10这个问题。但是这里提供的解决方案无法帮助我。

1 个答案:

答案 0 :(得分:1)

  

LockMachine(a->session, LockType_Write)

很可能你有另一个正在运行的进程来锁定VM运行

ps -ef | grep -i "vbox"

找出其他流程 -

您还可以尝试通过

强制启动VM
vboxmanage startvm 52b79407-0736-482d-86aa-596388cf3668 --type emergencystop

确保VM从VirtualBox启动(尚未流浪)然后从VirtualBox正确关闭它,下一个vagrant up应该正常工作