hello I installed kernel-headers-2.6.18-164.15.1.el5.x86_64.rpm kernel-devel-2.6.18-164.15.1.el5.x86_64.rpm
and I build successfully the kernel module of Openvswitch with this command line ./configure --with-l26=/lib/modules/`uname -r`/build/ make sudo make install and when I load the module I have this error dmesg | tail openvswitch_mod: version magic '2.6.18-164.15.1.el5 SMP mod_unload *gcc-4.3*' should be '2.6.18-164.15.1.el5 SMP mod_unload *gcc-4.1*' and when I look for the gcc I have this message ---------------------------------------------------------------------------------------------------- sudo yum install gcc Package gcc-4.1.2-50.el5.x86_64 already installed and latest version ---------------------------------------------------------------------------------------------------- and when I do ---------------------------------------------------------------------------------------------------- [marwen@node015 ~]$ gcc --version gcc (GCC) 4.3.4 Copyright (C) 2008 Free Software Foundation, Inc. ---------------------------------------------------------------------------------------------------- Thank you for your help Best Regards Marwen 2011/7/21 沒 <[email protected]> > which hypervisor are you running on? XEN ? or KVM ? > > for KVM user, you sholud do: *su -c 'yum install kernel-devel'* > *dmesg | grep kvm* to make sure you're running KVM environment > > for XEN user, you should do: *su -c 'yum install kernel-xen-devel'* > *xm info* to make sure you're running XEN environment > > I'm so sorry but I have the same problem >> >> knowing that I build Openvswitch with this command line >> ./boot.sh >> >> what is your Open vSwitch version, or you pull it from git tree ? > >> ./configure --with-l26=/lib/modules/2.6.18-238.19.1.el5/build/ >> >> if you pull the version from the git tree, you should run with the command > --with-linux, but not --with-l26 > > I suggest you to use /lib/modules/`uname -r`/build, for making sure that it > is compatible to you Linux kernel > >> make >> sudo make install >> >> and when I load Openvswitch module I have this error >> >> insmod: error inserting 'datapath/linux-2.6/openvswitch_mod.ko': -1 Invalid >> module format >> >> > see above > > >> dmesg | tail >> >> if you're running KVM > > * dmesg | grep kvm * > > you will see two line output > > kvm > kvm_intel OR kvm_amd > > openvswitch_mod: version magic '2.6.18-238.19.1.el5 SMP mod_unload gcc-4.3' >> should be '2.6.18-164.15.1.el5 SMP mod_unload gcc-4.1' >> >> I think the problem is related to the version of the kernel >> because when I execute uname -r I have this result >> "2.6.18-164.15.1.el5" >> and when I build openvswitch I use this version "2.6.18-238.19.1.el5" >> because in /lib/modules/2.6.18-164.15.1.el5 we haven't build directory >> >> Thank you in advance >> Best regards >> Marwen >> >> > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss > >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
