Mininet OVS-Controller无法加载和运行

Mil*_*son 3 ubuntu networking mininet openvswitch

当我尝试从主机终端登录到我的mininet VM时,它显示Permission denied 错误,甚至来自使用命令托管Mininet的 VM终端内:

sudo mn --topo single,3 --mac --switch ovsk --controller remote`
Run Code Online (Sandbox Code Playgroud)

它显示以下错误:

ubuntu@ubuntu:~$ sudo mn
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
Cannot find required executable ovs-controller.
Please make sure that it is installed and availabe in your $PATH:
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin/:/bin)
ubuntu@ubuntu:~$
Run Code Online (Sandbox Code Playgroud)

所以我无法继续使用SDN网络!如何手动修复以及为什么会发生此错误!

csl*_*csl 5

当我升级到Open vSwitch 2.1时,我遇到了完全相同的问题.在ovs的发行说明(新闻)中我发现了这个:

  - ovs-controller has been renamed test-controller.  It is no longer
     packaged or installed by default, because too many users assumed
     incorrectly that ovs-controller was a necessary or desirable part
     of an Open vSwitch deployment.
Run Code Online (Sandbox Code Playgroud)

我还发现test-controller./tests/test-controller(源代码分发),所以我只是想

sudo cp tests/test-controller /usr/bin/ovs-controller
Run Code Online (Sandbox Code Playgroud)

这对我来说很好!我也在使用Mininet 2.1,但我不得不做以上工作.这是输出:

$ sudo mn --controller=ovsc
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
*** Starting 1 switches
s1
*** Starting CLI:
mininet> pingall
*** Ping: testing ping reachability
h1 -> h2
h2 -> h1
*** Results: 0% dropped (2/2 received)
mininet>
Run Code Online (Sandbox Code Playgroud)

有趣的是,他们不鼓励使用test-controller,尤其是Mininet似乎依赖它.也许有更好的可执行文件用于此目的?

如果这对您有用,请告诉我!


Jef*_*son 5

作为上面csl 的指针,您必须单独安装 openvswitch 控制器。在 ubuntu 中,这对我有用:

sudo apt-get install openvswitch-testcontroller
sudo cp /usr/bin/ovs-testcontroller /usr/bin/ovs-controller
Run Code Online (Sandbox Code Playgroud)