How to Install VirtualBox on Ubuntu 18.04

r00t May 26, 2018

Install VirtualBox on Ubuntu 18.04

In this tutorial we will show you how to install VirtualBox on Ubuntu 18.04. We will also install and configure its prerequisites. Virtualbox is an advanced virtualization platform. It runs on Windows, Linux, Macintosh, and Solaris hosts and supports a great number of guest operating systems. It is available as Open Source Software (GPL2). It’s lightweight and actively developed, so it is acceptable for use in workstations.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 18.04 Bionic Beaver minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install VirtualBox on Ubuntu 18.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing VirtualBox on Ubuntu 18.04.

First, add a VirtualBox repository to your system using the following command:

### Ubuntu 18.04 ###

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

### Ubuntu 17.10 ###

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

### Ubuntu 16.04 ###

echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

After adding the required apt repository on your system, download and import the Oracle public key for apt-secure:

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

Then all left to do is update local package index and install Virtualbox:

sudo apt-get update
sudo apt-get install virtualbox-5.2

You can access Virtualbox using Ubuntu Unity Dash or from the applications menu in other Ubuntu flavors. Open Dash (press SUPER key) and type something like “virtual” or to start VirtualBox execute virtualbox comamnd:

$ virtualbox

Congratulation’s! You have successfully install and configured VirtualBox on your Ubuntu 18.04 LTS server. Thanks for using this tutorial installing VirtualBox virtualization on Ubuntu 18.04 LTS (Bionic Beaver) system.

The Tags:

Leave a Comment

Comments are closed.