How to Install VirtualBox 4.1 on CentOS 5 / RHEL 5

Oracle VirtualBox is open source virtualization product for enterprise as well as home purpose, It is x86 fully virtualizer for general purpose desktops. It is released under GNU GPL License. You can download it from official website.



It supports multiple guest operating system:

  • Windows NT
  • Windows 2000
  • WIndows XP (32 bit/64 bit)
  • Windows Vista (32 bit/64 bit)
  • Windows 7 (32 bit/64 bit)
  • Windows 2003 Server (32 bit/64 bit)
  • Windows 2008 Server (32 bit/64 bit)
  • Ubuntu 5.10 / 6.06 Desktop / 7.04 – 11.04
  • Debian
  • openSUSE
  • Mandriva
  • Fedora
  • RHEL/CentOS
  • Mac OS X
  • Solaris
  • FreeBSD
  • OpenBSD

This tutorial shows how to install VirtualBox 4.1.(Latest VirtualBox 4.1.8) on CentOS 5 / RHEL 5 via yum repository.

Step 1: Open terminal ( Accessories ——> System Tools ——> Terminal).

Step 2: Download Oracle public key.

[[email protected]~/# wget

Step 3: Import Oracle public key.

[[email protected]~/# rpm –import oracle_vbox.asc

Step 4: Download the CentOS 5 / RHEL 5 repo file for VirtualBox and Move it to /etc/yum.repos.d directory.

[[email protected]~/]# wget
[[email protected]~/]# mv virtualbox.repo /etc/yum.repos.d/

Step 5: Update the repository.

[[email protected]~/]# yum update

Step 6: Install VirtualBox 4.1 (This for VirtualBox 4.1.x version) and dkms.

[[email protected]~/]# yum install VirtualBox-4.1 dkms

Note: dkms package is to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next kernel upgrade

Step 7: Add your user name in to vboxuser group. Like below.

[[email protected]~/]# groupadd vboxusers
[[email protected]~/]# usermod -G vboxusers geeskite

Step 8: Start VirtualBox using following command.

[[email protected]~/]# virtualbox

Now you can start adding VM’s on VirtualBox.


Share This Post