ONOS SDN Controller – installation on Ubuntu Server 18.04 LTS.

ONOS (Open Network Operating System) is an open source SDN Controller; a SDN controller manages flow control on switches or routers, acting as a control plane.
Following, the installation procedure I used to install ONOS on a test VM.

For ease of installation, became root

sudo su -

Install Java

apt-get install openjdk-11-jdk

Download and install ONOS, add a dedicated user/group for the service and configure file permissions.

cd /opt
wget http://repo1.maven.org/maven2/org/onosproject/onos-releases/2.2.0/onos-2.2.0.tar.gz
tar zxf onos-2.2.0.tar.gz
ln -s onos-2.2.0 onos
adduser --system --shell /bin/bash \
  --gecos 'ONOS SDN Controller' --group \
  --disabled-password --no-create-home \
  --home /opt/onos onos
chown -R onos:onos onos onos-2.2.0
chmod og-w -R onos-2.2.0
rm onos-2.2.0.tar.gz

Edit /opt/onos/options to configure ONOS process user and group.


Configure ONOS to start as a service at system boot and start it.

ln -s /opt/onos/init/onos.service /lib/systemd/system/onos.service
ln -s /opt/onos/init/onos.initd /etc/init.d/onos
systemctl enable onos.service
systemctl start onos.service

Now you can connect to ONOS user interface at

Default login credentials are:

  • user: onos
  • password: rocks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.