前几天在自己电脑搭建vagrant环境报错:“There was an error while executing `VBoxManage`, a CLI used by Vagrant

for controlling VirtualBox. The command and stderr is shown below.”,找了很久才找到解决办法,如下:

1、在C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.8.6\plugins\providers\virtualbox目录下打开action.rb,注释掉第74行:b.use ClearNetworkInterfaces(因个人安装位置不同可能有所差异)

2、以管理员权限打开VirtualBox,去管理->全局设定->网络界面,点击第二个选项卡“仅主机(Host-only)网络”,选择一个适配器进行编辑(将IP设为与Vagrantfile中一致即192.168.10.10)并保存:

vagrant up 失败解决办法

 

3、再次运行vagrant reload便可启动成功

 

vagrant up 失败解决办法

 

 

相关文章:

  • 2021-05-17
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
  • 2021-07-21
  • 2021-12-03
  • 2021-04-07
猜你喜欢
  • 2021-11-17
  • 2021-10-08
  • 2022-12-23
  • 2021-07-08
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案