How to install Virtualbox on CentOS6x (64 Bit):
## RHEL 6.4/6.3/6.2/6.1/6.0/5.9/5.8/5.6 and CentOS 6.4/6.3/6.2/6.1/6.0/5.9/5.8/5.6 ##
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Install Dependencies:
yum -y groupinstall Desktop
yum -y install qt qt-devel SDL-devel tigervnc-server gcc make kernel-devel dkms
uname -r
2.6.32-431.11.2.el6.x86_64 //Kernel version
export KERN_DIR=/usr/src/kernels/2.6.32-431.11.2.el6.x86_64
yum -y update
yum install VirtualBox-4.3
<or>
wget http://download.virtualbox.org/virtualbox/4.3.8/VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm
rpm -ivh VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm
Installation Process:
warning: VirtualBox-4.3-4.3.8_92456_el6-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Preparing... ########################################### [100%]
1:VirtualBox-4.3 ########################################### [100%]
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 ]
Note: By Defaull it works for 32 bit OS
Error (64 Bit PC): “This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot – please use a kernel appropriate for your CPU”
For 64 bit OS (Enable virtulization):
Start or Restart PC:
Press a key (such as F2, F12, Delete, or Esc) Go to BIOS
--> Go to CPU information.
--> Enable Virtualization.
--> Save and exit
Then it will work for 64 bit OS.
No comments:
Post a Comment