I use Vagrant based virtual machines to develop on. These are great as you can create custom environments at will without affecting your main machine.
Today I had the following error while trying to bring up my development environment.
wks:Vagrant robertprice$ vagrant up devvm [ccfs] VM already created. Booting if it's not already running... [ccfs] Clearing any previously set forwarded ports... [ccfs] Forwarding ports... [ccfs] -- 22 => 2222 (adapter 1) [ccfs] -- 80 => 4567 (adapter 1) [ccfs] Creating shared folders metadata... [ccfs] Clearing any previously set network interfaces... There was an error executing the following command with VBoxManage: ["hostonlyif", "create"] For more information on the failure, enable detailed logging with VAGRANT_LOG.
This turned out to be an error with VirtualBox, the virtualisation environment Vagrant uses. The solution is to force a restart of VirtualBox.
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
I hope this helps others experiencing the same problem.