macOS: install Oracle VirtualBox on macOS 10.13

Apple continuously enhanced the security of recent macOS versions and with High Sierra 10.13 it introduced a new feature that requires user approval before loading newly-installed third-party kernel extensions (KEXTs)

There are lots of complaints from users not being able to install applications with KEXT, like Oracle VirtualBox. The mechanism is relatively complex, but basically each developer is required to get a developer ID from Apple, and users can approve that software signed by that developer is allowed to run.


Attempts to install software with third-party kernel exptensions fail during the final install phase, with a message like:


Apple added a new setting in System Preferences > Security & Privacy to allow software to be installed:


Unfortunatelly, on High Sierra 10.13, this mechanism some times does not function as expected.


The internet is full of unusual suggestion how to solve this, but Apple already addressed this problem in Technical Note TN2459: User-Approved Kernel Extension Loading.

If the GUI mechanism does not work, the solution is to manually add the developer ID to the system.

For Oracle VirtualBox, the commands is:

$ spctl kext-consent add VB5E2TV963

The only complication is that this command is refused, even with sudo, from the usual environment, and needs to be executed in the Recovery OS.

To enter the Recovery OS mode, hold down Command-R or one of the other macOS Recovery key combinations on your keyboard immediately after pressing the power button to turn on your Mac. Ignore the suggestions to reinstall macOS; instead, go to the Utilities menu, enter the Terminal and enter the above command.

To check if the ID was added, use:

$ spctl kext-consent list
Allowed Team Identifiers:

Once the ID is added, reboot in the usual environment, reinstall Oracle Virtualbox and proceed as usual.

How to get the developper ID?

For those curious where the developer ID came from, click the small lock in the upper right of the install window:

Screen Shot 2018-01-27 at 15.23.50



About Liviu Ionescu (ilg)
Hi! My name is Liviu Ionescu (ilg, ilegeul or eunete for colleagues and friends) and I’m a senior IT engineer. Or should I say a real programmer?

7 Responses to macOS: install Oracle VirtualBox on macOS 10.13

  1. hello Liviu,

    i am the user with above mentioned problem.
    today i tried the procedure which you are describing i your blog.
    but i am unsuccessful.

    here is what terminal say:

    -bash-3.2# spctl kext-consent add VB5E2TV963
    -bash: spctl: command not found

    am i doing something wrong_?

    thank you.

    • Liviu Ionescu (ilg) says:

      $ which spctl

      • still no success

        terminal says:

        -bash-3.2# /usr/sbin/spctl kext-consent add VB5E2TV963
        -bash: /usr/sbin/spctl: No such file or directory

      • Liviu Ionescu (ilg) says:

        I don’t know, for one reason or another, your system is incomplete.

      • thank you anyway

  2. That worked for me. Thanks Livlu. I was completely stuck even after uninstalling an reinstalling VirtualBox.

  3. Liviu Ionescu (ilg) says:

    I recently installed VB 6.x on a macOS 10.13.6 and the Allow button in the System Preferences was functional without having to resort to the Recovery mode. Apparently Apple fixed the system.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: