B^B .. Oh

一群爱搞事情的小弱鸡

CentOS7 64位 编译 OVN

更换阿里源

yum install wget

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache

安装依赖

yum install -y epel-*

yum install -y "@Development Tools"

yum install -y python2-pip python34-pip

更换pip源

pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install six

pip3 install pip -U
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install six

pip install flask

pip3 install flask

编译ovs2.10

openvswitch-2.10.0.tar.gz

mkdir /data

cd /data

wget http://10.6.65.1/openvswitch-2.10.0.tar.gz

tar -zxf openvswitch-2.10.0.tar.gz

rm -rf openvswitch-2.10.0.tar.gz

./boot.sh

yum install -y kernel-devel-$(uname -r)

./configure --with-linux=/lib/modules/$(uname -r)/build
make -j 8

make check TESTSUITEFLAGS=-j8
make install
make modules_install
config_file="/etc/depmod.d/openvswitch.conf"

for module in datapath/linux/*.ko; do
modname="$(basename ${module})"
echo "override ${modname%.ko} * extra" >> "$config_file"
echo "override ${modname%.ko} * weak-updates" >> "$config_file"
done

depmod -a

/sbin/modprobe openvswitch
/sbin/lsmod | grep openvswitch
点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注