Virtualbox Guest additions and kernel 2.6.28

If none of the more specific forums is the right place to ask

Virtualbox Guest additions and kernel 2.6.28

Postby fhr » 2009-01-31 15:33

Hi all,

I'm trying to install Virtualbox Guest Additions under Debian Sid, with a 2.6.28 kernel (from the debian-kernel repository). When I run the installer, it says "Building the test kernel module failed", and /var/log/vboxadd-install.log contains :

Installing VirtualBox 2.1.2 Guest Additions, built Wed Jan 21 19:54:18 CET 2009

Testing the setup of the guest system

Building a test kernel module...

make KBUILD_VERBOSE=1 -C /lib/modules/2.6.28-1-686/build
SUBDIRS=/tmp/selfgz20923534/module/test SRCROOT=/tmp/selfgz20923534/module/test
modules
make[1]: Makefile: Aucun fichier ou répertoire de ce type
make[1]: *** Pas de règle pour fabriquer la cible « Makefile ». Arrêt.
make: *** [vboxadd_test] Erreur 2

Building the test kernel module failed.
Giving up due to the problems mentioned above.


Any idea ?

NB :
_it works well with the 2.6.26 kernel included with Sid.
_linux-headers-2.6.28 install was a bit dirty : this package depends on "linux-kbuild-2.6.28", which does not exist/is not installable. So I had to aptitude download, dpkg -i --force-depends, etc.
fhr
 
Posts: 2
Joined: 2009-01-31 15:30

Postby plb » 2009-01-31 16:08

I have a custom built 2.6.28 kernel on Lenny and Virtualbox installed (XP) with no issues. Can't say for certain what's giving you problems...those odd occasional issues I experienced with unstable are what made me move back to stable/testing.
plb
 
Posts: 470
Joined: 2007-04-22 14:24
Location: NYC

Postby mase » 2009-01-31 16:26

Looks like you need to wait for the linux-kbuild package.
Main system:Lenny/KDE3
Test system: Sid/KDE4
Athlon64 3200+, 1 GB RAM, GF 5700, Audigy Player, rt2500 (pci) WLAN
mase
 
Posts: 361
Joined: 2008-06-18 07:38

Postby infinitycircuit » 2009-01-31 17:55

Please try again with LANG=C so the output is in English--this is a bit hard to debug!
I am currently a Debian Maintainer. I am also in the New Maintainers' Queue.
infinitycircuit
 
Posts: 1135
Joined: 2007-07-24 03:31
Location: California

Postby fhr » 2009-01-31 18:32

Oops, forgot that ! The 3 lines in french mean something like :

make[1]: Makefile: No file or directory of this type
make[1]: *** No rule to make target « Makefile ». Stop.
make: *** [vboxadd_test] Error 2
fhr
 
Posts: 2
Joined: 2009-01-31 15:30

Postby negated » 2009-02-19 04:34

I was able to get it installed by using the "linux-kbuild-2.6.28_2.6.28~sidux.1-1_amd64.deb" file found at http://sidux.c3sl.ufpr.br/debian/pool/fix.main/l/linux-kbuild-2.6/.

Then I went back to the experimental repository to install the 2.6.28 headers.

Then as root, "/etc/init.d/vboxdrv setup".

As long as you don't mind using the sidux package you're all set.

-S
negated
 
Posts: 1
Joined: 2008-06-03 17:26

Postby Llama » 2009-03-03 08:52

mase wrote:Looks like you need to wait for the linux-kbuild package.


Do anybody has any idea why a linux-kbuild package should be behind a prebuilt kernel? How long's one supposed to wait :) ? I'm not that impatient; just curious about reasons. The thing looks a bit illogical.
Llama
 
Posts: 23
Joined: 2008-10-13 07:55

Postby mase » 2009-03-03 09:40

You need that package in order to be able to build modules for the kernel.

If you don't want to wait, you can always compile the kernel yourself with make-kpkg.
Main system:Lenny/KDE3
Test system: Sid/KDE4
Athlon64 3200+, 1 GB RAM, GF 5700, Audigy Player, rt2500 (pci) WLAN
mase
 
Posts: 361
Joined: 2008-06-18 07:38

Postby bugsbunny » 2009-03-03 11:55

slh has changed build methodology for sidux and it's kbuild is no longer available. However you can get the source and compile it yourself - it's an easy compile.

deb-src http://kernel-archive.buildserver.net/debian-kernel/ trunk main
package-name=linux-kbuild-2.6
package version at the moment=2.6.28-1~snapshot.12595
build dependencies: debhelper (>= 4.1.0)

You want the real easy way to build this:
add the above deb-src line to /etc/apt/sources.list
then:
#aptitude update
#aptitude install apt-src

As normal user:
mkdir -p ~/source/kbuild
cd ~/source/kbuild
apt-src build linux-kbuild-2.6=2.6.28-1~snapshot.12595

When it's done you'll have (among other things) a deb package in ~/source/kbuild which you can then install using dpkg -i
User avatar
bugsbunny
 
Posts: 3824
Joined: 2008-07-06 17:04

Postby logan » 2009-03-03 15:14

Thanks, that worked. Got tired of waiting..

I also had to:
apt-src install linux-kbuild-2.6=2.6.28-1~snapshot.12595

before build.
logan
 
Posts: 185
Joined: 2008-03-29 18:09

Postby bugsbunny » 2009-03-03 15:59

build is supposed to automatically install (or so say the docs). I thought that I did it this way when I built it - but maybe I did them separately.

There's also a --build option you can use with install.
User avatar
bugsbunny
 
Posts: 3824
Joined: 2008-07-06 17:04


Return to General Questions

Who is online

Users browsing this forum: No registered users and 2 guests