执行“VBoxManage"时出错,这是 Vagrant 用于控制 VirtualBox 的 CLI.窗户 10 [英] There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. windows 10

查看:32
本文介绍了执行“VBoxManage"时出错,这是 Vagrant 用于控制 VirtualBox 的 CLI.窗户 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天刚刚使用 powershell 运行 laravel homestead.现在,它甚至不会运行.我刚刚暂停了流浪者并关闭了我的电脑.现在它只是给我这个错误:

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:

  1. 在 Windows 桌面上右键单击这台电脑"/我的电脑"
  2. 选择属性"
  3. 转到高级"标签
  4. 点击底部的环境变量..."
  5. 在系统变量下点击新建..."
  6. 将变量名"设置为VBOX_INSTALL_PATH"
  7. 将变量值"设置为C:Program FilesOracleVirtualBox"
  8. 选择确定"并关闭所有其他设置窗口

来源:https://github.com/mitchellh/vagrant/issues/3852

这篇关于执行“VBoxManage"时出错,这是 Vagrant 用于控制 VirtualBox 的 CLI.窗户 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