romanzolotarev.com: support and follow me on Mastodon and Twitter

Tested on macOS 10.13. GUI version?

Install VirtualBox on macOS

Install Homebrew.

Install virtualbox package:

$ brew cask install virtualbox
==> Caveats
To install and/or use virtualbox you may need to enable their kernel
extension in

  System Preferences -> Security & Privacy -> General
...
==> Downloading https://download.../VirtualBox-5.2.16-123759-OSX.dmg
############################################################### 100.0%
==> Verifying checksum for Cask virtualbox
==> Installing Cask virtualbox
==> Purging files for version 5.2.16,123759 of Cask virtualbox
==> Running installer for virtualbox; your password may be necessary.
installer: Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install was successful.
🍺  virtualbox was successfully installed!
$

Uninstall

$ brew cask uninstall virtualbox
$ brew cask cleanup
$