How To Install VirtualBox on Ubuntu 18.04 / Ubuntu 16.04 / 17.10

2

VirtualBox is an open-source hypervisor software; it allows you to create and run guest operating systems (“virtual machines”) such as Linux and Windows on top of the existing operating system (host). VirtualBox may be installed on host operating systems, including Linux, Windows, Solaris, OS X, and OpenSolaris.

VirtualBox is released under GPL v2 and Oracle VM VirtualBox extension pack is released under PUEL (Personal Use and Evaluation License).

You can install VirtualBox either using precompiled binaries or source code. This tutorial focused on installing VirtualBox using precompiled binaries (.deb).

Starting from the version 2.0, VirtualBox supports 32 and 64bit host and guest operating systems (To run 64bit guests, make sure your processor supports hardware virtualization and, the host operating system must be 64bit as well).

From VirtualBox 5.1, installers no longer rely on DKMS for module rebuilding.

Install VirtualBox on Ubuntu 18.04

Kickstart a terminal to begin (Ctrl + Alt + T).

First, Import the Public Key of the Oracle VirtualBox repository to your system using the following command.

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

Add a VirtualBox repository on to your system.

### 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

Update the Ubuntu package database.

sudo apt-get update

Install the VirtualBox 5.2 using the apt command.

sudo apt-get install virtualbox-5.2

Access VirtualBox

Start the VirtualBox

Command Line Mode

virtualbox

OR

Graphical Mode

Ubuntu 18:04: Activities >> Search for Oracle VM VirtualBox.

Install VirtualBox on Ubuntu 18.04 - Start VirtualBox
Install VirtualBox on Ubuntu 18.04 – Start VirtualBox

Ubuntu 16.04: Dash >> Search for Oracle VM VirtualBox.

Install VirtualBox on Ubuntu 16.04 – Start VirtualBox
Install VirtualBox on Ubuntu 16.04 – Start VirtualBox

Why are you waiting for? just go and create virtual machines.

VirtualBox Running VMs on Ubuntu 18.04:

Install VirtualBox on Ubuntu 18.04 - VirtualBox Running Windows 10 on Ubuntu 18.04
Install VirtualBox on Ubuntu 18.04 – VirtualBox Running Windows 10 on Ubuntu 18.04

VirtualBox Running VMs on Ubuntu 16.04:

Install VirtualBox on Ubuntu 16.04 - VirtualBox Running Windows 24 on Ubuntu 16.04
Install VirtualBox on Ubuntu 16.04 – VirtualBox Running Windows 24 on Ubuntu 16.04

That’s All.

Further Reading

You might also like

How To Install VirtualBox on Ubuntu 18.04 / Ubuntu 16.04 / 17.10

2