For macOS hosts, ships in a dmg disk image file. Perform the following steps to install on a macOS host:
Double-click the dmg file, to mount the contents.
A window opens, prompting you to double-click the VirtualBox.pkg installer file displayed in that window.
This starts the installer, which enables you to select where to install .
An icon is added to the Applications folder in the Finder.