In this article, we will have explained the necessary steps to install and configure VirtualBox on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
VirtualBox is a free and open-source hypervisor software that allows you to create and run virtual machines of Linux, Windows, Solaris, BSD operating system. It can ben be installed on Linux, Windows, Solaris, OS X, and OpenSolaris.
- Operating System with Ubuntu 20.04
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with APT Commands
Install VirtualBox on Ubuntu
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install VirtualBox on Ubuntu.
Run the commands below to add the repository key to your system:
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Once adding the repository key above, run the commands below to add VirtualBox package repository:
sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
Then, run the following command to install the VirtualBox package:
sudo apt update sudo apt install virtualbox-6.1
After the installation, check the VirtualBox Linux kernel module service status:
sudo systemctl status vboxdrv
Step 4. Accessing VirtualBox.
Now that VirtualBox is installed on your Ubuntu system, you can start it either from the command line by typing
virtualbox or by clicking on the VirtualBox icon (Activities -> Oracle VM VirtualBox).
That’s all you need to do to install VirtualBox on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. Don’t forget to share your valuable queries/suggestions in the below comment box & also drop your worthwhile feedback.