]> git.proxmox.com Git - mirror_ovs.git/blame - INSTALL.Fedora.md
doc: Convert README.ovs-vtep to rST
[mirror_ovs.git] / INSTALL.Fedora.md
CommitLineData
542cc9bb
TG
1How to Install Open vSwitch on Fedora Linux
2===========================================
d8fe0a6a 3
35666f1c
LR
4This document provides instructions for building and installing Open vSwitch
5RPM packages on a Fedora Linux host. Instructions for the installation of
6Open vSwitch on a Fedora Linux host without using RPM packages can be found
aff0c4a2 7in [INSTALL.rst].
35666f1c
LR
8
9These instructions have been tested with Fedora 23, and are also applicable
10for RHEL 7.x and its derivatives, including CentOS 7.x and Scientific Linux
117.x.
12
13Build Requirements
14------------------
15The tools and packages that are required for building Open vSwitch are
aff0c4a2 16documented in [INSTALL.rst]. Specific packages (by package name) include:
35666f1c
LR
17
18 - rpm-build
19 - autoconf automake libtool
20 - systemd-units openssl openssl-devel
06c58061 21 - python python-twisted-core python-zope-interface python-six
35666f1c
LR
22 - desktop-file-utils
23 - groff graphviz
24 - procps-ng
25
26And (optionally):
27
28 - libcap-ng libcap-ng-devel
29 - dpdk-devel
30
31Building Open vSwitch RPMs for Fedora
32-------------------------------------
33
34RPMs may be built from an Open vSwitch distribution tarball or from an
35Open vSwitch Git tree. The build procedure for each scenario is described
36below.
37
38### Preparing to Build Open vSwitch RPMs with a GIT Tree
39From the top-level directory of the git tree, execute the following
40commands:
41
42```
43./boot.sh
44./configure
45```
46
47### Preparing to Build Open vSwitch RPMs from a Tarball
48From a directory with appropriate permissions, execute the following commands
49(substituting the relevant Open vSwitch release version for "x.y.z"):
50
51```
52tar xzf openvswitch-x.y.z.tar.gz
53cd openvswitch-x.y.z
54./configure
55```
56
57### Building the User-Space RPMs
58To build Open vSwitch user-space RPMs, after having completed the appropriate
59preparation steps described above, execute the following from the directory
60in which `./configure` was executed:
61
62```
63make rpm-fedora
64```
65
66This will create the RPMs `openvswitch`, `python-openvswitch`,
0e12c2a4
BS
67`openvswitch-test`, `openvswitch-devel`, `openvswitch-ovn-common`,
68`openvswitch-ovn-central`, `openvswitch-ovn-host`, `openvswitch-ovn-vtep`,
69`openvswitch-ovn-docker`, and `openvswitch-debuginfo`.
35666f1c
LR
70
71To enable DPDK support in the openvswitch package,
72the `--with dpdk` option can be added:
73
74```
75make rpm-fedora RPMBUILD_OPT="--with dpdk"
76```
77
78The above commands automatically run the Open vSwitch unit tests,
79which can take several minutes. To reduce the build time by
80disabling the execution of these tests, the `--without check`
81option can be added:
82
83```
84make rpm-fedora RPMBUILD_OPT="--without check"
85```
86
87### Building the Kernel OVS Tree Datapath RPM
88To build the Open vSwitch kernel module for the currently running
89kernel version, execute:
90
91```
92make rpm-fedora-kmod
93```
94
95To build the Open vSwitch kernel module for another kernel version,
96the desired kernel version can be specified via the `kversion` macro.
97For example:
98
99```
100make rpm-fedora-kmod \
101 RPMBUILD_OPT='-D "kversion 4.3.4-300.fc23.x86_64"'
102```
103
104Installing Open vSwitch RPMs
105----------------------------
106RPM packages can be installed by using the command `rpm -i`. Package
107installation requires superuser privileges.
108
109The openvswitch-kmod RPM should be installed first if the Linux OVS tree datapath
110module is to be used. The openvswitch-kmod RPM should not be installed if
edde4861 111only the in-tree Linux datapath or user-space datapath is needed. See [FAQ.rst]
35666f1c 112for more information about the various Open vSwitch datapath options.
d8fe0a6a 113
0e12c2a4
BS
114In most cases only the `openvswitch` RPM will need to be installed. The
115`python-openvswitch`, `openvswitch-test`, `openvswitch-devel`, and
116`openvswitch-debuginfo` RPMs are optional unless required for a specific
117purpose.
118
119The `openvswitch-ovn-*` packages are only needed when using OVN.
d8fe0a6a 120
35666f1c 121See [rhel/README.RHEL] for additional usage and configuration information.
d8fe0a6a
RS
122
123Reporting Bugs
124--------------
125
126Please report problems to bugs@openvswitch.org.
9feb1017 127
aff0c4a2 128[INSTALL.rst]:INSTALL.rst
edde4861 129[FAQ.rst]:FAQ.rst
1c904eed 130[README.RHEL]:rhel/README.RHEL.rst