openvswitch安装(centos6.5)

前端之家收集整理的这篇文章主要介绍了openvswitch安装(centos6.5)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1.安装依赖包

yum install gcc make python-devel openssl-devel kernel-devel graphviz \ kernel-debug-devel autoconf automake rpm-build redhat-rpm-config \ libtool

其中Autoconf必须要>=2.63版本


2.安装openvswitch(2.4.0版本为例)

下载2.4.0版本

mkdir-p/root/rpmbuild/SOURCES

cpopenvswitch-2.4.0.tar.gz/root/rpmbuild/SOURCES

cd/root/rpmbuild/SOURCES

tar-zxvfopenvswitch-2.4.0.tar.gz


3.rpm包制作

rpmbuild-bb --without check rhel/openvswitch.spec

rpmbuild-bbrhel/openvswitch-kmod-rhel6.spec

这一步可能会遇到如下问题:

3.1 依赖/usr/local/bin/python,在spec中增加Autoreq: 0

3.2/etc/depmod.d/openvswitch.conf不存在,在openvswitch-kmod-rhel6.spec和spec.in中添加

%files

/lib/modules/2.6.32-358.18.1.el6.x86_64/extra/openvswitch/openvswitch.ko

/etc/depmod.d/openvswitch.conf


4.安装rpm包

rpm -ivh openvswitch-2.4.0-1.x86_64.rpmopenvswitch-kmod-2.4.0-1.el6.x86_64.rpm

rpm -ivhkmod-openvswitch-2.4.0-1.el6.x86_64.rpm


5.启动openvswitch

modprobeopenvswitch

/etc/init.d/openvswitchstart


参考:

http://www.jb51.cc/article/p-zmafcuoa-kz.html

http://openvswitch.org/support/dist-docs-2.4/INSTALL.RHEL.md.html

原文链接:https://www.f2er.com/centos/377630.html

猜你在找的CentOS相关文章