Mininet Cannot find required executable controller

Whenever I want to run the sshd.py example in mininet or some custome code, I wrote it 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) 

Although $ sudo mn --test pingall works great!

I assume that I should find the executable file of the open stream controller and add it to the path, but I do not know where it is. but the test creates a controller and works great!

I tried reinstalling mininet using

 $ ~/mininet/util/install.sh -a or [-fnv] 
+4
source share
7 answers

I came across the same problem with the Ubuntu mininet. Try explicitly specifying the controller class when building the Mininet object, for example. instead

 net = Mininet(topo) 

make

 from mininet.node import OVSController net = Mininet(topo = topo, controller = OVSController) 

This solved the problem in my case.

+7
source

I want the message to be like

Cannot find the required executable "controller".

In any case, if you have an ovs controller installed, for example. provided by the "openvswitch-controller" package on the debian platform, all you have to do is

sudo ln / usr / bin / ovs-controller / usr / bin / controller

+4
source

I had the same problem and solved it by installing a new version of mininet (2.1.0). With version 2.0.0, I could not do anything.

+1
source
 ubuntu@ubuntu :~$ cd mininet/examples ubuntu@ubuntu :~/mininet/examples$ dir baresshd.py hwintf.py multipoll.py scratchnetuser.py consoles.py limit.py multitest.py simpleperf.py controllers2.py linearbandwidth.py popenpoll.py sshd.py controllers.py milsontest.py popen.py tree1024.py cpu.py miniedit.py README treeping64.py emptynet.py multiping.py scratchnet.py ubuntu@ubuntu :~/mininet/examples$ nano sshd.py ubuntu@ubuntu :~/mininet/examples$ sudo python sshd.py 

Have you tried this?

OR, if you use the sudo mn command, try:

 sudo mn --controller=remote 
+1
source

I had the same problem, so I uninstalled mininet and instead installed “apt-get install mininet” again, I downloaded the source and installed everything that is included in the Mininet VM. This solved the problem.

Just check out “Option 2: Native installation from source” on the website: http://mininet.org/download/#option-1-mininet-vm-installation-easy-recommended

+1
source

In newer versions of OVS, the ovs controller has been renamed the test controller.

Install openvswitch-testcontroller first if you do not have the following command:

  sudo apt-get install openvswitch-testcontroller 

Secondly, create a symlink to the test controller:

  sudo ln /usr/bin/ovs-testcontroller /usr/bin/controller 

This works for me.

You can also view this link: http://installfights.blogspot.com.co/2016/09/cannot-find-required-executable.html

+1
source

The problem with the installation, as I understand it. I tried a mini-virtual machine and everything in it works great.

0
source

Source: https://habr.com/ru/post/1488469/


All Articles