1.编译安装ovs
sudo apt install graphviz autoconf automake bzip2 debhelper dh-autoreconf libssl-dev libtool openssl procps python-all python-qt4 python-twisted-conch python-zopeinterface python-six dkms module-assistant ipsec-tools racoon libc6-dev module-init-tools netbase python-argparse uuid-runtime -y
git clone https://github.com/openvswitch/ovs.git
cd ovs
# 如果稳定分支与内核不兼容,则直接使用master分支
# 例如,当前只有master分支支持5.0以上版本的Linux内核
git checkout master
./boot.sh
./configure --with-linux=/lib/modules/$(uname -r)/build
make
sudo make install
sudo make modules_install
sduo /sbin/modprobe openvswitch
/sbin/lsmod | grep openvswitch
网友评论