Reputation: 867
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:
Vagrant
and VirtualBox
. Permissions have also be granted in Security and Privacy
.gui
rather than headless
by setting v.gui = true
in my Vagrantfile
as suggested here and here.VirtualBox
to see if it solved the issue.VirtualBox
extension, restarted my Mac and ran vagrant 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.
Upvotes: 3
Views: 1019
Reputation: 9981
This usually happens if you update VirtualBox and don't restart your machine. VirtualBox uses kernel extensions, and in v7+ it uses another feature for network adapters. These requires a hard reboot.
So restart your Mac, and if that does not work, reinstall VirtualBox then restart it again. If that fails, completely remove VirtualBox, restart, install the newest version, restart, then try to provision.
BTW I'm the VVV project lead, usually when we see these issues we fix them, this isn't something you should need to fix yourself. But if you use stack overflow to report bugs we don't see it. Either raise a GitHub issue or ask in the VVV slack. We could have gotten to this in minutes/hours rather than years.
https://github.com/Varying-Vagrant-Vagrants/VVV/issues/new/choose https://varyingvagrantvagrants.org/docs/en-US/slack/
Upvotes: 1