Skip to content

Commit

Permalink
INSTALL.md: Add details about kernel module preference.
Browse files Browse the repository at this point in the history
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Darrell Ball <dlu998@gmail.com>
  • Loading branch information
shettyg committed Sep 29, 2016
1 parent 58be5c0 commit b46e72e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion INSTALL.md
Expand Up @@ -322,9 +322,30 @@ Building the Sources
4. Run "make install" to install the executables and manpages into the
running system, by default under /usr/local.

5. If you built kernel modules, you may install and load them, e.g.:
5. If you built kernel modules, you may install them, e.g.:

`% make modules_install`

It is possible that you already had a Open vSwitch kernel module
installed on your machine that came from upstream Linux (in a
different directory). To make sure that you load the Open vSwitch
kernel module you built from this repository, you should create a
depmod.d file that prefers your newly installed kernel modules over
the kernel modules from upstream Linux. The following snippet of
code achieves the same.

```
% config_file="/etc/depmod.d/openvswitch.conf"
% for module in datapath/linux/*.ko; do
modname="$(basename ${module})"
echo "override ${modname%.ko} * extra" >> "$config_file"
echo "override ${modname%.ko} * weak-updates" >> "$config_file"
done
% depmod -a
```

Finally, load the kernel modules that you need. e.g.:

`% /sbin/modprobe openvswitch`

To verify that the modules have been loaded, run "/sbin/lsmod" and
Expand Down

0 comments on commit b46e72e

Please sign in to comment.