2.2. Installing on Mac OS X hosts

Oracle VM VirtualBox

2.2. Installing on Mac OS X hosts

2.2.1. Performing the installation

For Mac OS X hosts, VirtualBox ships in a disk image (dmg) file. Perform the following steps:

  1. Double-click on that file to have its contents mounted.

  2. A window will open telling you to double click on the VirtualBox.mpkg installer file displayed in that window.

  3. This will start the installer, which will allow you to select where to install VirtualBox to.

After installation, you can find a VirtualBox icon in the "Applications" folder in the Finder.

2.2.2. Uninstallation

To uninstall VirtualBox, open the disk image (dmg) file again and double-click on the uninstall icon contained therein.

2.2.3. Unattended installation

To perform a non-interactive installation of VirtualBox you can use the command line version of the installer application.

Mount the disk image (dmg) file as described in the normal installation or use the following command line:

hdiutil attach /path/to/VirtualBox-xyz.dmg

Then open a terminal session and execute:

sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /Volumes/Macintosh\ HD