Building Open vSwitch 2.11.1

I have some project with OpenStack which need Open vSwitch 2.11.1 to enable Open Virtual Network. I build the software in Centos 7.

Open vSwitch architecture

Install requirement software for building

yum install wget openssl-devel  python-sphinx gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool python-twisted-core python-zope-interface PyQt4 desktop-file-utils libcap-ng-devel groff checkpolicy selinux-policy-devel python-six gcc-c++ unbound-devel unbound -y

Create ovs user to build

useradd ovs
su - ovs

Create folder build

mkdir -p ~/rpmbuild/SOURCES

Download Open vSwitch packages

cd ~
cp openvswitch-2.11.1.tar.gz ~/rpmbuild/SOURCES/
tar xfz openvswitch-2.11.1.tar.gz

Build Open vSwitch

rpmbuild -bb --nocheck openvswitch-2.11.1/rhel/openvswitch-fedora.spec

If you want to build Open Virtual Network

rpmbuild -bb --nocheck openvswitch-2.11.1/rhel/ovn-fedora.spec

You can install from this directory


for example:

yum localinstall /home/ovs/rpmbuild/RPMS/x86_64/openvswitch-2.11.1-1.el7.x86_64.rpm 

Leave a Comment

Your email address will not be published.