Developed and maintained by Oracle, VirtualBox is a multi-platform, open-source hypervisor that enables us to run multiple virtual machines as a guest operating system on a single host. VirtualBox is more often used for testing and development purposes.

VirtualBox can be installed on Linux Mint 20 from the standard repositories and Oracle’s official VirtualBox repository.

Installing VirtualBox on Linux Mint 20 from the standard repositories

As VirtualBox is a popular and open-source tool, it is included in the Linux Mint 20 standard repositories. Fire up the terminal and update the apt cache as it is recommended to do so before installing any new application:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image1-29.png" data-lazy- height="313" src="data:image/svg xml,” width=”812″>

Next, install the VirtualBox and the extension pack with the command:

$ sudo apt install virtualbox virtualbox-ext-pack

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image3-26.png" data-lazy- height="299" src="data:image/svg xml,” width=”812″>

Press ‘y’ to continue installing VirtualBox.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image2-28.png" data-lazy- height="119" src="data:image/svg xml,” width=”825″>

While installing VirtualBox, you will see the VirtualBox Personal Use and Evaluation License (PEUL). Read the license agreement carefully, choose ‘OK’ and press the enter key.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image5-22.png" data-lazy- height="463" src="data:image/svg xml,” width=”803″>

If you accept the VirtualBox PUEL license terms, select ‘Yes’ and press enter key.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image4-24.png" data-lazy- height="357" src="data:image/svg xml,” width=”802″>

The VirtualBox will be successfully installed on your Linux Mint 20 system.

To verify the installation, click on Application Menu and search for VirtualBox. You will find the VirtualBox application in Application Menu.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image7-19.png" data-lazy- height="250" src="data:image/svg xml,” width=”611″>

Installing VirtualBox on Linux Mint 20 from the Oracle repositories

As of writing this post, the newest version of VirtualBox is 6.1.

Complete the below-given steps to install VirtualBox on Linux Mint 20 from the Oracle repositories:

Step 1: Import VirtualBox key

Fire up the terminal and import the Oracle VirtualBox’s public key on your Linux Mint 20 system using the command:

$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image6-20.png" data-lazy- height="130" src="data:image/svg xml,” width=”842″>

The above-given command requires the sudo privileges, enter the sudo password, and the key will be imported successfully. The ‘OK’ confirms that the key is imported.

Step 2: Add VirtualBox repository

Next, add the VirtualBox repository to your Linux Mint 20 system:

$ echo “deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian focal contrib” | sudo tee /etc/apt/sources.list.d/virtualbox.list

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image9-15.png" data-lazy- height="127" src="data:image/svg xml,” width=”865″>

Step 3: Install VirtualBox

First, update the apt listing with the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image8-17.png" data-lazy- height="435" src="data:image/svg xml,” width=”809″>

Now, install the VirtualBox with the command:

$ sudo apt install virtualbox-6.1

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image12-9.png" data-lazy- height="241" src="data:image/svg xml,” width=”807″>

Press ‘y’ to continue installing VirtualBox.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image10-15.png" data-lazy- height="101" src="data:image/svg xml,” width=”811″>

The VirtualBox will be installed on your system.

Once the VirtualBox is installed, verify the VirtualBox installation with the command:

$ sudo systemctl status vboxdrv

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image11-11.png" data-lazy- height="354" src="data:image/svg xml,” width=”824″>

The above-given command checks the VirtualBox Linux Kernel module service status. The output shows that the VirtualBox is successfully installed, and the service is active.

Getting started with VirtualBox

Click on the Application Menu, and search for the VirtualBox.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image7-20.png" data-lazy- height="250" src="data:image/svg xml,” width=”611″>

VirtualBox is ready for use.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/image13-8.png" data-lazy- height="338" src="data:image/svg xml,” width=”1366″>

Conclusion

This post has learned about installing VirtualBox on Linux Mint 20 from the Linux Mint 20 standard repositories and Oracle’s official repository.  VirtualBox is a hypervisor that allows us to run multiple virtual machines on a single host machine simultaneously. It is designed and maintained by Oracle.

About the author

<img alt="Kamran Sattar Awaisi" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/52E439DD556343299E3D211D5E577D28-150×150.jpg60396d6a77c79.jpg" height="112" src="data:image/svg xml,” width=”112″>

Kamran Sattar Awaisi

I am a software engineer and a research scholar. I like to write article and make tutorial on various IT topics including Python, Cloud Computing, Fog Computing and Deep Learning. I love to use Linux based operating systems.