下载源码
# git clone https://github.com/openvswitch/ovs.git
# cd ovs
# git checkout branch-2.8
下载依赖包
# yum install -y epel-release
# yum install -y autoconf automake libtool gcc clang openssl-devel libcap-ng-devel rpm-build yum-utils python-pip libpcap-devel numactl-devel
# pip install six
编译OVS
# cd ovs
# ./boot.sh
# ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
# make rpm-fedora RPMBUILD_OPT="--without check"
### 如果缺失依赖则执行
# yum-builddep rhel/openvswitch-fedora.spec
编译OVS内核模块
# make rpm-fedora-kmod
故障处理
ovsdb-server服务启动失败
### 查看/var/log/message日志
Creating empty database /etc/openvswitch/conf.db runuser: System error
### 解决办法: 关闭selinux