chinabenjamin66
chinabenjamin66

Reputation: 177

Fedora 19 x86_64 kernel version is different with kernel source

I installed Fedora 19 x86_64 on My vmware workstation. When I try to install the third party software. it give me a message "can't find kernel source files".

I checked that the kernel version is 3.9.5-301.fc19.x86_64 via uname -r.

but I found the kernel source version is higher than the current running kernel version.

there are two symblic links in /lib/modules/3.9.5-301.fc19.x86_64 folder. they are

build -> /usr/src/kernels/3.9.5-301.fc19.x86_64 source -> build

They are broken, because there is no folder /usr/src/kernels/3.9.5-301.fc19.x86_64 in my system.

Can anyone tell me why this situation happens. and how to install correct kernel source in my Fedora.

Big thanks.

Upvotes: 2

Views: 4417

Answers (3)

Ahsan
Ahsan

Reputation: 4154

The same happened to me on my Fedora 19 box and my kernel version was: 3.14.4-100.fc19.x86_64 so VirtualBox was looking for the source here:

/usr/src/kernels/3.14.4-100.fc19.x86_64

I checked my /usr/src/kernels dir which and found that it was empty. Then I downloaded the kernel src from the net which was named:

kernel-3.14.4-100.fc19.**src**.rpm

and extracted to /usr/src/kernels/ and run:

/etc/init.d/vboxdrv setup

Which returned:

Stopping VirtualBox kernel modules                         [  OK  ]
Recompiling VirtualBox kernel modules                      [  OK  ]
Starting VirtualBox kernel modules                         [  OK  ]

Was working great!

Upvotes: 0

Soumya Kanti
Soumya Kanti

Reputation: 1479

You can check here what is the currently most stable kernel available (and download associated RPMs if you requiere):

https://admin.fedoraproject.org/updates/kernel

Upvotes: 0

rickhg12hs
rickhg12hs

Reputation: 11922

Any reason to not run the latest kernel? You might benefit from updating everything first.

#  yum update

Doubt you actually need the entire kernel source. Have you installed kernel-devel?

#  yum install kernel-devel

If you need more, next install kernel headers.

#  yum install kernel-headers

If you do update the running kernel, reboot into that kernel before installing the 3rd party software.

Upvotes: 1

Related Questions