Kext not loading on MacOS 10.14.2

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Raffa
Posts: 4
Joined: 10. Dec 2018, 22:36

Kext not loading on MacOS 10.14.2

Post by Raffa »

Hello folks,
after upgrading from 10.14.1 to 10.14.2 I'm unabled to load any VirtualBox kernel extension, seems that Apple changed the API interface because a symbol is not available anymore.

Code: Select all

default	20:32:37.522938 +0000	kernel	kxld[org.virtualbox.kext.VBoxDrv]: In interface com.apple.kpi.unsupported of __kernel__, couldn't find symbol _mach_msg_destroy_from_kernel_proper
default	20:32:37.555435 +0000	kernel	AssertLogRel /Users/vbox/tinderbox/5.2-mac-rel/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp(562) int rtR0DbgKrnlDarwinCheckStandardSymbols(RTDBGKRNLINFOINT *): <NULL>
default	20:32:37.555449 +0000	kernel	IOMalloc (ffffff8017a15fd0 != ffffff8017a15b90)
default	20:32:37.556749 +0000	kernel	disabling SMAP for VBoxDrvDarwinIOCtl
default	20:32:37.556755 +0000	kernel	AssertLogRel /Users/vbox/tinderbox/5.2-mac-rel/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp(562) int rtR0DbgKrnlDarwinCheckStandardSymbols(RTDBGKRNLINFOINT *): <NULL>
default	20:32:37.556756 +0000	kernel	IOMalloc (ffffff8017a15fd0 != ffffff8017a15b90)
default	20:32:37.556909 +0000	kernel	VBoxDrv: Failed to open kernel symbols, rc=-226
default	20:32:37.556911 +0000	kernel	Kext org.virtualbox.kext.VBoxDrv start failed (result 0x5).
default	20:32:37.556923 +0000	kernel	Kext org.virtualbox.kext.VBoxDrv failed to load (0xdc008017).
default	20:32:37.556928 +0000	kernel	Failed to load kext org.virtualbox.kext.VBoxDrv (error 0xdc008017).
default	20:32:37.560252 +0000	kernel	Notice - kext org.virtualbox.kext.VBoxDrv asked to unregister unknown class org_virtualbox_SupDrvClient.
default	20:32:37.560283 +0000	kernel	Notice - kext org.virtualbox.kext.VBoxDrv asked to unregister unknown class org_virtualbox_SupDrv.

Using KextUtil:

Code: Select all

~$ sudo kextutil '/Library/Application Support/VirtualBox/VBoxDrv.kext'
Password:
Untrusted kexts are not allowed
Kext with invalid signature (-67062) denied: /Library/StagedExtensions/System/Library/Extensions/222B372C-482E-464E-90F6-1F0A440E3C64.kext
Bundle (/System/Library/Extensions/USBAx8817x.kext) failed to validate, deleting: /Library/StagedExtensions/System/Library/Extensions/222B372C-482E-464E-90F6-1F0A440E3C64.kext
Unable to stage kext (/System/Library/Extensions/USBAx8817x.kext) to secure location.
(kernel) kxld[org.virtualbox.kext.VBoxDrv]: In interface com.apple.kpi.unsupported of __kernel__, couldn't find symbol _mach_msg_destroy_from_kernel_proper

(kernel) Kext org.virtualbox.kext.VBoxDrv start failed (result 0x5).
(kernel) Kext org.virtualbox.kext.VBoxDrv failed to load (0xdc008017).
(kernel) Failed to load kext org.virtualbox.kext.VBoxDrv (error 0xdc008017).
(kernel) Notice - kext org.virtualbox.kext.VBoxDrv asked to unregister unknown class org_virtualbox_SupDrvClient.
(kernel) Notice - kext org.virtualbox.kext.VBoxDrv asked to unregister unknown class org_virtualbox_SupDrv.
Failed to load /Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxDrv.kext - (libkern/kext) kext (kmod) start/stop routine failed.
Any clue?

Thanks

Raffa
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Kext not loading on MacOS 10.14.2

Post by socratis »

You didn't tell which VirtualBox version you are using, or if you've ever run VirtualBox successfully in that computer. You can try the test builds and see if it has already been addressed, because you're the first person to mention 10.14.2...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Raffa
Posts: 4
Joined: 10. Dec 2018, 22:36

Re: Kext not loading on MacOS 10.14.2

Post by Raffa »

Hi Socratis, thanks for your reply.
You are right I didn't mention the version of VirtualBox I'm using, which is 5.2.22 r126460.

On MacOS 10.14.1 everything worked perfectly, as I stated above I started to have this issue after the upgrade to 10.14.2.

Forgive me the silly question, where can I find the test build?

Thanks

Raffa
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Kext not loading on MacOS 10.14.2

