我从命令行得到了错误消息:
$ 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中停止机器,然后重新启动它。一切都很好,我仍然不知道原因。
答案 0 :(得分:2)
您可以使用$ vagrant up --debug
或将其保存到文件$ vagrant up --debug &> vagrant.log
中来获取更多深度日志。否则,我建议确保所有虚拟机都已停止,然后运行$ vagrant reload --provision
。另外,与此有关的妙处是您可以将其拆下并轻松地重新开始! :)