...
If Mininet doesn't work, consult the troubleshooting section below.
...
Starting up ONOS and your data network
Info |
---|
title | Give your VM enough memory for ONOS! |
---|
|
ONOS java processes tend to consume a huge amount of memory. In order to run an ONOS cluster in a single VM, you should allocate a large amount of RAM to that VM. We recommend 2-4 GB (or more if you have it) for each ONOS node that you intend to run. You can see how much memory and CPU ONOS's java processes are using by running top - if you start using swap space, the performance of ONOS and Mininet will suffer greatly! |
...
cd ~/onos/tools/dev/mininet
sudo mn --custom onos.py --controller onos,1 --topo tree,2,2
(In this example, our "cluster" is a single node, but we will change that in a minute!)
You should see a bunch of output showing the startup of the control network and the data network.
...