VirtualBox is one the powerful open source, cross-platform virtualization software for x86 and AMD64/Intel64 machine. You can install it on any operating system like Windows, Mac, Linux, and Solaris.
VirtualBox is developed by Oracle Corporation and written in C, C++, x86 assembly language. VirtualBox allows you to create and run multiple virtual machines on a single computer.
Here in this tutorial, we see how to install VirtualBox on Ubuntu and add VirtualBox Repository Key to get all future updates available to your systems.
Here is step by step guide to install VirtualBox on Ubuntu 18.04 LTS, 16.04 LTS OS.
Step1 - Prerequsities
In order to perform installation and updates on Ubuntu, you must be logged on the server using root or sudo privileged user. Once you logged in please run below command to system packages to latest.
sudo apt-get update sudo apt-get upgrade
Step2 - Configuring Apt Repository Key
Run below commands to import the Oracle public key on your machine. It allows the Ubuntu system to authenticate and validate the packages that are going to be downloaded from the repository.
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 -
Step3 - Add Oracle VirtualBox PPA
Run below command on the terminal to add Oracle VirtualBox PPA
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian `lsb_release -cs` contrib"
Step4 - Installing Oracle VirtualBox 5.2
Once you have completed the step 2 and 3 now time to install VirtualBox on Ubuntu. Run below command to install it.
sudo apt-get update sudo apt-get install virtualbox-5.2
Step5- Launching VirtualBox on Ubuntu
Once the installation process is completed you can launch VirtualBox by typing below command on terminal.
After reading this article you are able to install and configure VirtualBox 5.2 on Ubuntu server. If you face any problem then please comment I will happy to help you.