Click On Tyler Support


Contact Us

Support Home » VirtualHostX » How To Install VirtualBox on Recent Versions of macOS

How To Install VirtualBox on Recent Versions of macOS

VirtualBox is 3rd party, open-source software developed by Oracle that allows you to run "virtual machines" on your Mac. A virtual machine is completely independent computer that runs inside your Mac. VirtualHostX uses VirtualBox to install and run an Ubuntu Linux operating system on your Mac. Ubuntu is a popular operating system used to power millions of web servers around the world. This allows us to run a web server on your Mac that works exactly like the "real" web server you eventually upload your websites to.

In order for VirtualBox to work, their installation program needs to install something called a "kernel extension" (or "kext") on your Mac. This allows the app to hook into the lowest levels of macOS and do the magic necessary to run virtual machines on your system.

Because kernel extensions have such deep access into your Mac's system, you have to make sure you're only installing them from trustworthy developers. To help with this, in recent verisons of macOS (beginning with High Sierra), Apple requires you to explicitly approve new kexts before they can run. Unfortuantely, like much of Apple's recent security theater improvements, the process to grant your approval is not straight forward.

When you run the VirtualBox installer, macOS is supposed to show a warning message as shown here:

VirtualBox Kernel Extension Blocked by macOS

Unfortuantely, often times that message is never displayed or you might click "OK" without noticing it. In any case, you'll end up with the following installation failed window:

After that happens, you'll need to follow these steps to grant your approval:

  1. Open "System Preferences" from your Mac's  menu.
  2. Click on "Security & Privacy".
  3. Click on the "General" tab.
  4. Click on the "Allow" button as shown in the screenshot below.

Allow VirtualBox kernel extension in System Preferences

After you approve the kernel extension, you may need to re-run the VirtualBox installation program again. You can do this by choosing "Install VirtualBox..." from the VirtualHostX "Help" menu.

Making matters worse, you may need to also restart your Mac after this whole process is complete to make sure VirtualBox's new kernel extension is properly installed.

I truly wish this process were simpler and more straight-forward. While I agree with Apple's renewed focus on securing the Mac for novice users, for customers like yourself who have a better idea about what they're doing, it would be wonderful if there were an "expert mode" setting that allowed you to tell Apple to allow software such as this. But until this happens, you'll need to follow the instructions above. I encourage you to provide your own feedback to Apple directly.

Your vote was sent, thanks!
Was this article helpful?







Search

Contact Us