标签:without
centos7
root目录
yum -y install wget openssl-devel kernel-devel
yum groupinstall "Development Tools"
adduser ovswitch
wget http://openvswitch.org/releases/openvswitch-2.3.0.tar.gz
tar xfz openvswitch-2.3.0.tar.gz
mkdir -p ~/rpmbuild/SOURCES
cp openvswitch-2.3.0.tar.gz /home/ovswitch/rpmbuild/SOURCES/
rpmbuild -bb --without check ~/openvswitch-2.3.0/rhel/openvswitch_no_kmod.spec
ctrl+D 退出进入root
yum localinstall /home/ovswitch/rpmbuild/RPMS/x86_64/openvswitch-2.3.0-1.x86_64.rpm
su - ovswitch
mv openvswitch-2.3.0/utilities/ovs-pki.in openvswitch-2.3.0/utilities/ovs-pki.tmp
sed ‘s/md5/sha1/g‘ openvswitch-2.3.0/utilities/ovs-pki.tmp > openvswitch-2.3.0/utilities/ovs-pki.in
tar czvf ~/rpmbuild/SOURCES/openvswitch-2.3.0.tar.gz openvswitch-2.3.0/
rpmbuild -bb ~/openvswitch-2.3.0/rhel/openvswitch_no_kmod.spec
ctrl+D 退出
退出进入root(此处把selinux改为permissive 重启机器 然后进行下边的操作 SELINUX=permissive)
mkdir /etc/openvswitch
yum provides semanage
yum -y install policycoreutils-python
/usr/sbin/setsebool -P ftp_home_dir 1
semanage fcontext -a -t openvswitch_rw_t "/etc/openvswitch(/.*)?"
restorecon -Rv /etc/openvswitch
systemctl start openvswitch.service
systemctl -l status openvswitch.service
[root@minion ~]# l?ovs-vsctl?add-br?obr0
-bash: $‘l\302\240ovs-vsctl\302\240add-br\302\240obr0‘: command not found
service openvswitch restart
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1855984
标签:without
原文地址:http://wsxxsl.blog.51cto.com/9085838/1855984