Howto install VirtualBox on Centos 6.4 Redhat RHEL 6.4

Howto install Virtualbox on Centos 6.4 Redhat RHEL 6.4

virtutalbox

Step 1: Install epel repository on Centos 6.4

http://ithelpblog.com/os/linux/redhat/centos-redhat/how-to-install-epel-repository-on-centos-6-4-or-redhat-6-4-rhel/

Step 2: Install virtualbox Repository on Centos 6.4

[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
[root@localhost yum.repos.d]# yum update

Step 3: Install dependencies and libraries for Virualbox

[root@localhost yum.repos.d]# yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.nus.edu.sg
* epel: mirror01.idc.hinet.net
* extras: mirrors.hostemo.com
* updates: mirrors.hostemo.com
Setting up Install Process
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Package gcc-4.4.7-3.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package libgomp-4.4.7-3.el6.x86_64 already installed and latest version
Package glibc-headers-2.12-1.107.el6.x86_64 already installed and latest version
Package glibc-devel-2.12-1.107.el6.x86_64 already installed and latest version
Resolving Dependencies
–> Running transaction check
—> Package dkms.noarch 0:2.2.0.3-2.el6 will be installed
—> Package kernel-devel.x86_64 0:2.6.32-358.6.1.el6 will be installed
—> Package kernel-headers.x86_64 0:2.6.32-358.el6 will be updated
—> Package kernel-headers.x86_64 0:2.6.32-358.6.1.el6 will be an update
–> Finished Dependency ResolutionDependencies Resolved===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
dkms noarch 2.2.0.3-2.el6 epel 105 k
kernel-devel x86_64 2.6.32-358.6.1.el6 updates 8.2 M
Updating:
kernel-headers x86_64 2.6.32-358.6.1.el6 updates 2.3 MTransaction Summary
===================================================================================================
Install 2 Package(s)
Upgrade 1 Package(s)Total download size: 11 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): dkms-2.2.0.3-2.el6.noarch.rpm | 105 kB 00:00
(2/3): kernel-devel-2.6.32-358.6.1.el6.x86_64.rpm | 8.2 MB 00:58
(3/3): kernel-headers-2.6.32-358.6.1.el6.x86_64.rpm | 2.3 MB 00:20
—————————————————————————————————————————————————————————————————–
Total 133 kB/s | 11 MB 01:21
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <epel@fedoraproject.org>
Package: epel-release-6-8.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel-devel-2.6.32-358.6.1.el6.x86_64 1/4
Updating : kernel-headers-2.6.32-358.6.1.el6.x86_64 2/4
Installing : dkms-2.2.0.3-2.el6.noarch 3/4
Cleanup : kernel-headers-2.6.32-358.el6.x86_64 4/4
Verifying : dkms-2.2.0.3-2.el6.noarch 1/4
Verifying : kernel-headers-2.6.32-358.6.1.el6.x86_64 2/4
Verifying : kernel-devel-2.6.32-358.6.1.el6.x86_64 3/4
Verifying : kernel-headers-2.6.32-358.el6.x86_64 4/4Installed:
dkms.noarch 0:2.2.0.3-2.el6 kernel-devel.x86_64 0:2.6.32-358.6.1.el6

Updated:
kernel-headers.x86_64 0:2.6.32-358.6.1.el6

Complete!
[root@localhost yum.repos.d]#

Step 4: Install Virualbox 4.2 by yum command

