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
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