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,更使最小网络似乎依赖于它。也许有一个更好的用于此目的的可执行文件?

让我知道这是否适合你!


你可能感兴趣的:(mininet)