[ovs-discuss] The Open vSwitch kernel module is probably not loaded.

Jesse Gross jesse at nicira.com
Fri Sep 13 21:38:48 UTC 2013


This is a different problem from the one originally reported. I sent
out a patch for this, CC'd to you. Please test it to see if it fixes
the problem.

On Wed, Sep 11, 2013 at 7:57 AM, Cristina Palomo Regidor
<cristina.palomo.regidor at ericsson.com> wrote:
> Hello,
> These are the errors I get when running make:
>
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c: In function \u2018do_setup\u2019:
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:197: error: \u2018struct net_device\u2019 has no member named \u2018do_ioctl\u2019
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:198: error: \u2018struct net_device\u2019 has no member named \u2018get_stats\u2019
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:198: error: \u2018internal_dev_sys_stats\u2019 undeclared (first use in this function)
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:198: error: (Each undeclared identifier is reported only once
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:198: error: for each function it appears in.)
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:199: error: \u2018struct net_device\u2019 has no member named \u2018hard_start_xmit\u2019
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:200: error: \u2018struct net_device\u2019 has no member named \u2018open\u2019
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:201: error: \u2018struct net_device\u2019 has no member named \u2018stop\u2019
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:202: error: \u2018struct net_device\u2019 has no member named \u2018set_mac_address\u2019
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:203: error: \u2018struct net_device\u2019 has no member named \u2018change_mtu\u2019
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c: In function \u2018ovs_is_internal_dev\u2019:
> /root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.c:336: error: \u2018const struct net_device\u2019 has no member named \u2018open\u2019
> make[7]: *** [/root/openVswitch/openvswitch-1.9.3/datapath/linux/vport-internal_dev.o] Error 1
> make[6]: *** [_module_/root/openVswitch/openvswitch-1.9.3/datapath/linux] Error 2
> make[5]: *** [sub-make] Error 2
> make[4]: *** [all] Error 2
> make[4]: Leaving directory `/usr/src/linux-3.0.76-0.11-obj/x86_64/default'
> make[3]: *** [default] Error 2
> make[3]: Leaving directory `/root/openVswitch/openvswitch-1.9.3/datapath/linux'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/openVswitch/openvswitch-1.9.3/datapath'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/openVswitch/openvswitch-1.9.3'
> make: *** [all] Error 2
>
> -----Original Message-----
> From: discuss-bounces at openvswitch.org [mailto:discuss-bounces at openvswitch.org] On Behalf Of Cristina Palomo Regidor
> Sent: miércoles, 11 de septiembre de 2013 16:12
> To: discuss at openvswitch.org
> Subject: Re: [ovs-discuss] The Open vSwitch kernel module is probably not loaded.
>
>
> Hello,
> I see that they have released the version 1.9.3 LTS openvswitch so I have installed it but I have the same problem.
> When I try to run this command
>  % ./configure --with-linux=/lib/modules/`uname -r`/build
>
> And after it I run "make" I get some errors.
>
> So do you have any idea, what could I do?
>
> Thanks and BR/
>
> -----Original Message-----
> From: Cristina Palomo Regidor
> Sent: miércoles, 11 de septiembre de 2013 11:08
> To: 'Jesse Gross'
> Cc: discuss at openvswitch.org
> Subject: RE: [ovs-discuss] The Open vSwitch kernel module is probably not loaded.
>
> Hi Jesse,
> This is the kernel that I have in my system:
> sccf1-dell1:~/openVswitch/openvswitch-1.9.0 # uname -r 3.0.76-0.11-default
>
> Do you know what can I do to solve this problem?
>
> Thanks.
>
> -----Original Message-----
> From: Jesse Gross [mailto:jesse at nicira.com]
> Sent: martes, 10 de septiembre de 2013 18:22
> To: Cristina Palomo Regidor
> Cc: discuss at openvswitch.org
> Subject: Re: [ovs-discuss] The Open vSwitch kernel module is probably not loaded.
>
> On Tue, Sep 10, 2013 at 6:38 AM, Cristina Palomo Regidor <cristina.palomo.regidor at ericsson.com> wrote:
>>
>>
>> Hello,
>>
>> I have installed openvswitch in sles 11 sp3 running:
>>
>> ./configure
>>
>> make
>>
>> make install
>>
>>
>>
>> But when I reach this point I receive following error:
>>
>>
>>
>> sccf1-dell1:~ # ovs-vswitchd --pidfile --detach
>>
>> 2013-09-09T09:40:56Z|00001|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
>> connecting...
>>
>> 2013-09-09T09:40:56Z|00002|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
>> connected
>>
>> 2013-09-09T09:40:56Z|00003|dpif_linux|ERR|Generic Netlink family
>> 'ovs_datapath' does not exist. The Open vSwitch kernel module is
>> probably not loaded.
>>
>> 2013-09-09T09:40:56Z|00004|dpif|WARN|failed to enumerate system datapaths:
>> No such file or directory
>>
>>
>>
>>
>>
>> Then, after this error I have tried to run configure with the
>> following
>> options:
>>
>> % ./configure --with-linux=/lib/modules/`uname -r`/build
>>
>>
>>
>> And when I do make I receive following error:
>>
>>
>>
>> sccf1-dell1:~/openVswitch/openvswitch-1.9.0 # make
>>
>> make  all-recursive
>>
>> make[1]: Entering directory `/root/openVswitch/openvswitch-1.9.0'
>>
>> Making all in datapath
>>
>> make[2]: Entering directory `/root/openVswitch/openvswitch-1.9.0/datapath'
>>
>> Making all in linux
>>
>> make[3]: Entering directory
>> `/root/openVswitch/openvswitch-1.9.0/datapath/linux'
>>
>> make -C /lib/modules/3.0.76-0.11-default/build
>> M=/root/openVswitch/openvswitch-1.9.0/datapath/linux  modules
>>
>> make[4]: Entering directory `/usr/src/linux-3.0.76-0.11-obj/x86_64/default'
>>
>> make -C ../../../linux-3.0.76-0.11
>> O=/usr/src/linux-3.0.76-0.11-obj/x86_64/default/. modules
>>
>>   CC [M]
>> /root/openVswitch/openvswitch-1.9.0/datapath/linux/brcompat_main.o
>>
>> In file included from
>> /root/openVswitch/openvswitch-1.9.0/datapath/linux/brcompat_main.c:25:
>>
>> /root/openVswitch/openvswitch-1.9.0/datapath/linux/compat/include/linux/etherdevice.h:13:
>> error: re definition of \u2018eth_hw_addr_random\u2019
>>
>> /usr/src/linux-3.0.76-0.11/include/linux/etherdevice.h:173: error:
>> previous definition of \u2018eth_hw_a ddr_random\u2019 was here
>>
>> /root/openVswitch/openvswitch-1.9.0/datapath/linux/compat/include/linux/etherdevice.h:
>> In function \u2018eth_hw_addr_random\u2019:
>>
>> /root/openVswitch/openvswitch-1.9.0/datapath/linux/compat/include/linux/etherdevice.h:15:
>> error: im plicit declaration of function
>> \u2018dev_hw_addr_random\u2019
>>
>> make[7]: ***
>> [/root/openVswitch/openvswitch-1.9.0/datapath/linux/brcompat_main.o]
>> Error 1
>>
>> make[6]: ***
>> [_module_/root/openVswitch/openvswitch-1.9.0/datapath/linux]
>> Error 2
>>
>> make[5]: *** [sub-make] Error 2
>>
>> make[4]: *** [all] Error 2
>>
>> make[4]: Leaving directory `/usr/src/linux-3.0.76-0.11-obj/x86_64/default'
>>
>> make[3]: *** [default] Error 2
>>
>> make[3]: Leaving directory
>> `/root/openVswitch/openvswitch-1.9.0/datapath/linux'
>>
>> make[2]: *** [all-recursive] Error 1
>>
>> make[2]: Leaving directory `/root/openVswitch/openvswitch-1.9.0/datapath'
>>
>> make[1]: *** [all-recursive] Error 1
>>
>> make[1]: Leaving directory `/root/openVswitch/openvswitch-1.9.0'
>>
>> make: *** [all] Error 2
>>
>>
>>
>> Could you help me how to solve the error of module not loaded?
>
> This is due to a backport in the SLES kernel. It should already be addressed with newer releases in the 1.9.x series (and releases after that as well).
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss



More information about the discuss mailing list