1. Download Virtaulbox software by running the below command.
wget http://download.virtualbox.org/virtualbox/4.2.16/VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm
[root@appsR12 ~]# wget http://download.virtualbox.org/virtualbox/4.2.16/VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm --2014-07-07 09:22:24-- http://download.virtualbox.org/virtualbox/4.2.16/VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm Resolving download.virtualbox.org... 137.254.120.26 Connecting to download.virtualbox.org|137.254.120.26|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://dlc.sun.com.edgesuite.net/virtualbox/4.2.16/VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm [following] --2014-07-07 09:22:25-- http://dlc.sun.com.edgesuite.net/virtualbox/4.2.16/VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm Resolving dlc.sun.com.edgesuite.net... 122.165.249.8, 122.165.249.40 Connecting to dlc.sun.com.edgesuite.net|122.165.249.8|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 87237668 (83M) [application/x-redhat-package-manager] Saving to: `VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm.1' 100% [ ] 756,155 151K/s eta 9m 18s [root@appsR12 ~]#2. Now install it.
[root@appsR12 ~]# rpm -iUvH VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm warning: VirtualBox-4.2-4.2.16_86992_el5-1.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID 98ab5139 Preparing packages for installation... VirtualBox-4.2-4.2.16_86992_el5-1 Creating group 'vboxusers'. VM users must be member of that group! No precompiled module for this kernel found -- trying to build one. Messages emitted during module compilation will be logged to /var/log/vbox-install.log. Stopping VirtualBox kernel modules [ OK ] Recompiling VirtualBox kernel modules [ OK ] Starting VirtualBox kernel modules [ OK ]