Page 1 of 1

Kernel not matching kernel module source

Posted: 2010/02/04 14:22:59
by wpflum
I'm trying to get virtualbox installed and am running into a problem where the drivers wont compile because it can't find the kernel source. I have the source installed but I checked it against uname -r and it appears to be different. I removed it with yum and reinstalled it but it still seems to be getting the wrong one.

Here is what I have in /usr/src/kernels

2.6.18-164.11.1.el5-x86_64

and when I do a uname -r

2.6.18-164.el5

I'm sure I didn't have this kind of problem with the 32 bit version of 5.4 so I figured it might be something with the 64 bit version.

Are those the same kernel but slightly different nomenclature or am I missing something completely??

I have rebooted and tried it again just in case the kernel got updated and hadn't been run yet but I still get the same thing.

I thought about putting in a symlink and making it the same as the kernel but i figured if it really WAS a different kernel then all hell might break loose. :-(

Bill

Re: Kernel not matching kernel module source

Posted: 2010/02/04 14:45:31
by wpflum
Just for giggles I tried a symlink to make it look like the correct kernel source and now vboxdrv finds the source but flags it as not matching the kernel. So I'm back to why isn't the current kernel source installed when I use yum to install kernel-devel.x86_64???

I'm now also wondering if the NVIDIA driver compiled correctly since it didn't find the source either and I forced it with the path statement. It seems to work but maybe that's just dumb luck.

Is there some other way to get the kernel module source??


Bill

Kernel not matching kernel module source

Posted: 2010/02/04 15:29:35
by gerald_clark
Update your machine to the current kernel, and re-boot.
Your running kernel is old and does not match your devel headers.

Re: Kernel not matching kernel module source

Posted: 2010/02/04 16:31:02
by toracat
After following the gerald_clark's advice, show us the output of:

uname -mr ; rpm -qa kernel\* | sort

Re: Kernel not matching kernel module source

Posted: 2010/02/04 18:30:19
by pschaff
[quote]
gerald_clark wrote:
Update your machine to the current kernel, and re-boot.
Your running kernel is old and does not match your devel headers.[/quote]

... and since the updates include glibc and you have obviously not been updating the following procedure is recommended:[code]
yum clean all
yum update glibc\*
yum update
shutdown -r now
[/code]