How to install VirtualBox virtual machine on Ubuntu, Fedora

I will show you how to install VirtualBox virtual machines software on Ubuntu 12.04/12.10/13.04/13.10, Linux Mint 15/16, Fedora 18/19, CentOS/Red Hat (RHEL) 6.4/5.10 in this article. VirtualBox is a free open source cross platform Virtualization Software which runs on Linux, Mac, Solaris, and Windows hosts. VirtualBox creates virtual machines and supports many guest Operating Systems. VirtualBox is easy to install and use, it’s a very popular and powerful x86 and Intel64/AMD64 processor virtualization software. VirtualBox is developed by Oracle under General Public License (GPL) that allows you to modify and distribute the source code freely. VirtualBox’s “Guest Additions” feature, available for Linux, Mac, Solaris and Windows virtual machines let you shares folders, clipboard, copying and pasting, drag and drop files between host and guest machines.

VirtualBox also let you share USB devices from host machine go guest virtual machine. You can easily adjust guest virtual machine hardware settings like processor cores, memory, hard disk space, 3D acceleration supports and more.

To install Virtualbox in Ubuntu 13.10 / 13.04 / 12.10 / 12.04 using PPA

Install the dependency packages

$ sudo apt-get install dkms

Add PPA and Oracle public key

$ wget -q -O- | sudo apt-key add -

Add VirtualBox repo on Ubuntu 13.10 Saucy Salamander and Linux Mint 16 Petra

$ sudo sh -c 'echo "deb saucy contrib" >> /etc/apt/sources.list.d/virtualbox.list'

Add VirtualBox repo on Ubuntu 13.04 Raring Ringtai and Linux Mint 15 Olivia

$ sudo sh -c 'echo "deb raring contrib" >> /etc/apt/sources.list.d

Add VirtualBox repo on Ubuntu 12.10 Quantal Quetzal and Linux Mint 14 Nadia

$ sudo sh -c 'echo "deb quantal contrib" >> /etc/apt/sources.list.d/virtualbox.list'

Add VirtualBox repo on Ubuntu 12.04 Precise Pangolin and Linux Mint 13 Maya

$ sudo sh -c 'echo "deb precise contrib" >> /etc/apt/sources.list.d/virtualbox.list'

Install VirtualBox on Ubuntu and Linux Mint

$ sudo apt-get update
$ sudo apt-get install virtualbox-4.3

To install VirtualBox 4.3 on Ubuntu 13.10 32bit

$ wget -q -O- | sudo apt-key add -
$ wget
$ sudo dpkg -i virtualbox-4.3*.deb

To install VirtualBox 4.3 on Ubuntu 13.10 64bit

wget -q -O- | sudo apt-key add -
$ wget
$ sudo dpkg -i virtualbox-4.3*.deb

Installing VirtualBox 4.3 in RHEL/CentOS and Fedora

If you have an older version of VirtualBox, you need to remove it before install the newer version
# yum remove VirtualBox*

Install/add VirtualBox’s repository

Fedora 19/18/17/16/15/14/13/12

## Fedora 19/18/17/16/15/14/13/12 users ##
# cd /etc/yum.repos.d/
# wget

RHEL 5 and CentOS 5

## RHEL 5 and CentOS 5 ##
# wget
# rpm -Uvh epel-release-5-4.noarch.rpm

RHEL 6.4/6.3/6.2/6.1/6.0/5.9/5.8/5.6 and CentOS 6.4/6.3/6.2/6.1/6.0/5.9/5.8/5.6

## RHEL 6.4/6.3/6.2/6.1/6.0/5.9/5.8/5.6 and CentOS 6.4/6.3/6.2/6.1/6.0/5.9/5.8/5.6 ##
# cd /etc/yum.repos.d/
# wget

Update your system for latest packages, and Install dependency packages for VirtualBox

CentOS 6/5 and Red Hat (RHEL) 6/5 will need to install EPEL repository

## CentOS 6 and RHEL 6 ##
rpm -Uvh

## CentOS 5 and RHEL 5 ##
rpm -Uvh

# yum update
# yum install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

Install VirtualBox 4.3 on Fedora/redhat/centos

# wget -q -O- | rpm --import -
# yum install VirtualBox-4.3

Add VirtualBox User to vboxusers Group

Remember to replace *username* to your system username which you want to run VirtualBox in.

# usermod -a -G vboxusers username

To start VirtualBox

$ VirtualBox

Install VirtualBox Extension Pack

VirtualBox Extension Pack enables you to use more additional advanced features such as VirtualBox Remote Desktop Protocol (RDP), PXE boot ROM for Intel cards in virtual machine, USB 2.0 Host Controller, share host webcam.


After you download the VirtualBox Extension Pack, and after you installed VirtualBox 4.3. Open The VirtualBox Extension Pack you just downloaded with VirtualBox main program, then click on *preferences*, on the left side click *Extensions*. You will se the new windows, on the right side, click on the plus icon, browse for the vbox-extpack to install it.

Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments