Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deploying OpenDaylight in AWS

DZone's Guide to

Deploying OpenDaylight in AWS

OpenDaylight is easy enough to get set up in AWS, although you'll need to incorporate a few other assets like OpenJDK to get its features working just how you want them.

· Cloud Zone ·
Free Resource

Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

OpenDaylight (ODL) is an open source platform uniting the industry around a common SDN platform. ODL provides a flexible, common platform underpinning a wide breadth of applications and use cases, used as an SDN controller in on-premises setups. This blog outlines the steps to deploy OpenDaylight in AWS for training, exploration, and development purposes.

Provision a VM in AWS

  1. Create a security group (ODL-SG) and open Port 22, 8080.
  2. Create a Keypair.
  3. Launch an AWS EC2 instance using AMI (ami-efe09bf8 – Ubuntu 16.04 64-Bit) in the Virginia Region with the instance type T2.medium.
  4. Allocate an elastic IP.
  5. Associate the elastic IP to the VM.

Deploy OpenDaylight

  1. Access the VM using a terminal client
  2. OpenDaylight Controller is developed in Java and runs in a JVM. Hence we need to Install OpenJDK using the command: $ apt-get install openjdk-8-jdk
  3. Download the OpenDaylight Boron package from the distribution page.
  4. $ wget
    https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.5.3-Boron- SR3/distribution-karaf-0.5.3-Boron-SR3.tar.gz


  5. Install OpenDaylight. Uncompress it as root, and start OpenDaylight using the command:
  6. $ tar xvfz distribution-karaf-0.5.3-Boron-SR3.tar.gz
    $ cd distribution-karaf-0.5.3-Boron-SR3/
    $ ./bin/start 


    The start process will take a minimum of 3-5 minutes complete.

  7. Connect to Karaf Shell ($ ./bin/client). Now, you should be in OpenDaylight’s console. By default, the Karaf distribution has no features enabled. Hence we have to install all the basic and required features as below:
  8. opendaylight-user@root $> feature:install odl-base-all odl-aaa-authn odl-restconf
    odl-nsf-all
    odl-adsal-northbound odl-mdsal-apidocs odl-ovsdb-openstack 
    odl-ovsdb-northbound odldlux-
    Core 


    Once the installation is completed, you can log into the UI at http://:8080 with the username and password as ‘admin’. Now, the OpenDaylight Boron release is successfully installed in the VM instance.

  9. Mininet Installation
  10. $ apt-get update
    $ apt-get install mininet 


Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

Topics:
cloud ,opendaylight ,aws ,software defined networking

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}