VirtualBox

Opened 2 years ago

Closed 18 months ago

#20637 closed defect (fixed)

kexts are not loaded after Monterey 12.0.1 reboot

Reported by: granada29 Owned by:
Component: other Version: VirtualBox 6.1.28
Keywords: Cc:
Guest type: other Host type: other

Description

The VirtualBox kext bundles are not automatically loaded after a system boot.

My workaround is to load them manually:

sudo su -
cd /Library/Application\ Support/VirtualBox/
for f in *.kext; do kmutil load -p $f; done

Change History (15)

comment:1 by ssh22, 2 years ago

I confirm. After every MacOS reboot, I need to load the kexts manually...

sudo kextload -b org.virtualbox.kext.VBoxDrv;
sudo kextload -b org.virtualbox.kext.VBoxNetFlt;
sudo kextload -b org.virtualbox.kext.VBoxNetAdp;
sudo kextload -b org.virtualbox.kext.VBoxUSB;

comment:2 by Klaus Espenlaub, 2 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #20636.

comment:3 by farmerJack, 2 years ago

Thanks for the straightforward, sensible and concise reply. This is exactly the issue I was having with Monterey.

comment:4 by Nick Hibma, 2 years ago

Resolution: duplicate
Status: closedreopened

comment:5 by Nick Hibma, 2 years ago

Reopened. #20636 is about VBoxHeadless not starting.

This PR is about kext not being automatically loaded during boot / when needed.

comment:6 by Jeroen, 2 years ago

I am not sure if this was already known, but on GitHub someone addressed the possible issue here: https://github.com/hashicorp/vagrant/issues/12557#issuecomment-957559631 I hope this will be useful in creating a new maintenance release which fixes the issues for MacOS Monterey

comment:7 by sorin, 2 years ago

Sadly I am unable to load the kernel extensions due to:

Error Domain=KMErrorDomain Code=27 "Extension with identifiers org.virtualbox.kext.VBoxNetAdp,org.virtualbox.kext.VBoxNetFlt,org.virtualbox.kext.VBoxDrv,org.virtualbox.kext.VBoxUSB not approved to load. Please approve using System Preferences." UserInfo={NSLocalizedDescription=Extension with identifiers org.virtualbox.kext.VBoxNetAdp,org.virtualbox.kext.VBoxNetFlt,org.virtualbox.kext.VBoxDrv,org.virtualbox.kext.VBoxUSB not approved to load. Please approve using System Preferences.}

I mention that they do not appear inside Security & Privacy screen, maybe because the prerelease versions are not signed?

comment:8 by Klaus Espenlaub, 2 years ago

All our builds are always signed, but as the test build page clearly states the overall package isn't notarized which means that the kernel extensions will not be loaded unless you disable SIP. At least that's how it was to my knowledge until Big Sur...

I'm already thinking about creating a special test build for macOS which is notarized, to get this issue resolved for those who can't disable SIP.

comment:9 by summe, 2 years ago

hi, noob question, how do I load the kexts manually please? thanks

comment:10 by sorin, 2 years ago

Assuring that the test-builds are signed is indeed a very useful thing to do. TBH, I can disable SIP but I will not do it. It is a very bad security practice and I avoiding using any software that requires it, especially as it opens the door for future security issues. SIP is far worse than "root".

I guess that @summe cannot load extension by hand due to SIP too. The commands for loading them are in the first comment, but they will work with test build only when SIP is disabled.

comment:11 by summe, 2 years ago

Last edited 2 years ago by summe (previous) (diff)

comment:12 by Klaus Espenlaub, 2 years ago

Could you try with this test build? It is notarized, to avoid the usual SIP trouble...

in reply to:  12 comment:13 by aydinchavez, 2 years ago

Replying to klaus:

Could you try with this test build? It is notarized, to avoid the usual SIP trouble...

I installed your build on my MacOs Monterey (12.0.1) and after a reboot it worked (meaning no need to load kext bundles manually). Grüße

comment:14 by Jeroen, 2 years ago

It's working here too!

comment:15 by aeichner, 18 months ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use