Blog Post
Ubuntu VirtualBox – A Detailed Installation Guide
Tutorials

Ubuntu VirtualBox – A Detailed Installation Guide

If you are looking for a virtualization app with cross-platform support, you can’t go wrong with VirtualBox. It is the preferred choice of many Linux users because it is both free and open-source.

Let’s take a look at how you can install Ubuntu VirtualBox. You can use either the official repository of your Linux-based operating system or Oracle repositories. We will show you both methods so that you can choose the one that works best for you.

If you want to be among the first ones to receive new updates of your software, you may want to install using the Oracle repositories. The Ubuntu repositories are updated fairly regularly, but as frequently as the Oracle ones.

What Do You Need to Install Ubuntu VirtualBox?

First, you will need an Ubuntu operating system. Keep in mind that this tutorial will work on Elementary OS, Debian, and other OSs based on Ubuntu. There is absolutely no difference in the installation process.

Apart from that, you will need an active internet connection, as well as an account with super-user permissions. Make sure to use either the root account or add “sudo” as a prefix for all the commands listed below.

How to Install VirtualBox from Ubuntu Repositories

We will start with the more straightforward method of installing your VirtualBox from the official repositories of your operating system.

Start by making sure everything is updated:

apt update

Next, execute the command that installs VirtualBox:

apt install virtualbox virtualbox-ext-pack

The system will immediately start the installation process and finish it in a minute or two.

How to Install VirtualBox from Oracle Repositories

As we mentioned, this method is a bit more complicated, but it is still reasonably straightforward. The most significant advantage is that you will probably get new updates more quickly.

The first thing you want to do is to import the Oracle’s repository GPG keys to your Ubuntu. Do this by executing the below lines:

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

Now, let’s add the VirtualBox repository with the following line:

add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"

If everything is okay, the system will now install Ubuntu VirtualBox.

However, you may get an error message in case the system doesn’t find the command. That indicates you do not have “software-properties-common” package installed. That shouldn’t happen, but it is one of the prerequisites for this type of installation, so make sure to add it and then run the command above again.

Once you complete the previous step, you can continue with the final one to complete the installation.

Run the following lines:

apt update
apt install virtualbox-6.0.4

The installation process should complete in a minute or two, and you will be ready to start using the app right away.

How to Install VirtualBox Extension Pack

If you used the Oracle method to install VirtualBox, we would suggest that you also install the extension pack. The pack will add various great features for guest machines, including but not limited to image encryption, RDP support, and virtual USB.

You can use the following command to download the extension pack:

wget https://download.virtualbox.org/virtualbox/6.0.4/Oracle_VM_VirtualBox_Extension_Pack-6.0.4.vbox-extpack

The only thing to pay attention to is that the pack you are downloading matches the version of the software you have installed on your system.

Next, use the below line for pack import:

VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.0.4.vbox-extpack

Please note that you will have to confirm that you agree on T&Cs. The system will confirm that the installation process started and that it was finished.

How to Start Ubuntu VirtualBox

The final step in our tutorial is starting the software. You can do so in two different ways:

  1. Head to Activities, and choose VirtualBox.
  2. You can type “virtualbox” in the command line.

The outcome should be the same regardless of the method. You will notice a welcome screen with a short introduction to the app.

Wrap Up

If everything went as planned, you can now use Ubuntu VirtualBox and enjoy all its benefits. The app is relatively simple to use and incredibly useful. It allows you to graphically manage virtual machines, which many would agree is the easier and better way.

Related posts

Leave a Reply

Required fields are marked *

Copyright © 2022 Blackdown.org. All rights reserved.