How to Install VirtualBox 4.1 on CentOS 5 / RHEL 5

0

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.

[root@itzgeek~/# wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

Step 3: Import Oracle public key.

[root@itzgeek~/# 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.

[root@itzgeek~/]# wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
[root@itzgeek~/]# mv virtualbox.repo /etc/yum.repos.d/

Step 5: Update the repository.

[root@itzgeek~/]# yum update

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

[root@itzgeek~/]# 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.

[root@itzgeek~/]# groupadd vboxusers
[root@itzgeek~/]# usermod -G vboxusers geeskite

Step 8: Start VirtualBox using following command.

[root@itzgeek~/]# virtualbox

Now you can start adding VM’s on VirtualBox.

You might also like