There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. windows 10

百般思念 提交于 2019-11-28 23:12:57

I had the same problem and the previous answer didn't work for me. I opened the VirtualBox GUI and saw that the virtual machine was running. I stopped it and then I executed "vagrant up". All worked well.

rendell

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. Right click on "This PC" / "My Computer" on windows desktop
  2. Select "Properties"
  3. Go to "Advanced" tab
  4. Click "Environment Variables..." at the bottom
  5. Under System Variables click "New..."
  6. Set "Variable name" to "VBOX_INSTALL_PATH"
  7. Set "Variable value" to "C:\Program Files\Oracle\VirtualBox\"
  8. Select "OK" and close all the other settings windows

source: https://github.com/mitchellh/vagrant/issues/3852

For Mac OS, close all the running VMs and restart the virtual box using following command:

sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart

Try to follow these steps 1. Run cmd as Administrator 2. vagrant halt 3. vagrant up 4. if required vagrant provision but once vagrant is up.

Prince John
  1. First of all destroy the virtual box with vagrant destroy.
  2. Navigate to C:\Users\Justice replace justice by username.
  3. Delete the .vagrant.d folder.
  4. Go into VirtualBox VMs folder and delete everything inside it.
  5. Start it again with vagrant up.

It should work fine.

Disable Hyper-V virtualization that is enabled in Windows.

Open a command prompt as administrator and run the following command:

dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

Afterwards, reboot the PC and try VirtualBox again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!