Virtual Box Brew Install Error

Recently had an issue with installing Virtual Box via Brew, here's the fix…

When running:

1
brew cask install virtualbox

First Homebrew will update, then it'll download VB and go to install. What you might miss is this:

1
2
3
4
5
6
7
8
==> Caveats
To install and/or use virtualbox you may need to enable their kernel extension in

System Preferences → Security & Privacy → General

For more information refer to vendor documentation or the Apple Technical Note:

https://developer.apple.com/library/content/technotes/tn2459/_index.html

So, if you're getting an error like:

1
Error: Failure while executing; `/usr/bin/sudo -E -- env LOGNAME=s10wen USER=s10wen USERNAME=s10wen /usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox/5.2.18,124319/VirtualBox.pkg -target /` exited with 1.

Try going to System Preferences → Security & Privacy → General. Then click 'Allow' for the Oracle and application and try running again.

Hope that helps!

Browse by category: