virtualbox module compilation fails on custom kernel

Discussions related to using VirtualBox on Linux hosts.
Post Reply
csaba
Posts: 1
Joined: 5. Mar 2009, 20:53

virtualbox module compilation fails on custom kernel

Post by csaba »

Hi. my system is debian lenny and ...

... I just installed virtualbox from the official virtualbox repository http://download.virtualbox.org/virtualbox/debian. and also im using a custom kernel. When im trying to compile the module for the kernel i get this:

Code: Select all


$ sudo /etc/init.d/vboxdrv setup
...

   echo;                        \
   echo "  ERROR: Kernel configuration is invalid.";      \
   echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";   \
   echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
   echo;               

...

/tmp/vbox.2/linux/SUPDrv-linux.c: In function ‘VBoxDrvLinuxCreate’:
/tmp/vbox.2/linux/SUPDrv-linux.c:772: error: ‘struct task_struct’ has no member named ‘euid’
/tmp/vbox.2/linux/SUPDrv-linux.c:773: error: ‘struct task_struct’ has no member named ‘egid’
make[2]: *** [/tmp/vbox.2/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.2] Error 2
make[1]: Leaving directory `/home/csaba/linux-src/linux-2.6.29-rc7'
make: *** [vboxdrv] Error 2

Im aware that its preferable to use the compiler version which i used when compiling the kernel itself. Thats already arranged.

Also i did those make oldconfig and make prepare in the kernel source top directory. But the error just wont dissapear.

Also /usr/src/linux is a symlink to my kernel source directory. I dont know what else am i missing.
The offical documentation sais:
Alternatively, if you built your own kernel /usr/src/linux will point to your
kernel sources, and you have not removed the files created during the build
process, then your system will already be correctly set up.
So i should be having no problems according to this. or should i?

Maybe i failed to include in the kernel some options that is required by virtualbox?

Anyone knows are there any specific kernel config options required by virtualbox?

Thanx for reading.
nilclass
Posts: 1
Joined: 19. May 2009, 00:28
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: debian

Re: virtualbox module compilation fails on custom kernel

Post by nilclass »

I'm experiencing exactly the same problems.

looks like it's a problem with 2.6.29, as you can see here (find "process credentials" in the diff), the euid, and egid fields have been removed. I hope people are working on this, don't want to downgrade :)
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: virtualbox module compilation fails on custom kernel

Post by Sasquatch »

Please search the forums, there are a few topics with this. One solution is to use a newer build, e.g. 2.6.29.2 or higher (.3 is also available).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
phe
Posts: 12
Joined: 18. May 2009, 08:13
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: OpenBSD

Re: virtualbox module compilation fails on custom kernel

Post by phe »

I had a similar problem.
This was solved when I did "yumex update Qt to 4.5"
Post Reply