Virtual box is a great package from Oracle which supports the installation of MS Windows, Linux, BDS, and MS-DOS on the installed VMs.
Before we proceed further, run the system repository update commands first...
sudo add-apt-repository multiverse && sudo apt-get update
Apt Install VirtualBox
Now run following command...
sudo apt install virtualbox
The above command will start the virtual box process in background.
You should see a GUI like this.
Install the VirtualBox Extension Package
You might want to install Virtual Box extension pack, if you want to enable support for following devices...
- USB 2.0 and USB 3.0 devices
- VirtualBox RDP
- disk encryption
- PXE boot for Intel cards
To install virtual box extension package, run following command...
sudo apt install virtualbox-ext-pack
It might prompt you for "Licence Agreement", say "Yes" and proceed forward with installation.