Visit the VirtualBox’s download page and download the latest available version for your macOS. Download the package based on your CPU (Intel or Arm66).
The downloaded file will be stored in the Downloads folder. Click to open the downloaded VirtualBox .dmg file. You will see the following screen. Double-click on “VirtualBox.pkg” to begin the installation process.
An installation wizard will start. Click the Continue button:
You can change the installation location by clicking “Change Install Location”. To go with the default installation location, simply click Install button:
Enter the login credentials to authorize the installation. Then click the “Install Software” button to continue the installation process.
On successful installation, you will see the output as below screenshot: