ONOS atau Open Network Opetaring System adalah sebuah controller SDN sama seperti Opendaylight.
The Open Network Operating System (ONOS) is a software defined networking (SDN) OS for service providers that has scalability, high availability, high performance and abstractions to make it easy to create apps and services. The platform is based on a solid architecture and has quickly matured to be feature rich and production ready. The community has grown to include over 50 partners and collaborators that contribute to all aspects of the project including interesting use cases such as CORD. – onosproject.org
untuk memulai install onos ada beberapa yang harus diperhatikan diantaranya minimal hardwarenya adalah
- CPU = 2 core
- Ram = 2 GB
- HDD = 10 GB
- Nic = 1
untuk menginstall onos kita membutuhkan java8 dan maven, pertama install git terlebih dahulu
1 |
root@aio:~# apt install git |
kemudian install java 8
1 2 3 4 |
root@aio:~# apt install software-properties-common -y root@aio:~# add-apt-repository ppa:webupd8team/java -y root@aio:~# apt update root@aio:~# apt install oracle-java8-installer oracle-java8-set-default -y |
ketika proses installasi ada proses dialog, pilih yes utnuk accept licensi terms nya
kemudian clone repo onos di github
1 2 3 4 |
root@aio:~# cd ~ root@aio:~#git clone https://gerrit.onosproject.org/onos root@aio:~# cd onos/ root@aio:~/onos# git checkout onos-1.5 |
saran saya jangan gunakan yg master, karena ada errornya, mungkin karena branch master masih digunakan development software jadi masih ada bugs, cari saja yang sudah stable
kemudian download apache maven dan karaf
1 2 3 4 5 6 |
root@aio:~/onos# cd ~ root@aio:~# pwd #pastikan pwd di bawah direktori root root@aio:~# mkdir Downloads Applications root@aio:~# cd Downloads/ root@aio:~/Downloads# wget http://archive.apache.org/dist/karaf/3.0.5/apache-karaf-3.0.5.tar.gz root@aio:~/Downloads# wget http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz |
kemudian extrak file maven dan karaf ke folder Applications
1 2 |
root@aio:~/Downloads# tar -zxvf apache-karaf-3.0.5.tar.gz -C ../Applications/ root@aio:~/Downloads# tar -zxvf apache-maven-3.3.9-bin.tar.gz -C ../Applications/ |
kemudian edit karafnya
tambahkan script “mvn:org.onosproject/onos-features/1.5.0-SNAPSHOT/xml/features” pada bagian paling akhir pada featuresRepositories pada line 39
root@aio:~# nano Applications/apache-karaf-3.0.5/etc/org.apache.karaf.features.cfg
kemudian kita coba untuk compile ONOS
untuk melihat java home kita bisa mengunakan perintah env
1 2 |
root@aio:~# env | grep JAVA_HOME JAVA_HOME=/usr/lib/jvm/java-8-oracle |
kemudian kita harus menambahkan script pada ~/.bashrc padabagian paling bawah
1 2 3 4 5 6 7 8 9 |
root@aio:~# nano ~/.bashrc export ONOS_ROOT=~/onos source $ONOS_ROOT/tools/dev/bash_profile JAVA_HOME=/usr/lib/jvm/java-8-oracle export KARAF_ROOT=/root/Applications/apache-karaf-3.0.5 export M2_HOME=/root/Applications/apache-maven-3.3.9 export ONOS_USER=root export ONOS_GROUP=root export ONOS_IP=10.0.0.30 # ip nya onos |
kemudian dijalankan file .bashrcnya
1 |
root@aio:~# source ~/.bashrc |
setlah itu kita coba compile
1 |
root@aio:~/onos# mvn clean install |
tunggu hingga proses installasi selesai sampai ada “Build Success” kemudian setelah itu langsung saja jalankan onosnya
1 |
root@aio:~/onos# ok clean |
kemudian akses melalui GUI onos
akses http://ip-onos:8181/onos/ui/index.html , kemudian masukan username & password defaultnya (karaf:karaf) atatu (onos : rocks)
Dashboard onos
oke cukup sekian dulu, nanti kita coba untuk mengcontroller mininet mengunakan ONOS
wassalam….
System Engineer
Komentar