Vagrant Issues on Mac

If you are running into problems with Vagrant. This is probably your scenario.

macOS High Sierra (version 10.13.6)

Vagrant 2.1.2

VirtualBox 5.2.16

You will type in “vagrant up”

and get this error:

Bringing machine ‘default’ up with ‘virtualbox’ provider…

==> 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

You will start searching the web for this error and you will find out that you need to restart VirtualBox with the following command

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

Once you run that command you will receive another error:

Loading VBoxDrv.kext

/Library/Application Support/VirtualBox/VBoxDrv.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxDrv.kext

Loading VBoxUSB.kext

/Library/Application Support/VirtualBox/VBoxUSB.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxUSB.kext

Loading VBoxNetFlt.kext

/Library/Application Support/VirtualBox/VBoxNetFlt.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetFlt.kext

Loading VBoxNetAdp.kext

/Library/Application Support/VirtualBox/VBoxNetAdp.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext

(kernel) Kext org.virtualbox.kext.VBoxNetAdp not found for unload request.

Failed to unload org.virtualbox.kext.VBoxNetAdp – (libkern/kext) not found.

(kernel) Kext org.virtualbox.kext.VBoxNetFlt not found for unload request.

Failed to unload org.virtualbox.kext.VBoxNetFlt – (libkern/kext) not found.

(kernel) Kext org.virtualbox.kext.VBoxUSB not found for unload request.

Failed to unload org.virtualbox.kext.VBoxUSB – (libkern/kext) not found.

(kernel) Kext org.virtualbox.kext.VBoxDrv not found for unload request.

Failed to unload org.virtualbox.kext.VBoxDrv – (libkern/kext) not found.

Fatal error: VirtualBox

I have spent two days trying to figure out the problem:

All I had to do is go to System Preferences > Security & Privacy.

Oracle will be blocked, you will need to click allow.

And then go ahead and run “vagrant up” again.

 

 

Published by

Tony Mamedbekov

Husband, Developer, Coder, Designer, Photographer, Entrepreneur and many more great things :)

2 thoughts on “Vagrant Issues on Mac”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.