openstack install openvswitch for git source code

1. openVswitch dependency
yum install -y gcc gcc-c++ make libtool patch automake openssl openssl-devel rpm-build redhat-rpm-config python-devel 
yum install -y kernel kernel-devel kernel-debug-devel


###After System update the kernel upgrade to  2.6.32-358.2.1.el6.x86_64


1.2 Reboot server apply new Kernel 
/sbin/reboot


###after system start up chech kernel version
uname -a
Linux ci91szcmp004.webex.com 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


1.3 install autoconf 2.6.9
xz -d autoconf-2.69.tar.xz 
tar xvf autoconf-2.69.tar 
cd autoconf-2.69
./configure 
make 
make install


2. Remove bridge moudle 
#delete default.xml because Bridge and openVswitch have impact 
rm -rf /etc/libvirt/qemu/networks/autostart/default.xml 
ifconfig virbr0 down 
rmmod bridge 


3. install openvswitch from git source
git clone git://openvswitch.org/openvswitch
mkdir -p /root/rpmbuild/SOURCES
cd openvswitch
cp openvswitch-1.10.90.tar.gz /root/rpmbuild/SOURCES
vi rhel/openvswitch-kmod-rhel6.spec.in 
vi rhel/openvswitch-kmod-rhel6.spec
###Add below config 
%files
/lib/modules/2.6.32-358.2.1.el6.x86_64/extra/openvswitch/openvswitch.ko
/etc/depmod.d/openvswitch.conf


3.1 Build Openvswitch 
./boot.sh;./configure; make dist


rpmbuild -bb rhel/openvswitch.spec
rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec


4. Install Openvswitch 
cd /root/rpmbuild/RPMS/x86_64
rpm -ivh openvswitch-1.10.90-1.x86_64.rpm openvswitch-kmod-1.10.90-1.el6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:openvswitch-kmod       ########################################### [ 50%]
   2:openvswitch            ########################################### [100%]


rpm -ivh kmod-openvswitch-1.10.90-1.el6.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:kmod-openvswitch       ########################################### [100%]


4.1 Load openvswitch moudle
modprobe openvswitch
/etc/init.d/openvswitch stop
/etc/init.d/openvswitch start
ifconfig -a 


5. Testing openvswithc funciton
ovs-vsctl show
ovs-vsctl add-br br-int
ovs-vsctl add-br br-ext
ovs-vsctl show
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值