LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-09-2011, 12:44 AM   #1
alpha645
LQ Newbie
 
Registered: Jul 2006
Posts: 25

Rep: Reputation: 0
Angry `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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Where to get vboxdrv.ko for 2.6.31.3 kernel? sevs Linux - Software 7 03-14-2010 07:17 AM
kernel execute file is diffternet compiled from same kernel source at different time willchen Linux - Kernel 5 01-01-2010 01:04 AM
Compiled Kernel: Kernel panic Unable to mount root fs on 08:02 pobrika Linux - Software 3 05-23-2008 02:29 PM
kernel panic while booting custom compiled 2.6.24 kernel on RHEL 4 AS samkraju Red Hat 4 02-10-2008 12:55 AM
The kernel I compiled reads my sata drives as hda even though the rpm kernel read sda abefroman Linux - Software 5 07-10-2006 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration