If You Have an Outdated VirtualBox and updated your MacOS to Mojave….


You should update VirtualBox to the 5.2.18 version immediately. If you don’t you’ll see this when trying to vagrant up.

 

Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Checking if box ‘<your box>’ is up to date…
==> default: Clearing any previously set network interfaces…
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”]

Stderr: 0%…
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: “RTEXITCODE handleCreate(HandlerArg *)” at line 94 of file VBoxManageHostonly.cpp

,