onos.py automatically forwards connections to the Mininet VM/server to the appropriate ONOS instance.
|Service||VM port to connect to|
|Karaf via ||8101 (|
So if you are using a VM whose IP address is
192.168.x.y, to connect to the GUI on ONOS1, you would use the URL
If you are using VirtualBox, you will probably need to add a host-only interface to your VM and you may even need to run
dhclient to make sure that that interface has an IP address. You can also set up port forwarding on a single interface - in this case you will want to make sure that it is set up for every port you wish to connect to (e.g.
8181 for the GUI on
Starting ONOS with debug option
You can start ONOS cluster as debug mode with debug option 'debug=True'.
sudo mn --custom onos.py --controller onos,3,debug=True --topo torus,4,4
For debugging ONOS with intelliJ IDEA, refer to Debugging ONOS with IntelliJ IDEA.