VirtualBox is a free open-source hypervisor that can be installed on Linux, MacOS, Windows and Solaris systems. A hypervisor is a software used to abstract the resources of a host computer in order to create virtual machines that run different operating systems. In this guide, we are going to see how to install VirtualBox on Linux Mint 20.

Install VirtualBox on Linux Mint 20

To install VirtualBox on Linux Mint 20, first add VirtualBox repository to your system using the below command.

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

Next, import VirtualBox repository public key to your Linux Mint 20 by running the below command.

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

Installing VirtualBox on Linux Mint 20

Having added VirtualBox repository and public key, update apt repository and install VirtualBox.

sudo apt update
sudo apt install -y virtualbox-6.1

To confirm VirtualBox successful installation, check VirtualBox kernel module service status using the below command.

sudo systemctl status vboxdrv

Output

Accessing VirtualBox on Linux Mint 20

You can launch VirtualBox either from graphical interface or from terminal. When launching from graphical mode, go to your applications then search for virtuabox from the search bar.

Click to launch

Installing VirtualBox Extension Pack

What is virtualbox extension pack? It is a binary package intended to add functionality to VirtualBox. It provides support for USB 2.0 devices and USB 3.0 enabling the use of a physical USB on a guest operating system. Other features include the ability to connect your host webcam to a guest machine, the ability to control virtual machines remotely through VirtualBox interface even if a VM network is down and the ability to encrypt data stored in virtual disk.

Install VirtualBox extension pack Linux Mint 20

Visit VirtualBox official download page and grab VirtualBox Extension Pack for all supported platforms. Click to download.

Once you download to your Linux Mint, click on file> preferences> Extension then click on the icon to add new package.

After clicking on Adds new package icon, browse to where the extension package was downloaded and click on it. You will be prompted to install. Click on install.

Agree to licence terms. VirtualBox extension pack will begin installing

Once installation is complete, click ok. You have successfully installed VirtualBox extension pack.

How to Install a Virtual Machine on VirtualBox

To install a VM on VirtualBox, you need to have downloaded the operating system that you need. For my demonstration, I have downloaded Elementary OS which I am going to use to create a virtual machine.

Installing a VM on VirtualBox

Launch VirtualBox, click New. In the dialogue box, specify name, machine folder, type and version, Check below the details for Elementary OS.

Click Next to specify memory limit for your guest OS.

In the next page, choose create a virtual hard disk now then click create

Choose harddisk file type and click next. In the next page, choose dynamically allocated for storage on physical disk and click Next

Now specify the file location and size for your quest OS and click create.

Once done, you will see your added guest OS on the left pane of virtual box. Select it then click settings. Now upload the downloaded Elementary OS to use it to create the virtual machine. Click on storage. Under Controller:IDE, click on Empty and on the far end, click on the dropdown to upload your image. Then click Ok

Now, we need to install Elementary OS for the guest VM. After uploading the image, click on start. Follow through the installation wizard to the end. Once done, remove the installation disk and reboot your VM. You are good to start using your Elementary OS virtual machine.

Enjoy! Below are more of your day-to-day Linux guides

LEAVE A REPLY

Please enter your comment!
Please enter your name here

12 − 7 =