Kernel not matching kernel module source

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
wpflum
Posts: 32
Joined: 2009/06/18 14:52:16

Kernel not matching kernel module source

Post by wpflum » 2010/02/04 14:22:59

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

wpflum
Posts: 32
Joined: 2009/06/18 14:52:16

Re: Kernel not matching kernel module source

Post by wpflum » 2010/02/04 14:45:31

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

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Kernel not matching kernel module source

Post by gerald_clark » 2010/02/04 15:29:35

Update your machine to the current kernel, and re-boot.
Your running kernel is old and does not match your devel headers.

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Kernel not matching kernel module source

Post by toracat » 2010/02/04 16:31:02

After following the gerald_clark's advice, show us the output of:

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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Kernel not matching kernel module source

Post by pschaff » 2010/02/04 18:30:19

[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]

Post Reply

Return to “CentOS 5 - X86_64,s390(x) and PowerPC Support”