Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First, make sure that you have built ONOS in your Mininet VM or server using buck:

cd ~/onos
buck build onos
Info
titleLegacy build process using Maven

It's also possible to use the legacy mvn build process if absolutely necessary:

 
cd ~/onos
mvn clean install  # or mci for short; needs to complete without errors
onos-package  # once again, needs to complete without errors
cd ~/onos/tools/dev/mininet
sudo env ONOS_TAR=/tmp/onos-1.7.0.openflow.tar.gz mn --custom onos.py --controller onos,1 ...

Make sure that you use the correct ONOS_TAR file name for your version of ONOS. Also make sure that it is a tar archive:


sudo file /tmp/onos-1.7.0.openflow.tar.gz
/tmp/onos-1.7.0.openflow.tar.gz: gzip compressed data, from Unix, last modified: Thu Jun  2 15:08:11 2016

 

Next, use Mininet and onos.py to start up a virtual ONOS cluster and data network:

...