step 1: 从github上clone代码
git clone https://github.com/openvswitch/ovs.git
step 2: 编译版本
cd ovs
./boot.sh
./configure --with-linux=/lib/modules/`uname -r`/build
make
make install
make INSTALL_MOD_DIR=kernel/net/openvswitch modules_install
modprobe -r vport_geneve
modprobe -r openvswitch
modprobe openvswitch
modprobe vport-geneve
说明:如果编译不过,需要apt-get install libtool, apt-get install autoconf,