How to Install VirtualBox on Ubuntu 16.04

r00t January 17, 2018

Install VirtualBox on Ubuntu 16.04

In this tutorial we will show you how to install VirtualBox on Ubuntu 16.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 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install VirtualBox on Ubuntu 16.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.

First, add a VirtualBox repository, edit /etc/apt/sources.list file:

### For Ubuntu 17.10 ("Artful") ###
deb http://download.virtualbox.org/virtualbox/debian zesty contrib

### For Ubuntu 16.04 ("Xenial") ###
deb http://download.virtualbox.org/virtualbox/debian xenial contrib

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 -
wget -q https://www.virtualbox.org/download/oracle_vbox.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”

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

The Tags:

Leave a Comment

Comments are closed.