OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
Appendix E - OpenDaylight HOWTO


OpenDaylight controller is open-source software that runs in a Java Virtual Machine (JVM). It can be deployed on any machine that supports Java. OpenDaylight requires JVM 1.7+ to run.

For more information please visit: https://www.opendaylight.org

Prerequisites

(for Debian-based distributions)

sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk

Update JAVA_HOME variable in the environment (.bashrc)

e.g., export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-i386

OpenDaylight source code is compiled using Apache Maven build tool. If opting to build the OpenDaylight source code, download the Maven source code and install. Alternatively, install OpenDaylight by downloading the distribution Karaf per the instructions further below.

sudo mkdir -p /usr/local/apache-maven
wget http://ftp.wayne.edu/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
sudo mkdir /usr/local/apache-maven
sudo mv apache-maven-3.3.3-bin.tar.gz /usr/local/apache-maven
sudo tar -xzvf /usr/local/apache-maven/apache-maven-3.3.3-bin.tar.gz -C /usr/local/apache-maven/
sudo update-alternatives --install /usr/bin/mvn mvn /usr/local/apache-maven/apache-maven-3.3.3/bin/mvn 1
sudo update-alternatives --config mvn
Add these to ~/.bashrc
export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.3
export MAVEN_OPTS="-Xms256m -Xmx512m"

Installation

OpenDaylight Controller with OpenFlow 1.3 plugin can be run in two ways, namely, using the integration project or openflowplugin project. The instructions for the integration project are described below. For more information please visit: https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin::Running_controller_with_the_new_OF_plugin

Download the integration Karaf distribution by selecting the desired stable release version available at https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/

Unzip the distribution file and run

tar -xzvf distribution-karaf-<stable-release-version-selected>.tar.gz
e.g., tar -xzvf distribution-karaf-0.2.3-Helium-SR3.tar.gz
cd distribution-karaf-0.2.3-Helium-SR3/bin
./karaf

or Build and run

sudo apt-get install git
git clone https://github.com/opendaylight/integration.git
wget https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml
mkdir ~/.m2
cp settings.xml ~/.m2
cd integration
mvn clean install -DskipTests
cd distributions/karaf/target/assembly/bin
./karaf

After executing "./karaf", the controller starts the OSGI interface, where desired plugins can be installed.

feature:install odl-restconf odl-l2switch-switch odl-openflowplugin-all odl-mdsal-apidocs odl-dlux-all odl-adsal-northbound

To open OpenDaylight web interface:

http://<host-ip>:8181/dlux/index.html

For more information please visit: https://wiki.opendaylight.org/view/Install_On_Ubuntu_14.04