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 http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

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

$ sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian 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 http://download.virtualbox.org/virtualbox/debian raring contrib" >> /etc/apt/sources.list.d
/virtualbox.list'

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

$ sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian 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 http://download.virtualbox.org/virtualbox/debian 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 http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
$ wget http://download.virtualbox.org/virtualbox/4.3.4/virtualbox-4.3_4.3.4-91027~Ubuntu~raring_i386.deb
$ sudo dpkg -i virtualbox-4.3*.deb

To install VirtualBox 4.3 on Ubuntu 13.10 64bit

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
$ wget http://download.virtualbox.org/virtualbox/4.3.4/virtualbox-4.3_4.3.4-91027~Ubuntu~raring_amd64.deb
$ 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 http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

RHEL 5 and CentOS 5

## RHEL 5 and CentOS 5 ##
# wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# 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 http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

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 http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

## CentOS 5 and RHEL 5 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

# 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 http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -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.

$ http://download.virtualbox.org/virtualbox/4.3.4/Oracle_VM_VirtualBox_Extension_Pack-4.3.4-91027.vbox-extpack

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.

Subscribe
Notify of
guest

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

0 Comments
Inline Feedbacks
View all comments