CentOS7编译安装openvswitch
Install build prerequisites:
yum install gcc make python-devel openssl-devel kernel-devel graphviz \ kernel-debug-devel autoconf automake rpm-build redhat-rpm-config \ libtool
https://www.openvswitch.org/releases/openvswitch-2.5.5.tar.gz
-
Now you have a distribution tarball, named something like openvswitch-x.y.z.tar.gz. Copy this file into the RPM sources directory, e.g.:
cp openvswitch-x.y.z.tar.gz $HOME/rpmbuild/SOURCES
-
Make another copy of the distribution tarball in a temporary directory. Then unpack the tarball and "cd" into its root, e.g.:
tar xzf openvswitch-x.y.z.tar.gz cd openvswitch-x.y.z
-
To build Open vSwitch userspace, run:
rpmbuild -bb rhel/openvswitch.spec
-
rpm -ivh ~/rpmbuild/RPMS/x86_64/openvswitch-2.5.5-1.x86_64.rpm
-
#systemctl start openvswitch.service #systemctl enable openvswitch on