Hi,

I faced the same problem while doing 'insmod ./datapath/linux/openvswitch.ko?'.?


Followed the following steps and module is now loaded successfully.

However I get following error as I go a step ahead and try to install the 
mofule using 'sudo make module_install:


"Can't read private key?"


$ sudo make modules_install
cd datapath/linux && make modules_install
make[1]: Entering directory 
`/home/yogesh/openvsw/openvswitch-2.1.2/datapath/linux'
make -C /lib/modules/3.11.0-23-generic/build 
M=/home/yogesh/openvsw/openvswitch-2.1.2/datapath/linux modules_install
make[2]: Entering directory `/usr/src/linux-headers-3.11.0-23-generic'
  INSTALL /home/yogesh/openvsw/openvswitch-2.1.2/datapath/linux/openvswitch.ko
Can't read private key  >>>>>>>>>>>>>>>>>
  DEPMOD  3.11.0-23-generic >>>>>>>>>>>>>>
make[2]: Leaving directory `/usr/src/linux-headers-3.11.0-23-generic'
depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' 
/lib/modules/3.11.0-23-generic/build/include/generated/utsrelease.h`
make[1]: Leaving directory 
`/home/yogesh/openvsw/openvswitch-2.1.2/datapath/linux'


How did you overcome this problem?


Thanks,

Yogesh





________________________________
From: discuss <[email protected]> on behalf of Keqiang He 
<[email protected]>
Sent: Wednesday, June 11, 2014 10:06 AM
To: Daniele Di Proietto
Cc: [email protected]
Subject: Re: [ovs-discuss] A potential bug when installing OVS 2.1.2 on Ubuntu 
12.04 with Linux kernel 3.11

thanks for pointing out this. Yes, it works fine after those two modules are 
loaded - I did not notice that.

Keqiang


On Tue, Jun 10, 2014 at 7:55 PM, Daniele Di Proietto 
<[email protected]<mailto:[email protected]>> wrote:

On Jun 10, 2014, at 2:45 PM, Keqiang He 
<[email protected]<mailto:[email protected]>> wrote:

Bug/Error :
insmod ./datapath/linux/openvswitch.ko, I got "Error: could not insert module 
./datapath/linux/openvswitch.ko: Unknown symbol in module".

Running "dmesg tail", I got the following -
6983759.520274] openvswitch: Open vSwitch switching datapath
[6995650.759804] openvswitch: Unknown symbol gre_cisco_register (err 0)
[6995650.759891] openvswitch: Unknown symbol gre_cisco_unregister (err 0)
[6995650.759957] openvswitch: Unknown symbol crc32c (err 0)

Running "modinfo openvswitch.ko", I got -
filename:       
/root/openvswitch/openvswitch-2.1.2/./datapath/linux/openvswitch.ko
version:        2.1.2
license:        GPL
description:    Open vSwitch switching datapath
srcversion:     36BADD76E144180AB0D135E
depends:        libcrc32c,gre
vermagic:       3.11.0-12-generic SMP mod_unload modversions


This probably happens because the kernel modules 'libcrc32c' and 'gre' are not 
loaded. The output from modinfo shows that openvswitch.ko depends on them: they 
must be loaded before openvswitch.ko (modprobe libcrc32c; modprobe gre).

Alternatively, you can install (make install) the kernel module and use 
'modprobe', which will automatically load all the required dependencies, 
instead of 'insmod'.

Daniele

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to