Open vSwitch(OVS)源码编译Ubuntu16.04,Linux内核版本4.15
发布日期:2022-03-18 18:19:20 浏览次数:4 分类:技术文章

本文共 1194 字,大约阅读时间需要 3 分钟。

Open vSwitch(OVS)源码编译Ubuntu16.04,Linux内核版本4.15

关于Open vSwitch(OVS)版本与Linux内核的关系,参考这篇文章:


先安装需要的库:

apt-get  install dh-autoreconf libelf-dev

如果你安装过mininet,系统中存在OVS了,需要先卸载:

kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid`rmmod openvswitch

到官网下载压缩包:

解压后进入目录,运行如下命令:

./configure --with-linux=/lib/modules/`uname -r`/build ./boot.shmake cleanmake &&  make install#insmod datapath/linux/openvswitch.ko make modules_installmodprobe gremodprobe openvswitch	modprobe libcrc32clsmod | grep openvswitchmodinfo openvswitch mkdir -p /usr/local/etc/openvswitchovsdb-tool create /usr/local/etc/openvswitch/conf.db \vswitchd/vswitch.ovsschemamkdir -p /usr/local/var/run/openvswitchovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \    --remote=db:Open_vSwitch,Open_vSwitch,manager_options \    --private-key=db:Open_vSwitch,SSL,private_key \    --certificate=db:Open_vSwitch,SSL,certificate \    --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \    --pidfile --detach --log-fileovs-vsctl --no-wait initovs-vswitchd --pidfile --detach --log-fileservice openvswitch-switch startexport PATH=$PATH:/usr/local/share/openvswitch/scriptsovs-ctl start

幸运的话,一切顺利,可以运行了!

转载地址:https://zhang0peter.blog.csdn.net/article/details/84889506 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:anaconda: import numpy报错:ImportError: DLL load failed: 找不到指定的模块。
下一篇:java报错-找不到或无法加载主类(Error: Could not find or load main class)

发表评论

最新留言

做的很好,不错不错
[***.243.131.199]2024年03月25日 19时32分19秒