vagrant box 中止,无法启动

vagrant box aborted, can not up

我从命令行收到错误消息:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/xenial64' is up to date...
==> default: A newer version of the box 'ubuntu/xenial64' for provider 'virtualbox' is
==> default: available! You currently have version '20181102.0.0'. The latest is version
==> default: '20181122.1.0'. Run `vagrant box update` to update.
==> default: Clearing any previously set forwarded ports...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "8cb8ae85-050a-4bf2-8f8a-5b53bc002c24", "--natpf1", 
"delete", "ssh", "--natpf1", "delete", "tcp3306", "--natpf1", "delete", 
"tcp443", "--natpf1", "delete", "tcp5000", "--natpf1", "delete", "tcp6379", "-- 
natpf1", "delete", "tcp7000", "--natpf1", "delete", "tcp80", "--natpf1", 
"delete", "tcp9000"]

Stderr:VBoxManage.exe:错误:代码 E_FAIL (0x80004005) - 未指定的错误 (扩展信息不可用) VBoxManage.exe:错误:上下文:"LockMachine(a->session, LockType_Write)" 在
文件 VBoxManageModifyVM.cpp

的第 525 行

你能帮帮我吗?

抱歉,我刚刚在 visualbox 中停止机器并重新启动它。一切都刚刚好,我仍然不知道原因。

您可以使用 $ vagrant up --debug 获得更深入的日志,或者如果您想将其保存到文件 $ vagrant up --debug &> vagrant.log。否则,我会建议确保所有虚拟机都已停止,然后 运行 $ vagrant reload --provision。此外,关于此的美妙之处在于您可以轻松地将其拆下并重新开始! :)