[root@localhost yum.repos.d]# yum install VirtualBox-4.2
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.nus.edu.sg
* epel: mirror01.idc.hinet.net
* extras: mirrors.hostemo.com
* updates: mirrors.hostemo.com
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package VirtualBox-4.2.x86_64 0:4.2.12_84980_el6-1 will be installed
–> Processing Dependency: libQtNetwork.so.4()(64bit) for package: VirtualBox-4.2-4.2.12_84980_el6-1.x86_64
–> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: VirtualBox-4.2-4.2.12_84980_el6-1.x86_64
–> Processing Dependency: libQtOpenGL.so.4()(64bit) for package: VirtualBox-4.2-4.2.12_84980_el6-1.x86_64
–> Processing Dependency: libQtGui.so.4()(64bit) for package: VirtualBox-4.2-4.2.12_84980_el6-1.x86_64
–> Processing Dependency: libQtCore.so.4()(64bit) for package: VirtualBox-4.2-4.2.12_84980_el6-1.x86_64
–> Running transaction check
—> Package SDL.x86_64 0:1.2.14-3.el6 will be installed
—> Package qt.x86_64 1:4.6.2-26.el6_4 will be installed
—> Package qt-x11.x86_64 1:4.6.2-26.el6_4 will be installed
–> Processing Dependency: qt-sqlite(x86-64) = 1:4.6.2-26.el6_4 for package: 1:qt-x11-4.6.2-26.el6_4.x86_64
–> Processing Dependency: phonon-backend(x86-64) >= 4.3 for package: 1:qt-x11-4.6.2-26.el6_4.x86_64
–> Processing Dependency: libmng.so.1()(64bit) for package: 1:qt-x11-4.6.2-26.el6_4.x86_64
–> Running transaction check
—> Package libmng.x86_64 0:1.0.10-4.1.el6 will be installed
—> Package phonon-backend-gstreamer.x86_64 1:4.6.2-26.el6_4 will be installed
—> Package qt-sqlite.x86_64 1:4.6.2-26.el6_4 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
VirtualBox-4.2 x86_64 4.2.12_84980_el6-1 virtualbox 69 M
Installing for dependencies:
SDL x86_64 1.2.14-3.el6 base 193 k
libmng x86_64 1.0.10-4.1.el6 base 165 k
phonon-backend-gstreamer x86_64 1:4.6.2-26.el6_4 updates 126 k
qt x86_64 1:4.6.2-26.el6_4 updates 3.9 M
qt-sqlite x86_64 1:4.6.2-26.el6_4 updates 51 k
qt-x11 x86_64 1:4.6.2-26.el6_4 updates 12 MTransaction Summary
=====================================================================================================================================================================================================
Install 7 Package(s)Total download size: 86 M
Installed size: 186 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): SDL-1.2.14-3.el6.x86_64.rpm | 193 kB 00:02
(2/7): VirtualBox-4.2-4.2.12_84980_el6-1.x86_64.rpm | 69 MB 11:25
(3/7): libmng-1.0.10-4.1.el6.x86_64.rpm | 165 kB 00:02
(4/7): phonon-backend-gstreamer-4.6.2-26.el6_4.x86_64.rpm | 126 kB 00:00
(5/7): qt-4.6.2-26.el6_4.x86_64.rpm | 3.9 MB 00:26
(6/7): qt-sqlite-4.6.2-26.el6_4.x86_64.rpm | 51 kB 00:00
(7/7): qt-x11-4.6.2-26.el6_4.x86_64.rpm | 12 MB 01:29
—————————————————————————————————————————————————————————————————–
Total 108 kB/s | 86 MB 13:30
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Retrieving key from http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
Importing GPG key 0x98AB5139:
Userid: “Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>”
From : http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:qt-4.6.2-26.el6_4.x86_64 1/7
Installing : 1:qt-sqlite-4.6.2-26.el6_4.x86_64 2/7
Installing : libmng-1.0.10-4.1.el6.x86_64 3/7
Installing : 1:phonon-backend-gstreamer-4.6.2-26.el6_4.x86_64 4/7
Installing : 1:qt-x11-4.6.2-26.el6_4.x86_64 5/7
Installing : SDL-1.2.14-3.el6.x86_64 6/7
Installing : VirtualBox-4.2-4.2.12_84980_el6-1.x86_64 7/7 

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 ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS [ OK ]
Starting VirtualBox kernel modules [ OK ]
Verifying : 1:qt-sqlite-4.6.2-26.el6_4.x86_64 1/7
Verifying : 1:qt-x11-4.6.2-26.el6_4.x86_64 2/7
Verifying : SDL-1.2.14-3.el6.x86_64 3/7
Verifying : 1:qt-4.6.2-26.el6_4.x86_64 4/7
Verifying : VirtualBox-4.2-4.2.12_84980_el6-1.x86_64 5/7
Verifying : 1:phonon-backend-gstreamer-4.6.2-26.el6_4.x86_64 6/7
Verifying : libmng-1.0.10-4.1.el6.x86_64 7/7

Installed:
VirtualBox-4.2.x86_64 0:4.2.12_84980_el6-1

Dependency Installed:
SDL.x86_64 0:1.2.14-3.el6 libmng.x86_64 0:1.0.10-4.1.el6 phonon-backend-gstreamer.x86_64 1:4.6.2-26.el6_4 qt.x86_64 1:4.6.2-26.el6_4 qt-sqlite.x86_64 1:4.6.2-26.el6_4
qt-x11.x86_64 1:4.6.2-26.el6_4

Complete!
[root@localhost yum.repos.d]#

Step 5:  Setup the kernel for Virtualbox

[root@localhost yum.repos.d]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]Trying to register the VirtualBox kernel modules using DKMS[ OK ]
Starting VirtualBox kernel modules [ OK ]
[root@localhost yum.repos.d]#

Step 6: Add users into “vboxusers” group

[root@localhost yum.repos.d]# usermod -a -G vboxusers kevin.ngo
[root@localhost yum.repos.d]# usermod -a -G vboxusers root

Step 7: Start Virtualbox on Centos 6.4

[root@localhost yum.repos.d]# virtualbox

 

virualbox2

Virtualbox3

 

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>