Install VirtualBox in Ubuntu- VirtualBox (Oracle VM VirtualBox) is a virtualization software for x86 & AMD64 / Intel-based system from the Oracle. Virtualbox allows users to manage the multiple operating systems at the same time. We will say VirtualBox is very important and cross-platform virtualization software. Oracle VirtualBox 4.3.28 has been released on May 13th, 2015. Oracle VirtualBox 4.3.28 hold a maintenance release of VirtualBox 4.3 that improves stability and fixes the regression. view the ChangeLog for further details.
On this article will provide guidance on how to install VirtualBox in Ubuntu 14.04, 15.04, 12.04 LTS, 14.04 LTS and Debian 7/6 Linux. Before the start, installation lets consider a few virtualization terminologies.
- Host Operating System (Host OS) – It’s an operating system of the physical machine on that VirtualBox is installed or shall be installed. Host OS for the virtual box package is Windows, UNIX, and Mac OS X.
- Guest operating system (Guest OS) – It’s an operating system which is running inside the virtual machine.
- Virtual machine (VM) – That is the special environment that VirtualBox creates for our Guest OS whereas it’s running. In other words, we will say that we run guest OS in a VM.
Install VirtualBox in Ubuntu from the Command Line:
Step 1: Setup Apt Repository
Firstly edit /etc/apt/sources.list file.
How do I add a line to my /etc/apt/sources.list?
Make a backup copy of your current
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
new line of text to current
CLI (command-line interface)
echo "new line of text" | sudo tee -a /etc/apt/sources.list
GUI (graphical user interface) with the text editor
sudo gedit /etc/apt/sources.list
- Now you see that at the end of the current
sources.listtext file in Text Editor. The re’s additional on
new line of textthe new line now change this line by pasting the below repository. For example, if you have Ubuntu 14.04 LTS version installed on your PC then use this repository ‘deb https://download.virtualbox.org/virtualbox/debian trusty contrib’
For Ubuntu 15.04 (“Vivid”)
deb https://download.virtualbox.org/virtualbox/debian vivid contrib
For Ubuntu 14.10 (“Utag Unicorn”)
deb https://download.virtualbox.org/virtualbox/debian utag contrib
For Ubuntu 14.04 LTS (“Trusty Tahr”)
deb https://download.virtualbox.org/virtualbox/debian trusty contrib
For Ubuntu 12.04 LTS (“Precise Pangolin”)
deb https://download.virtualbox.org/virtualbox/debian precise contrib
For Debian 7.0 (“Wheezy”)
deb https://download.virtualbox.org/virtualbox/debian wheezy contrib
For Debian 6.0 (“Squeeze”)
deb https://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
- Now, Save and close
Don’t forget to update in order to use a new repository
sudo apt-get update
Step 2: Setup Oracle public key
After adding required the apt repository in your system, download and import the Oracle public key for apt-secure using following commands.
$ wget https://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
$ sudo apt-key add oracle_vbox.asc
Step 3: Install Oracle VirtualBox
After finishing the above steps, let’s install VirtualBox using the following commands. In case you have already installed an older version of VirtualBox, Below command instructions will update it automatically.
$ sudo apt-get update
$ sudo apt-get install virtualbox-4.3
Step 4: Now Start VirtualBox
We can use dashboard shortcuts to start the VirtualBox
(Dash Home —> Search –> Virtualbox).
or, simply run following command from a terminal.
I hope you like the article ‘How to Install VirtualBox in Ubuntu’. And if you like it then share it with your friends, family or loved ones. Stay tuned for more updates.