懒人的装法:
wget http://mirror.beyondhosting.net/OpenVSwitch/openvswitch-2.3.1-1.el6.x86_64.rpm  
wget http://mirror.beyondhosting.net/OpenVSwitch/openvswitch-kmod-2.3.1-1.el6.x86_64.rpm  
wget http://mirror.beyondhosting.net/OpenVSwitch/kmod-openvswitch-2.3.1-1.el6.x86_64.rpm  
rpm -vih *.rpm  
modprobe openvswitch  
service openvswitch start  
复杂的装法:
yum groupinstall "Development Tools" -y  
yum install rpmdevtools openssl-devel kernel-devel gcc redhat-rpm-config -y  
adduser ovswitch  
su - ovswitch  
cd  
wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz  
tar xzf openvswitch-2.3.1.tar.gz  
mkdir -p rpmbuild/SOURCES  
cp openvswitch-2.3.1.tar.gz rpmbuild/SOURCES/  
cp openvswitch-2.3.1/rhel/openvswitch-kmod.files /home/ovswitch/rpmbuild/SOURCES/  
sed 's/openvswitch-kmod, //g' openvswitch-2.3.1/rhel/openvswitch.spec > openvswitch-2.3.1/rhel/openvswitch_no_kmod.spec  
rpmbuild -bb openvswitch-2.3.1/rhel/openvswitch_no_kmod.spec  
exit  
yum localinstall rpmbuild/RPMS/x86_64/openvswitch-2.3.1.x86_64.rpm  
modprobe openvswitch  
service openvswitch start  
comments powered by Disqus