Openvswitch installation (centos6.5)
1. Install dependency packages
Yum install gcc make python-devel openssl-devel kernel-devel graphviz\ kernel-debug-devel autoconf automake rpm-build redhat-rpm-config\ libtool
Where Autoconf must be > = 2.63 version
two。 Install openvswitch (version 2.4.0 as an example)
Download version 2.4.0
Mkdir-p / root/rpmbuild/SOURCES
Cp openvswitch-2.4.0.tar.gz / root/rpmbuild/SOURCES
Cd / root/rpmbuild/SOURCES
Tar-zxvf openvswitch-2.4.0.tar.gz
3.rpm package making
Rpmbuild-bb-- without check rhel/openvswitch.spec
Rpmbuild-bb rhel/openvswitch-kmod-rhel6.spec
The following problems may be encountered in this step:
3.1 rely on / usr/local/bin/python, add Autoreq: 0 to spec
3.2 / etc/depmod.d/openvswitch.conf does not exist, added in openvswitch-kmod-rhel6.spec and spec.in
% files
/ lib/modules/2.6.32-358.18.1.el6.x86_64/extra/openvswitch/openvswitch.ko
/ etc/depmod.d/openvswitch.conf
4. Install the RPM package
Rpm-ivh openvswitch-2.4.0-1.x86_64.rpm openvswitch-kmod-2.4.0-1.el6.x86_64.rpm
Rpm-ivh kmod-openvswitch-2.4.0-1.el6.x86_64.rpm
5. Start openvswitch
Modprobe openvswitch
/ etc/init.d/openvswitch start
Reference:
Http://blog.csdn.net/bobpen/article/details/11478263
Http://openvswitch.org/support/dist-docs-2.4/INSTALL.RHEL.md.html