How to configure ONOS

ONOS is a carrier-grade network operating system (OpenFlow controller). Here, I use the version 1.3 and the configurations below, worked for me.

Download ONOS
==============
$ cd ~; mkdir sdn; cd sdn
$ git clone -b onos-1.3 https://gerrit.onosproject.org/onos
 
Installation – Java, Maven, and Karaf
======================================
 
Maven and Karaf
 
$ cd ~/sdn
$ wget http://archive.apache.org/dist/karaf/3.0.3/apache-karaf-3.0.3.tar.gz
$ wget http://archive.apache.org/dist/maven/maven-3/3.3.1/binaries/apache-maven-3.3.1-bin.tar.gz
$ tar -zxvf apache-karaf-3.0.3.tar.gz -C ~/sdn
$ tar -zxvf apache-maven-3.3.1-bin.tar.gz -C ~/sdn
 
Oracle Java 8:
 
$ sudo apt-get install software-properties-common -y
$ sudo add-apt-repository ppa:webupd8team/java -y
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer oracle-java8-set-default -y
 
Setting Environment Variables (~/.bashrc). The environment variables can be optional (I’m not sure, but I confired such vars in the .bashrc).
 
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
export KARAF_ROOT=$HOME/sdn/apache-karaf-3.0.3
export M2_HOME=$HOME/sdn/apache-maven-3.3.1
 
 
Development Environment Setup (~/.bashrc)
=========================================
 
$ export ONOS_ROOT=$HOME/sdn/onos
$ source $ONOS_ROOT/tools/dev/bash_profile
 
 
Building and packaging ONOS 
============================
$ cd ~/sdn/onos
$ mvn clean install
 
Selecting IP address (~/.bashrc)
================================
Put your IP address. 
$ export ONOS_IP=A.B.C.D
  
Starting ONOS
============== 
$ ok clean # or onos-karaf
  
GUI: karaf/karaf
==================
 
http://<Your IP address>:8181/onos/ui/login.html
Advertisements

2 thoughts on “How to configure ONOS

    • Hi, good question! 🙂
      I’m actually not sure, but I think it’s possible to update existing packages by doing “mvn clean install” again. I once did it, and after that, when I was using ONOS GUI, I noticed that the floating panel of the right side was a little different. But I’m not sure if were just me that I didn’t notice it before.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s