Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
- Make sure you've given your VM enough RAM - try using 2-4 GB for each ONOS node (so 6-12 GB for
--controller onos,3
) ; ONOS can be very memory-hungry! - Make sure you are running the latest version of Mininet (see below)
- Look at the log file(s) and make sure no errors are occurring:
more /tmp/onos1/log; more /tmp/onos1/onos.log
- Look at the output from running
mn
oronos.py
and carefully examine and try to understand any error or exception messages - usually they will tell you what is going wrong - Reset your environment using:
sudo pkill -f karaf.jar; sudo mn -c
- Make sure you have built onos:
cd ~/onos; buck build onos
- Make sure you can run Mininet:
sudo mn --test pingall
- Invoke Mininet in debug mode by adding the
-v debug
flag to see what is going wrong or hanging:sudo mn --custom onos.py --controller onos,1 --topo tree,2,2 -v debug
- You will want to pay careful attention to each operation as well as any error messages that are being displayed or exceptions that may be occurring.
...