Hardware requirements are difficult to define, since they can depend by many factors, including the cluster size, the managed network size, the number of messages exchanged with network devices, and so on.
However, we feel confident to say that for a basic execution environment, the following minimum requirements should be satisfied:
2 core CPU
2 GB RAM
10 GB hdd
1 NIC (any speed)
Recent efforts have made it possible to install and run ONOS without the need for Internet connectivity. However, Internet connectivity is a necessary when pre-required software needs to be installed, or when ONOS packages need to be downloaded. Often on the mailing list, installation or execution problems are reported due to lack of Internet connectivity. Despite the community efforts to run ONOS with no need for an Internet connection, this can be caused by external factors. For these reasons Internet connectivity is not mandatory, but strongly suggested where possible on both management and target machines.
For target machines
Target machines that are part of the same cluster are required to be able to communicate together at the IP layer (to confirm this, you should be able to ping all machines of the cluster from every other machine).
For management machines
If the management machine needs to be able to operate target machines remotely, it needs to be able to communicate with all of them at the IP layer (to verify this, before starting you should be able to ping all machines in the cluster from the management machine).
ONOS requires the following ports to be open, in order to make the corresponding functionalities available:
8181 for REST API and GUI
8101 to access the ONOS CLI
9876 for intra-cluster communication (communication between target machines)
6653 optional, for OpenFlow
6640 optional, for OVSDB
Environment and software requirements
Following is a list of things that need to be installed and configured on your OS before moving forward with the ONOS installation. All commands below are valid for Ubuntu 16.04 LTS. You can Google their equivalent for other OSes.
Like any other production service, ONOS shouldn’t be run as root. Scripts used to run ONOS as a service (used after in the installation process) require a special unprivileged user (often user 'sdn') configured in the system. The following snippet will allow you to create an sdn user and assign it to an sdn group in one step:
ONOS is a Java based platform. It’s strongly suggested to use Oracle Java 1.8 for it. The following snippet will allow you to install Java 1.8 in one step on an Ubuntu machine.
Since Oracle had an license update on April 16 2019, anyone who want to download java8 has to register account, the apt methods of installing will not work.
Go to Oracle JDK download website, login and download the tar ball : jdk-8uxxx-linux-x64.tar.gz