Rapid development environment to build SDN: ONOS development environment

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/zhanghaishan/article/details/52127614

Preface:

Recently the company projects need to be developed ONOS, then took the point in time build ONOS, spent three days and finally found a can without effort to build a good ONOS or OpenDaylight development environment.


Ready to work:

Build a good seal is used VirtualBox virtual machine on SDNHUB (virtual machine account password on the page), download address is: http: //sdnhub.org/tutorials/sdn-tutorial-vm/

The virtual machine comes with a complete development environment:

SDN Controllers: OpenDaylight, ONOS, RYU, Floodlight, Floodlight-OF1.3, POX, and Trema
Example code for a hub, L2 learning switch, traffic tap, and other applications
Open vSwitch 2.3.0 with support for Openflow 1.2, 1.3 and 1.4, and LINC switch
Mininet to create and run example topologies
Pyretic
Wireshark 1.12.1 with native support for OpenFlow parsing
JDK 1.8, Eclipse Luna, and Maven 3.3.3 

Build ONOS original (this little problem on the original): http: //sdnhub.org/tutorials/onos/

Depending on your system, download and install VirtualBox is good, and the sealed VirtualBox virtual machines into VirtualBox in and run.


He began to build:

1: In the first start, the default browser and Firefox will open a terminal, and you will be prompted (No I and my colleagues have chosen) whether to update the system.

2: the input terminal (since the directory directly onos ~ / down, and so open a terminal directly enter the following command):

$ Cd Ann
$ source ./tools/dev/bash_profile 
$ Echo $ KARAF_ROOT
$ mvn clean install -nsu -DskipIT -DskipTests

3 :( Please Step 3 and Step 4 to read together) on SDNHUB original, the next should be executed: $ karaf clean, but I told my colleagues ONOS after the execution is to start, but it WEB end the following problems:

4 : solution: Do $ karaf clean, read:

$ onos-setup-karaf clean
$ ok clean

Then open http: // localhost: 8181 / onos / ui / index.html, you can be a normal visit. PS: I met this enter the account password, the account password here is the account password system, others did not encounter.

5: The system comes with Eclipse, is under development.


This END

I hope to help you.

Guess you like

Origin blog.csdn.net/zhanghaishan/article/details/52127614