执行`VBoxManage`时出错,这是Vagrant用于控制VirtualBox的CLI.窗户10 [英] There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. windows 10
本文介绍了执行`VBoxManage`时出错,这是Vagrant用于控制VirtualBox的CLI.窗户10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
昨天我刚刚使用Powershell来运行laravel宅基地.现在,它甚至无法运行.我只是暂停了无业游民并关闭了我的电脑.现在,这只是给我这个错误:
I just got laravel homestead to run yesterday using powershell. Now, it won't even run. I just suspended vagrant and turned off my pc. Now it's just giving me this error:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> 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", "b21f2dd0-7f73-4d0f-b1e0-0f82ecdda1fe",
"--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
推荐答案
好,所以我终于解决了这个问题.试图重新启动我的笔记本电脑,它不再给我该错误.这是我所做的:
Ok, so I finally fixed the problem. Tried restarting my laptop and it's not giving me that error anymore. Here's what I did:
- 右键单击Windows桌面上的此PC"/我的电脑"
- 选择属性"
- 转到高级"标签
- 点击底部的环境变量..."
- 在系统变量下,单击新建..."
- 将变量名称"设置为"VBOX_INSTALL_PATH"
- 将变量值"设置为"C:\ Program Files \ Oracle \ VirtualBox \"
- 选择确定"并关闭所有其他设置窗口
来源: https://github.com/mitchellh/vagrant/issues/3852
这篇关于执行`VBoxManage`时出错,这是Vagrant用于控制VirtualBox的CLI.窗户10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文