Page 1 of 1

Installation Error

Posted: 16. Jan 2009, 12:13
by sk1tL1L
Hello,
I am trying to install VirtualBox on my CentOS 5 VPS and I am getting this error:
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@localhost /]#
Looking at vbox-install.log:
[root@localhost /]# cat /var/log/vbox-install.log
Makefile:146: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
Makefile:154: *** Error: /usr/src/linux (version 2.6.18-92.1.22.el5) does not match the current kernel (version 2.6.18-92.1.1.el5.028stab057.2PAE). Stop.
[root@localhost /]#
I am running:
[root@localhost /]# uname -a
Linux localhost.localdomain 2.6.18-92.1.1.el5.028stab057.2PAE #1 SMP Mon Jul 21 21:22:20 MSD 2008 i686 i686 i386 GNU/Linux
[root@localhost /]#
Thanks for your help!

Posted: 16. Jan 2009, 18:58
by dominiquearpin
You need to install the kernel header.

Posted: 18. Jan 2009, 20:06
by Sasquatch
The kernel source/headers is not the same config as the kernel you are running. As the error states: 2.6.18-92.1.22.el5 does not match 2.6.18-92.1.1.el5.028stab057.2PAE. See the difference? Either boot to a different kernel, or update your system so these differences are taken care of.