There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. windows 10
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.
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:
- Right click on "This PC" / "My Computer" on windows desktop
- Select "Properties"
- Go to "Advanced" tab
- Click "Environment Variables..." at the bottom
- Under System Variables click "New..."
- Set "Variable name" to "VBOX_INSTALL_PATH"
- Set "Variable value" to "C:\Program Files\Oracle\VirtualBox\"
- 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