The new beta of Mac OS X Mojave is mostly stable and so far it has been a good experience… Apart from the recent issues that i have faced with homebrew legacy libraries and this recent problem with Virtualbox, which loads a Kernel Extension that has not yet been approved by Apple.

Here is a temporary solution to get you up and running with the latest Mac OS beta.

Go here and download the current Virtualbox Testing version. I got Virtualbox 5.2.15 at this time.

Credit @socratis

## Disable System Integrity Protection (SIP)

Yes, yes, I also hate this, but has to be done until Apple refreshes the list of allowed Kernel Extensions to allow VBoxDrv.kext to load properly in Mojave.

1. Reboot your Mac and hold Command + R (⌘ + R) before it boots.
2. Keep holding it until you see the progress bar
3. Wait for it to finish
4. At the top menu, select Utilities -> Terminal
5. Enter csrutil disable
6. Press Enter
7. Type reboot

After this is solved, do the same steps to re-enable SIP, but type csrutil enable at Step 5.

## (Try to) Install Virtualbox

Run the installer.

You will get an error message like this:

No worries, close it and continue.

## Modify Kexts, rebuild Kernel Extension Cache

Credit @IPV6Freely

## Starting Virtualbox

Using the GUI will give you an error:

However, you should be able to start VirtualBox using the Terminal:

## Fix plugin installations if you are using Vagrant and they fail to install

Before I had this, which worked before Mojave and in Linux too:

This caused issues:

The solution was to reformulate the plugin installation code in the Vagrantfile like this:

Credit to @nuxy for this fix