Page 1 of 1

Gentoo Host fail to compile module

Posted: 6. May 2009, 12:19
by andreaolivato
Hello,

I used to run VirtualBox without any problem on my previous work Gentoo box, a pentium IV machine. I recently switched to a new machine, using a Core(TM)2 Quad CPU Q6600.

I compiled my kernel using 'Processor Family' = 'Core 2/Newer Xeon'

I installed VirtualBox correctly but when I start the init script to setup the module I receive this error

Code: Select all

sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module ...                                 [ ok ]
 * Removing old VirtualBox netflt kernel module ...                      [ ok ]
 * Removing old VirtualBox kernel module ...                             [ ok ]
 * Recompiling VirtualBox kernel module ...                              [ ok ]
 * Starting VirtualBox kernel module ...
 * modprobe vboxdrv failed. Please use 'dmesg' to find out why
So I went to dmesg and got

Code: Select all

vboxdrv: version magic '2.6.28-gentoo-r5 SMP mod_unload PENTIUM4 ' should be '2.6.28-gentoo-r5 SMP mod_unload CORE2 '
I can't understand what's the problem... Vbox module doesn't like my CORE2 processor family?

Re: Gentoo Host fail to compile module

Posted: 7. May 2009, 08:40
by baf
Is this a new intallation or did you upgrade your old one?

If it was an upgrade check that /usr/src/linux points to the right kernel-source directory.
Then recompile VBox again