centos 6.5 安装openvswitch

Posted on Posted in docker

> 遇到了好多坑,2.5版本没装上,python版本的问题

1. 升级[python](http://liuhonghe.me/centos6-upgrade-python.html)版本

2. 安装依赖

  1. yum -y install wget openssl-devel kernel-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool  

3. 安装

  1. tar zxvf openvswitch-2.3.3.tar.gz     
  2. mkdir -p ~/rpmbuild/SOURCES     
  3. sed 's/openvswitch-kmod, //g' openvswitch-2.3.3/rhel/openvswitch.spec > openvswitch-2.3.3/rhel/openvswitch_no_kmod.spec    
  4. cp openvswitch-2.3.3.tar.gz rpmbuild/SOURCES/    
  5. rpmbuild -bb --without check ~/openvswitch-2.3.3/rhel/openvswitch_no_kmod.spec     
  6. yum localinstall ~/rpmbuild/RPMS/x86_64/openvswitch-2.3.3-1.x86_64.rpm     
  7. mkdir /etc/openvswitch    
  8. /etc/init.d/openvswitch start  
» 转载请注明来源:若我若鱼 » centos 6.5 安装openvswitch

Leave a Reply

Your email address will not be published. Required fields are marked *

four × four =