Versions Compared

Key

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

...

If Mininet doesn't work, consult the troubleshooting section below.

Building ONOS

...

In order to run ONOS using onos.py, you will need a correctly built ONOS package in your VM.

We recommend sure building ONOS in your

...

Mininet VM or server using buck:

cd ~/onos
buck build onos

Make sure that the build completes without errors - without a correct correctly built ONOS package, you will not be able to start ONOS.
 

Info
titleLegacy build process using Maven

It's also possible to use the legacy mvn build process if absolutely necessary, by setting ONOS_TAR to point to the ONOS package:

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
# See below for more details on options for mn
sudo env ONOS_TAR=/tmp/onos-1.7.0.openflow.tar.gz mn --custom onos.py ...

Make sure that you use the correct ONOS_TAR file name for your version of ONOS. Also make sure that it is a gzip/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

A final alternative is to build elsewhere, copy the ONOS tar.gz file to your development VM, and set ONOS_TAR appropriately.

Starting up ONOS and your data network

...