NS_ERROR_FAILURE when running vagrant up

Dear experts
I am trying to start up vagrant in my Mac (macOS Monterrey 12.5) after downloading and installing VirtualBox 6.0.14 and vagrant 2.3.0. When I run ‘vagrant up’, I get the error NS_ERROR_FAILURE. I am stuck at this point. Anybody has been successful with my configuration?

% vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.30.0)'!
% vagrant up
Bringing machine 'm312' up with 'virtualbox' provider...
==> m312: Importing base box 'ubuntu/trusty64'...
==> m312: Matching MAC address for NAT networking...
==> m312: Setting the name of the VM: m312
==> m312: Clearing any previously set forwarded ports...
==> m312: 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

Hi :wave: @Fabio_Gil1,

Welcome to the MongoDB University forums :sparkles:

Can you confirm the chipset of your macOS? It’s intel or M1?

I suspect it’s M1, then you can refer to this thread.

I hope it helps!


1 Like