This happened when I upgraded macOS to Big Sur.
Vagrant could not start the VM, even if I upgraded both Vagrant and VirtualBox to the latest version...
Vagrant 2.2.13
6.1.16 r140961 (Qt5.6.3)
6.1.16
macOS Big Sur
11.0.1(20B29)
centos 7
Vagrant.configure("2") do |config|
config.vm.define "master1" do |master1|
master1.vm.box = "centos/7"
master1.vm.hostname = 'k8s-master1'
master1.vm.define vm_name = 'master1'
master1.vm.network :private_network, ip: "10.1.7.152"
master1.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--cpus", 2]
v.customize ["modifyvm", :id, "--memory", 4096]
v.customize ['modifyvm', :id, '--nicpromisc1', 'allow-all']
end
end
end
It should be able to start the CentOS VM.
When I executed vagrant up, the following error message came out:
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
vagrant up master1 --debugDoes anyone know how to solve it?
Hey, I solved this issue manually:
1) Uninstall VirtualBox via the their official uninstaller script
2) Do a clean install of VirtualBox using VirtualBox.pkg
3) Adjust the privacy settings of Big Sur: System Preferences > Security and Privacy > click the allow button
Hope this helps, cheers.
We can confirm this. Following @flavoi steps fixes this error. Thanks!
I followed the steps provided by @flavoi and still got the same error. I even manually removed the files and directories related to VirtualBox, but it didn't work...
The privacy settings are easily overlooked, since they open in a disabled state and are barely visible (great UI design apple #not)
After allowing the settings, the os should ask you to reboot.
I took a look at my privacy settings and found that there was an oracle thing that was disabled...it didn't even pop up a prompt asking me to turn it on.
After I turned it on, I restarted and it was ready to work.
I ignored the privacy setting and did not double check, thanks all, the problem is solved !
@flavoi 's advice is useful !
Mhh, I am getting the exact same error after upgrading to Big Sur but I can't find any "allow" button or similar. Or am I blind?


I uninstalled VirtualBox via their script and reinstalled it.
Thanks a lot for any help here
@pboese
Mhh, I am getting the exact same error after upgrading to Big Sur but I can't find any "allow" button or similar. Or am I blind?
Try to run the virtual machine directly from Virtualbox. MacOS will ask for new permissions and you can approve it one by one. :)
@pboese
Mhh, I am getting the exact same error after upgrading to Big Sur but I can't find any "allow" button or similar. Or am I blind?
Try to run the virtual machine directly from Virtualbox. MacOS will ask for new permissions and you can approve it one by one. :)
i did that and got this error

@tuananh
This link has helped solve the problem.
Thanks but the thing is it doesn't appear in privacy settings
On Sat, Nov 28, 2020 at 4:04 AM Nico Ianosi notifications@github.com
wrote:
@tuananh https://github.com/tuananh
This link has helped solve the problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hashicorp/vagrant/issues/12049#issuecomment-734989410,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEZETQZSDUALDE7225BNHDSSAH6VANCNFSM4TWJZLSA
.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Hey, I solved this issue manually:
1) Uninstall VirtualBox via the their official uninstaller script
2) Do a clean install of VirtualBox using VirtualBox.pkg
3) Adjust the privacy settings of Big Sur: System Preferences > Security and Privacy > click the allow button
Hope this helps, cheers.