mininet error: Cannot find required executable ovs-controller.

原始地址:http://4byte.cn/question/122846/mininet-ovs-controller-can-t-be-loaded-and-run.html

当我尝试登录,SSH到我最小网络虚拟机从主机终端显示权限被拒绝错误甚至在虚拟终端的地方最小网络托管使用命令:

sudo mn --topo single,3 --mac --switch ovsk --controller remote`

它显示以下错误:

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:~$

所以我不能继续使用该网络!怎么能固定手动和为什么这个错误!

我有同样的问题当我升级到开放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.

我还发现test-controller./tests/test-controller(源分布),所以我只是尝试

sudo cp tests/test-controller /usr/bin/ovs-controller

这对我来说很不错!我使用的最小网络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>

有趣的是,他们不鼓励使用test-controller,更使最小网络似乎依赖于它。也许有一个更好的用于此目的的可执行文件?

让我知道这是否适合你!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值