Mininet找不到所需的可执行控制器 [英] Mininet Cannot find required executable controller

查看:219
本文介绍了Mininet找不到所需的可执行控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我要在mininet或某些自定义代码中运行sshd.py示例时,我都会写自己

  ** *创建网络
***添加控制器
***添加主机:
h1 h2 h3 h4 h5
***添加交换机:
s1
***添加链接:
(h1,s1)(h2,s1)(h3,s1)(h4,s1)(h5,s1)
***配置主机
h1 h2 h3 h4 h5
***启动控制器
找不到所需的可执行控制器。
请确保它已安装并在$ PATH中可用:
(/ usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin: / bin)

尽管 $ sudo mn --test pingall 可以正常工作!



我想我应该找到开放流控制器可执行文件并将其添加到路径中,但是我不知道它在哪里。但是该测试创建了一个控制器并可以正常工作!



我尝试使用

重新安装mininet  $〜/ mininet / util / install.sh -a或[-fnv] 


解决方案

偶然发现了Ubuntu上mininet的同一问题。
在构造Mininet对象时尝试显式指定控制器类,例如而不是

  net = Mininet(topo)

从mininet.node导入

do

 导入OVSController 

net = Mininet(topo = topo,controller = OVSController)

这解决了我的问题。 / p>

Whenever I want to run sshd.py example in mininet or some custome code I have written myself I get

*** 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)

Though $ sudo mn --test pingall works fine!

I guess I should find the open flow controller executable and add it to the path but I don't know where is it located. but the test create a controller and works fine!

I have tried to reinstalling mininet with

$ ~/mininet/util/install.sh -a or [-fnv]

解决方案

Stumbled upon the same issue with mininet on Ubuntu. Try to explicitly specify the controller class when constructing a Mininet object, e.g. instead of

net = Mininet(topo)

do

from mininet.node import OVSController

net = Mininet(topo = topo, controller = OVSController)

That solved the problem in my case.

这篇关于Mininet找不到所需的可执行控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