`vboxdrv' likely not compiled with -mcmodel=kernel
Recently I 'updated' both of my hardened Gentoo boxes. Just when I thought that everything went smooth, this pops up:
FATAL: Error inserting vboxdrv (/lib/modules/2.6.39-hardened-r8/misc/vboxdrv.ko): Invalid module format
Sidenote: My gentoo boxes are 'hardened' which implies that the toolchain and the kernel have additional patches that harden the generated code. This code is provided and maintained by the distribution. It's primarily used for servers but it works for desktops as well. The only drawback is that you cannot use proprietary software which will not build with this configuration or just violates the safety measures. Since everything here is opensource, this should not cause any trouble.
Checking dmesg for a more descriptive error:
[ 17.121778] overflow in relocation type 11 val ffffc9001203710c
[ 17.121784] `vboxdrv' likely not compiled with -mcmodel=kernel
For some reason the kernel won't eat the modules I compiled for it.
I tried several of the below combinations:
- Simple recompilation
- virtualbox-modules (version):
- 4.0.12
- 4.1.4
- 4.1.6
- Gcc:
- x86_64-pc-linux-gnu-4.4.5(-vanilla)
- x86_64-pc-linux-gnu-4.5.3(-vanilla)
The combination:
- virtualbox-modules-4.0.12
- gcc-4.4.5
- hardened-sources-2.6.39-r8
Used to work. Something broke it, and I just can't find it/evade it. Please help.
This is really urgent for me, my father has some old crippled piece of accounting software (!) that modifies critical WinBlows XP system files for no apparent reason. Virtualbox was my way out, worked wonders. He could access it remotely through my IPSEC wherever he was. It just worked.
|