Now, I've seen a few questions regarding my issue on various Stack websites and also on GitHub. However, after trying everything they have recommended, my environment still doesn't work, which is why I'm opening a new question.
Prior upgrading to Monteray, vagrant up would run successfully. But, ever since the upgrade, I see the following error message on:
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 95 of file VBoxManageHostonly.cpp
Details:
Vagrant version 2.2.19
VirtualBox version 6.1
What I've tried:
- Complete uninstalls and re-installs of
VagrantandVirtualBox. Permissions have also be granted inSecurity and Privacy. - I've tried to force
guirather thanheadlessby settingv.gui = truein myVagrantfileas suggested here and here. - I've tried installing older versions of
VirtualBoxto see if it solved the issue. - Tried installing the
VirtualBoxextension, restarted my Mac and ranvagrant up, but no change. See accepted answer here for my approach.
I've ran out of avenues to try. Wondering if anyone had any alternative approaches as I'm stumped.