Mininet无法找到所需的可执行控制器

Moh*_*Zah 5 python controller mininet

每当我想在mininet或某些客户代码中运行sshd.py示例时,我就自己写了

*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 h3 h4 h5 
*** Adding switches:
s1 
*** Adding links:
(h1, s1) (h2, s1) (h3, s1) (h4, s1) (h5, s1) 
*** Configuring hosts
h1 h2 h3 h4 h5 
*** Starting controller
Cannot find required executable controller.
Please make sure that it is installed and available in your $PATH:
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
Run Code Online (Sandbox Code Playgroud)

虽然$ sudo mn --test pingall工作正常!

我想我应该找到open flow controller可执行文件并将其添加到路径中,但我不知道它位于何处.但测试创建一个控制器,工作正常!

我试图重新安装mininet

$ ~/mininet/util/install.sh -a or [-fnv]
Run Code Online (Sandbox Code Playgroud)

小智 7

在Ubuntu上遇到与mininet相同的问题.尝试在构造Mininet对象时显式指定控制器类,例如,而不是

net = Mininet(topo)
Run Code Online (Sandbox Code Playgroud)

from mininet.node import OVSController

net = Mininet(topo = topo, controller = OVSController)
Run Code Online (Sandbox Code Playgroud)

这解决了我的问题.


use*_*017 5

我希望消息像

找不到所需的可执行文件“控制器”。

无论如何,只要您在类似debian的平台上安装了ovs-controller例如“ openvswitch-controller”软件包提供的,您要做的就是

须藤ln / usr / bin / ovs-controller / usr / bin / controller


小智 5

在最新版本的OVS中,ovs-controller被重命名为test-controller。

如果尚未使用以下命令,请首先安装openvswitch-testcontroller:

 sudo apt-get install openvswitch-testcontroller
Run Code Online (Sandbox Code Playgroud)

其次,创建到测试控制器的符号链接:

 sudo ln /usr/bin/ovs-testcontroller /usr/bin/controller 
Run Code Online (Sandbox Code Playgroud)

这对我行得通。

您也可以查看以下链接:http : //installfights.blogspot.com.co/2016/09/cannot-find-required-executable.html


Moh*_*Zah 1

据我所知,安装有问题。我尝试了 mininet 虚拟机,一切正常。