Install VirtualBox 6.1 on Ubuntu 22.04|20.04|18.04

Posted on 97 views

How do I Install VirtualBox 6.1 on Ubuntu 22.04|20.04|18.04?. VirtualBox 6.1 has been released with plenty of new features waiting for you to explore.  VirtualBox is a powerful, feature-rich, high-performance and open source x86 and AMD64/Intel64 virtualization solution for both home users and enterprise.

The following major new features were added:

  • Implemented support for exporting a virtual machine to Oracle Cloud Infrastructure
  • User interface: greatly improved HiDPI and scaling support, including better detection and per-machine configuration
  • Major rework of user interface with simpler and more powerful application and virtual machine set-up
  • User interface: a new file manager enabling user to control the guest file system and copy files between host and guest.
  • Graphics: major update of 3D graphics support for Windows guests, and VMSVGA 3D graphics device emulation on Linux and Solaris guests
  • Added support for surround speaker setups (as used by Windows 10 Build 1809)
  • Added utility vboximg-mount on Apple hosts to access the content of guest disks on the host
  • Added support for using Hyper-V as the fallback execution core on Windows host, to avoid the inability to run VMs at the price of reduced performance

Check out the complete list of VirtualBox new features on Changelog for VirtualBox. Without further ado, let’s dive into the installation of VirtualBox 6.1 on Ubuntu 22.04|20.04|18.04

Step 1: Update your system

We always recommend you run latest stable versions of your installed packages. if you don’t want to upgrade any package, just update APT package index and skip the upgrade.

sudo apt update
sudo apt -y upgrade
[ -f /var/run/reboot-required ] && sudo reboot -f

Step 2: Import VirtualBox 6.1 apt repository GPG Keys

Add repository key

#Download
curl https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor > oracle_vbox_2016.gpg
curl https://www.virtualbox.org/download/oracle_vbox.asc | gpg --dearmor > oracle_vbox.gpg
#Install on system
sudo install -o root -g root -m 644 oracle_vbox_2016.gpg /etc/apt/trusted.gpg.d/
sudo install -o root -g root -m 644 oracle_vbox.gpg /etc/apt/trusted.gpg.d/

Step 3: Add the VirtualBox 6.1 Repository on Ubuntu

Once the system is updated and Repository key imported, you can add VirtualBox Repository to it by running the commands below:

Ubuntu 22.04:

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

Ubuntu 20.04/18.04:

echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Step 4: Install VirtualBox & Extension pack

Finally, install VirtualBox on your Ubuntu 22.04|20.04|18.04 system by running the commands:

sudo apt update
sudo apt install linux-headers-$(uname -r) dkms
sudo apt install virtualbox-6.1

Download VirtualBox Extension Pack. You can download it manually  https://www.virtualbox.org/wiki/Downloads

Or with wget command line downloader

cd ~/
wget https://download.virtualbox.org/virtualbox/6.1.34/Oracle_VM_VirtualBox_Extension_Pack-6.1.34.vbox-extpack

Once the file is downloaded, install the extension pack by clicking on the Downloaded file.

install-virtualbox-6.0-ubuntu-18.04-16.04-debian-9-03

Click install and wait for the installation to complete.

install-virtualbox-6.0-ubuntu-18.04-16.04-debian-9-04

Step 5: Launching VirtualBox 6.1 on Ubuntu 22.04|20.04|18.04

Once VirtualBox is installed, you can launch it using the terminal or Desktop applications search.

install-virtualbox-6.0-ubuntu-18.04-16.04-debian-9

From terminal, use:

$ virtualbox

The new user interface for VirtualBox interface looks like below:

install-virtualbox-6.0-ubuntu-18.04-16.04-debian-9-new-ui-1024x497

You should now have the latest version of VirtualBox installed on your Ubuntu22.04|20.04|18.04 Linux system.

coffee

Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.