Gentoo Host fail to compile module

Discussions related to using VirtualBox on Linux hosts.
Post Reply
andreaolivato
Posts: 5
Joined: 18. Dec 2008, 15:20

Gentoo Host fail to compile module

Post 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?
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Gentoo Host fail to compile module

Post 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
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Post Reply