Install Virtualbox in CentOS 6.4 , 64 Bit
This post is about installing Virtualbox 4.3 in CentOS 6.4, 64 Bit architecture.
Download Virtualbox 4.3 from the following link,
wget "http://download.virtualbox.org/virtualbox/4.3.2/VirtualBox-4.3-4.3.2_90405_el6-1.x86_64.rpm"
rpm -ivh "VirtualBox-4.3-4.3.2_90405_el6-1.x86_64.rpm"
While installing I ended up in the following error.
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 [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
When I checked the log,it was reporting that,
cat /var/log/vbox-install.log
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop. centos 6.4
So I Installed Kernel Header packages first
yum install kernel-devel
yum install kernel-headers.x86_64
Still the error persisted.
While searching, I came across this link.
https://www.digitalocean.com/community/articles/how-to-install-virtualbox-on-centos-6-3-x64
I just made a try by adding the export statement
export KERN_DIR=/usr/src/kernels/2.6.32-358.23.2.el6.x86_64/
Now Uninstall and install the package again.
rpm -e VirtualBox-4.3-4.3.2_90405_el6-1.x86_64
rpm -ivh "VirtualBox-4.3-4.3.2_90405_el6-1.x86_64.rpm"
Now the problems were resolved ! .
At last Virtualbox got installed successfully !
No comments:
Post a Comment