Can't allow VirtualBox installation in Security & Privacy under macOS

Solution 1:

The solution was posted:

https://forums.virtualbox.org/viewtopic.php?f=8&t=84092&p=448559#p448559

Install Virtual box on mac OS +10.3 with security kernel can failed. After you have this message :

Kernel driver not installed (rc=-1908)

because you have to add editor Oracle in the list of security kext.

If you have chance, you can see the ask for authorisation in Preference -> "Security and Privacy".

But it was not my case. I want to share the solution, because it was a really pain for me: Add Oracle editor in this authorization list.

Restart your mac in Recovery mode (cmd + R)

Then open a Terminal and enter : spctl kext-consent add VB5E2TV963

Restart your mac.

VB5E2TV963 is the code for oracle.

Solution 2:

Apple states in tech note tn2459 that it only prompts once and that the text in the system preferences is only visible for 30 minutes.

I did the following to view the allow button again:

  • close the system preferences
  • install virtual box again (it states that it failed)
  • open system preferences - security: and the allow button appeared again
  • Virtual Box worked for me

Solution 3:

In Terminal run:

sudo kextcache --clear-staging

For me it worked without a reboot, if it didn't work for you try with a reboot.