Post by socratis »

Not a silly question at all, my mistake actually, I should have linked to them. 5.2.23 Test builds: https://www.virtualbox.org/wiki/Testbuilds

Also, keep in mind that instead of the Developement snapshot in the same page, which is currently at 6.0.0b3, you can get 6.0.0 RC1, which was released not even an hour ago: https://download.virtualbox.org/virtualbox/6.0.0_RC1/
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Raffa
Posts: 4
Joined: 10. Dec 2018, 22:36

Re: Kext not loading on MacOS 10.14.2

Post by Raffa »

Hi Socratis,
many thanks for the hints.

I just installed VirtualBox 6.0.0 RC1 but unfortunately I got the same issue

~$ sudo kextutil '/Library/Application Support/VirtualBox/VBoxDrv.kext'
Untrusted kexts are not allowed
Kext with invalid signature (-67062) denied: /Library/StagedExtensions/System/Library/Extensions/A022BFF7-38AC-4916-96C1-6CC0EB5AF052.kext
Bundle (/System/Library/Extensions/USBAx8817x.kext) failed to validate, deleting: /Library/StagedExtensions/System/Library/Extensions/A022BFF7-38AC-4916-96C1-6CC0EB5AF052.kext
Unable to stage kext (/System/Library/Extensions/USBAx8817x.kext) to secure location.
(kernel) kxld[org.virtualbox.kext.VBoxDrv]: In interface com.apple.kpi.unsupported of __kernel__, couldn't find symbol _mach_msg_destroy_from_kernel_proper

(kernel) Kext org.virtualbox.kext.VBoxDrv start failed (result 0x5).
(kernel) Kext org.virtualbox.kext.VBoxDrv failed to load (0xdc008017).
(kernel) Failed to load kext org.virtualbox.kext.VBoxDrv (error 0xdc008017).
(kernel) Notice - kext org.virtualbox.kext.VBoxDrv asked to unregister unknown class org_virtualbox_SupDrvClient.
(kernel) Notice - kext org.virtualbox.kext.VBoxDrv asked to unregister unknown class org_virtualbox_SupDrv.
Failed to load /Library/StagedExtensions/Library/Application Support/VirtualBox/VBoxDrv.kext - (libkern/kext) kext (kmod) start/stop routine failed.
Attachments
Screenshot 2018-12-10 at 21.29.35.jpg
Screenshot 2018-12-10 at 21.29.35.jpg (86.7 KiB) Viewed 7360 times
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Kext not loading on MacOS 10.14.2

Post by socratis »

I should have noticed it the first time:
Raffa wrote:Untrusted kexts are not allowed
Did you ever run VirtualBox before? Did you go to the Security pane of the System Preferences to allow Oracle as a trusted developer? If not, see the instructions of the first post (the red part) of the thread "Installation fails on 10.13.x, 10.14.x (rc=-1908)".

For future reference, please downsize your attached images by 50% (at least), or simply change the DPI to 72. Not everyone has the luxury of a HiDPI display ;)

And prefer PNGs compared to JPEGs, better compression, no artifacts...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Raffa
Posts: 4
Joined: 10. Dec 2018, 22:36

Re: Kext not loading on MacOS 10.14.2

Post by Raffa »

Hi Socratis,
thanks again for your reply.

I followed your hint from the other thread you mentioned:
The majority of the problems on 10.13.x, 10.14.x is solved by following the Apple Documentation: User-Approved Kernel Extension Loading. In summary:
  • If your installation fails, you might not get prompted to go to the Security settings. No one knows why it does/doesn't work.
  • Reboot your computer, retry the installation.
  • After the installation fails, go to the System Preferences » Security » General, and "Allow Oracle" to install kernel extensions.
  • Retry the installation.
However it didn't work, but it rang in my mind that the Security Settings rules are managed int the database file "/private/var/auth.db". This file is regenerated after reboot and it may be get mysteriously corrupted after the upgrade to 10.14.2.

In the end I fixed the problem deleting the file above then reboot (so the file is re-generated fresh).

Thanks for your support, and for promptly replied on this thread.

NB: It may be useful to add this "trick" somewhere in the FAQ?

Cheers

Raffa
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Kext not loading on MacOS 10.14.2

Post by socratis »

Raffa wrote:NB: It may be useful to add this "trick" somewhere in the FAQ?
I think you mean to delete the '/private/var/auth.db' to fix the permissions, I'd like to see a reference (or two) about how that would work, because AFAIK the allowed kexts/developers are stored in '/var/db/SystemPolicyConfiguration/KextPolicy'. Before adding it as another workaround, I'd like to see some evidence about what it does(n't) do.

I'm glad that you got it going, I'm just not sure what effect did the deletion of '/private/var/auth.db' had.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply