Install Virtualbox on Centos

I finally found good working guide of package installation of virtualbox 3.1.x on Centos 5.4 . I would like to share this thing with one who is looking for it. Hope will help.

Step 1:
First we have to get Sun’s public rpm key:

[root@~]# wget -q
[root@~]# rpm --import sun_vbox.asc
[root@~]# rm -f sun_vbox.asc

Step 2:
Now we have to enable the VirtualBox OpenSUSE repository on our system:

[root@~]# cd /etc/yum.repos.d/
[root@~]# wget

Step 3:
Install VirtualBox 3.1.x

[root@~]# yum install VirtualBox-3.1

Step 4:
Now you must add the user that will run VirtualBox (admin in this example) to the vboxusers group:

[root@~]# /usr/sbin/usermod -G vboxusers admin

VirtualBox is now installed and ready to be used.

To access virtualbox goto Applications->System Tools->Sun VirtualBox