2 Licensed under the Apache License, Version 2.0 (the "License"); you may
3 not use this file except in compliance with the License. You may obtain
4 a copy of the License at
6 http://www.apache.org/licenses/LICENSE-2.0
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 License for the specific language governing permissions and limitations
14 Convention for heading levels in Open vSwitch documentation:
16 ======= Heading 0 (reserved for the title in a document)
22 Avoid deeper levels because they do not render well.
24 ============================
25 Open vSwitch on Fedora Linux
26 ============================
28 This document provides instructions for building and installing Open vSwitch
29 RPM packages on a Fedora Linux host. Instructions for the installation of Open
30 vSwitch on a Fedora Linux host without using RPM packages can be found in the
31 `general installation guide <INSTALL.rst>`__.
33 These instructions have been tested with Fedora 23, and are also applicable for
34 RHEL 7.x and its derivatives, including CentOS 7.x and Scientific Linux 7.x.
39 To build packages for a Fedora Linux host, you will need the packages described
40 in the `general installation guide <INSTALL.rst>`__. Specific packages (by
41 package name) include:
44 - autoconf automake libtool
45 - systemd-units openssl openssl-devel
46 - python python-twisted-core python-zope-interface python-six
53 - libcap-ng libcap-ng-devel
59 Refer to the *Bootstrapping* section of the `general installation guide
65 Refer to the *Configuring* section of the `general installation guide
74 To build Open vSwitch user-space RPMs, execute the following from the directory
75 in which `./configure` was executed:
81 This will create the RPMs `openvswitch`, `python-openvswitch`,
82 `openvswitch-test`, `openvswitch-devel`, `openvswitch-ovn-common`,
83 `openvswitch-ovn-central`, `openvswitch-ovn-host`, `openvswitch-ovn-vtep`,
84 `openvswitch-ovn-docker`, and `openvswitch-debuginfo`.
86 To enable DPDK support in the openvswitch package, the ``--with dpdk`` option
91 $ make rpm-fedora RPMBUILD_OPT="--with dpdk"
93 The above commands automatically run the Open vSwitch unit tests, which can
94 take several minutes. To reduce the build time by disabling the execution of
95 these tests, the ``--without check`` option can be added:
99 $ make rpm-fedora RPMBUILD_OPT="--without check"
101 Kernel OVS Tree Datapath RPM
102 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104 To build the Open vSwitch kernel module for the currently running kernel
109 $ make rpm-fedora-kmod
111 To build the Open vSwitch kernel module for another kernel version, the desired
112 kernel version can be specified via the `kversion` macro. For example:
116 $ make rpm-fedora-kmod \
117 RPMBUILD_OPT='-D "kversion 4.3.4-300.fc23.x86_64"'
122 RPM packages can be installed by using the command ``rpm -i``. Package
123 installation requires superuser privileges.
125 The `openvswitch-kmod` RPM should be installed first if the Linux OVS tree
126 datapath module is to be used. The `openvswitch-kmod` RPM should not be
127 installed if only the in-tree Linux datapath or user-space datapath is needed.
128 See the `FAQ document <FAQ.rst>`__ for more information about the various Open
129 vSwitch datapath options.
131 In most cases only the `openvswitch` RPM will need to be installed. The
132 `python-openvswitch`, `openvswitch-test`, `openvswitch-devel`, and
133 `openvswitch-debuginfo` RPMs are optional unless required for a specific
136 The `openvswitch-ovn-*` packages are only needed when using OVN.
138 Refer to the `RHEL README <rhel/README.RHEL.rst>`__ for additional usage and
139 configuration information.
144 Report problems to bugs@openvswitch.org.