I'm running a virtualbox image using vagrant on mac. Everything worked fine untill I updated to the latest Mac version (12.0.1 Monterey).
When I try to start up the machine using vagrant up I get the following error:
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 95 of file VBoxManageHostonly.cpp
If I go into virtualbox (the mac app) and start the machine there I also get an error (just saying it failed to start the machine. If I go to the host network manager part of
So there seems to be a problem with the host-only adapter.
After some diving into it and looking through other people's problems and solutions I tried the following:
- Allowing oracle from security and privacy settings, this didn't appear however
- running a command that restarts virtualbox (can't find what it was anymore, sorry :/ )
- reinstalling virtualbox
- install a testbuild from virtualbox(6.1)
- Adding virtualbox to full disk permissions
- adding the following from the vagrant documentation code in the vagrantfile:
config.vm.provider "virtualbox" do |v|
v.gui = true
end
Everytime I try to install virtualbox I get an error stating that the setup failed. But the icon is back again.
What can this be and how can I solve this ?