kernel headers problem with SUSE 10.3 guest additions

Discussions about using Linux guests in VirtualBox.
Post Reply
bourquek
Posts: 2
Joined: 4. Jan 2008, 18:50

kernel headers problem with SUSE 10.3 guest additions

Post by bourquek »

Hi everyone -

I've tried to be a good citizen and figure this out but so far I can't. I've got SUSE 10.3 installed under XP SP2. All updates are applied to both systems. I'm running VirtualBox 1.54.

When I try to install the Guest additions, I get...

Makefile:38: *** Error: unable to find the include directory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again.. Stop.

I've installed linux-kernel-headers, kernel-source, autoyast, autoconf, automake, gcc, and probably a few others I'm forgetting.

I've got these repositories...
/repositories/openSUSE:/10.3/standard/
/update/10.3/
/repositories/Virtualization:/VirtualBox/openSUSE_10.3/
/distribution/10.3/repo/non-oss/

plus the install DVD and a few others.

rpm -qa | grep kernel shows me this....

kernel-default-2.6.24_rc6_g304b4699-3.1
kernel-syms-2.6.22.13-0.3
linux-kernel-headers-2.6.22-19
kernel-source-2.6.22.13-0.3

I'm smart enough to notice that the versions don't match but not smart enough to know what to do about it. In particular, I notice I've got a release candidate kernel. I assume I picked it up during my update frenzy.

Some gentle guidance would be appreciated.

- Kevin
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Post by frank »

Please tell us the kernel version of the current openSUSE kernel (uname -r).
bourquek
Posts: 2
Joined: 4. Jan 2008, 18:50

Post by bourquek »

2.6.24-rc6-g304b4699-3-default
wpavel
Posts: 3
Joined: 10. Jan 2008, 17:04

Post by wpavel »

Hello,
I got exactly the same with a fresh installed OpenSuse 10.3 as guest.
After installing all automatically offered Suse-updates inclusive the kernel update, the installing of the virtual box guest applications works without any error. Of course I do not know, which of the Updates brought about this.
W.Pavel
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Post by frank »

With openSUSE you have to install kernel headers according to your currently running kernel as well as kernel-source. bourquek, you seem to use a self-compiled kernel. In that case, make sure that the kernel sources for that kernel are available.
DocB
Posts: 70
Joined: 16. Nov 2007, 19:48

Post by DocB »

Actually, I run into the same problem (KDE 4.01 live CD installed): Kernel header, includes and source are installed, and I can easily recompile the kernel.

After entering the path for the include

Code: Select all

 export KERN_INCL=/usr/src/linux/include
the error changes to:

Code: Select all

Installing VirtualBox 1.5.2 Guest Additions, built Thu Oct 18 10:04:07 CEST 2007

Testing the setup of the guest system

Building a test kernel module...

grep: /usr/src/linux/include/linux/version.h: Datei oder Verzeichnis nicht gefunden
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.22.16-0.1-default/build SUBDIRS=/tmp/selfgz95286869/module/test SRCROOT=/tmp/selfgz95286869/module/test modules
make[1]: *** Keine Regel, um ?modules? zu erstellen.  Schluss.
make: *** [vboxadd_test] Fehler 2

Building the test kernel module failed.
Giving up due to the problems mentioned above.
And yes, version.h is not there. I'm a little out of kernel building, was that file not required in older Linux-versions?
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

For Suse, the package kernel-header is not zhe problem.

The package "kernel-source" must be same version as running kernel.
DocB
Posts: 70
Joined: 16. Nov 2007, 19:48

Post by DocB »

stefan.becker wrote: The package "kernel-source" must be same version as running kernel.

Code: Select all

linux:/media/VBOXADDITIONS_1.5.2_25433 # uname -r
2.6.22.16-0.1-default
It is the same version.
Post Reply