(This is a legacy post from the old website.)
I’ve found I occasionally run into an odd Vagrant error every now and then:
There was an error while executing
`VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: [“hostonlyif”, “create”]
For me, this sometimes happens when I try to re-instantiate a virtual
machine after my laptop’s battery has died and OSX has attempted to
restore state. Other people seem to encounter this error under different
conditions; even immediately after installing Vagrant and attempting to
spin up a virtual machine for the first time.
Run the following command to bounce VirtualBox:
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
and now running:
should go off without a hitch.