2
1

I've got Virtualbox running in Win 7 and I've got a guest OS of the new Fedora 13.

The install of the guest additions fails on building the kernel modules with the following error in the log:

Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.

uname -r

2.6.33.4-95.fc13.i686.PAE

ls -al /usr/src/kernels

2.6.33.4-95.fc13.i686

rpm -wq | grep kernel | sort

kernel-devel-2.6.33.4-95.fc13.i686
kernel-headers-2.6.33.4-95.fc13.i686

I'm running out of ideas and Google isn't providing any useful suggestions, any ideas please?

asked 26 May '10, 11:29

gregularexpressions's gravatar image

gregularexpr...
182117
accept rate: 37%




12next »

I figured it out, it's a nuance of how Virtual Box is looking for the kernel sources.

It must be using uname -r to get the current kernel which in my case was:

2.6.33.4-95.fc13.i686.PAE

But my /usr/src/kernels directory only had:

2.6.33.4-95.fc13.i686

It was missing the .PAE that virtualbox must've been looking for. I fixed it by doing the following symlink:

ln -s /usr/src/kernel/2.6.33.4-95.fc13.i686 /usr/src/kernel/2.6.33.4-95.fc13.i686.PAE

Thus creating the .PAE entry it was searching for.

link

answered 27 May '10, 08:04

gregularexpressions's gravatar image

gregularexpr...
182117
accept rate: 37%

You must install the package kernel-PAE-devel. I first thought that kernel-devel was enough, but that's not the same kernel that the one you are running.

I suppose you should also have kernel-headers installed

I don't agree with the above post from gregularexpressions: the module vboxguest would have the wrong version magic. It wouldn't have PAE in it and the PAE kernel require it.

link

answered 08 Jun '10, 16:04

mildred's gravatar image

mildred
762
accept rate: 33%

you need to install a few things first.

yum install kernel-devel kernel-headers gcc

set the kernel path.

export KERN_DIR=/usr/src/kernels/2.6.33.5-112.fc13.i686/

then run vmware additions

link

answered 01 Jun '10, 16:15

Bo's gravatar image

Bo
111
accept rate: 0%

Hello,

You're missing kernel headers and the gcc compiler (and assorted related stuff).

After the failed install, read through /var/log/vboxadd-install.log. The first error message will tell you what's missing.

Install the missing package via System/Administration/Add-Remove Software.

Try again. Check the log again. Repeat as necessary.

Eventually you'll succeed. I did it last night.

Good Luck

link

answered 26 May '10, 17:09

DBA's gravatar image

DBA
2113
accept rate: 17%

Thanks for the reply, unfortunately I already have gcc etc and the /var/log/vboxadd-install.log only has the error I mentioned above.

(27 May '10, 07:58) gregularexpr...

I am facing the same problem with you. I am installing the VMware on my laptop. My OS is Fedora 13. In the kernels directory, there is one folder named as "2.6.33.4-95.fc13.i686.PAE". But the VMware installer indicates that "Kernel headers for version 2.6.33.4-95.fc13.i686.PAE were not found."

link

answered 30 May '10, 21:37

Toney's gravatar image

Toney
11
accept rate: 0%

edited 30 May '10, 22:01

I've faced the same problem and I found my kernel sources in '/usr/src/kernels/...' and not '../kernel/..' - note 's' at the end of the name. Setting correct KERN_DIR helped to complete installation

link

answered 31 May '10, 14:32

FC13%20user's gravatar image

FC13 user
1
accept rate: 0%

Restating much of above, but three steps before running the Additions .bin file.

This is for the default install of Fedora 13 32-bit for Sun VirtualBox (compiles modules same as vmware).

  1. yum groupinstall "Development Tools"
  2. yum groupinstall "Development Libraries"
  3. yum install kernel-PAE-devel

Don't forget to add services with chkconfig --add later to run at boot if required!

link

answered 28 Jun '10, 13:46

Aaron%20X's gravatar image

Aaron X
1
accept rate: 0%

thank you for gregularexpressions !

link

answered 06 Jul '10, 08:05

sun's gravatar image

sun
1
accept rate: 0%

first, yum update kernel yum install kernel-devel yum install gcc reboot

after reboot kern_dir=/usr/src/kernels/2.6.33.5-124.fc13.i686

and now you con setup addition virtual box software!

link

answered 06 Jul '10, 09:40

Minh's gravatar image

Minh
1
accept rate: 0%

yum install dkms

yum install gcc

shutdown -r now

Install tools. Works perfect.

link

answered 31 Jul '10, 15:59

Clint's gravatar image

Clint
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×20
×4

Asked: 26 May '10, 11:29

Seen: 14,861 times

Last updated: 28 Jul '11, 08:24

powered by OSQA