OpenVZ Forum


Home » General » Support » Unable to load kernel module
Unable to load kernel module [message #37425] Tue, 08 September 2009 16:38 Go to next message
siraj is currently offline  siraj
Messages: 6
Registered: July 2009
Junior Member

Hi


I am using ubuntu 8.04 with kernel 2.6.24 server. The NIC (Intel PRO/1000 quad port PT server adapter) is working properly here and shows all four Interfaces.The driver modules are also loaded correctly
#lsmod | grep e1000
output:
e1000
e1000e

But when i installed openvz virtualization setup . openvz uses a kernel based on kernel 2.6.18. In openvz environment this NIC is not detected.
#uname -r
2.6.18-14-ovz-amd-smp
#lsmod | grep e1000
output:
e1000
here it only showed e1000. And e1000e did not exists which was required driver for this card,i installed it explicitly. it installed successfull and e1000e.ko had been created. Now when i tried to load this module.It threw an error.

#modprobe e1000e

---------------------
output:
e1000e: version magic '2.6.18-14-ovz-amd64-smp SMP mod_unload gcc-4.2' should be '2.6.18-14-ovz-amd64-smp SMP mod_unload gcc-4.1'
FATAL:Error inserting e1000e (/lib/modules/2.6.18-14-ovz-amd64-smp/kernel/drivers/net/e10 00e/e1000e.ko): Invalid module format
-----------------------------------------
gcc information: (the following gcc packages are installed on my machine)
#dpkg --get-selections |grep gcc
gcc install
gcc-3.4 install
gcc-3.4-base install
gcc-4.1 install
gcc-4.2 install
gcc-4.2-base install
libgcc1 install
-----------------------------------------

Can any body suggest how to handle this problem.

Thanks & Regards
Siraj Rathore
Re: Unable to load kernel module [message #37447 is a reply to message #37425] Fri, 11 September 2009 13:39 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
As it is stated in the error message,
the kernel binary was compiled with gcc-4.1 but the external module that you're going to insert with help of gcc-4.2.
So, you can use either "-f" or compile with gcc-4.1 or switch to another OpenVZ kernel.
http://download.openvz.org/kernel/branches/2.6.24/current/
Re: Unable to load kernel module [message #37456 is a reply to message #37447] Sat, 12 September 2009 22:31 Go to previous message
siraj is currently offline  siraj
Messages: 6
Registered: July 2009
Junior Member
Thanks! problem has been solved by using
#modprobe -f e1000e
Previous Topic: vmguarpages != oomguarpages ?
Next Topic: [solved] ip tunnel add error in ve
Goto Forum:
  


Current Time: Mon Sep 02 07:22:05 GMT 2024

Total time taken to generate the page: 0.05367 seconds