Encountered Vagrant Up error on MacOs Big Sur Upgrade

两盒软妹~` 提交于 2020-12-02 04:55:40

问题


I just upgraded my mac OS from Catalina to Big Sur. My vagrant used to be working normally before and then I encountered this issue. (Vagrant version: 2.2.13)

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

When I tried to start it manually on the VirtualBox this is the return message:

Kernel driver not installed (rc=-1908)

Make sure the kernel module has been loaded successfully.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 

Does anyone have a clue on how to fix this issue?


回答1:


I had the same issue after updating to Big Sur. I downloaded the latest versions of Vagrant, Virtualbox and VirtualBox Extension Pack. Actually, I don't know if installing the Extension Pack was necessary.

And in the system preferences of MacOS, in Privacy and Security, I had to approve the update from Oracle.

After these steps, I was able to 'vagrant up' again.




回答2:


Updating VirtualBox to 6.1.16 did it for me. I did not update Vagrant




回答3:


Updating VirtualBox to 6.1.16 did it for me, not working with 6.0.24. Also reinstalled Vagrant but not sure if necessary.




回答4:


Fixed by reinstalling both Vagrant and VirtualBox :)




回答5:


The allow oracle button in privacy and security never showed up in my settings. Eventually I got it working by booting in recovery mode and running the command

csrutil clear

After that I was able to allow oracle in security and privacy.




回答6:


I Also just ran into this issue today after updating to Big Sur. Using homebrew to update VirtualBox (v. 6.1.16) and approving in Security & Privacy did not resolve the problem. I had to give VirtualBox Full Disk Access in the Privacy Tab of Security & Privacy to solve this.

The last comment form the virtualbox forum is what helped me with the last step.

https://forums.virtualbox.org/viewtopic.php?f=39&t=98763#p488757




回答7:


Upgrading virtual box to latest version (6.1.16 at this moment) works for me. Didn't had to upgrade vagrant version.

vagrant up worked right after upgrading the virtual box.



来源:https://stackoverflow.com/questions/64816944/encountered-vagrant-up-error-on-macos-big-sur-upgrade

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!