Deploying Opendaylight in Amazon Web Services (AWS)

 In Opendaylight


The OpenDaylight (ODL) is one of the leading 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. Opendaylight is used as a SDN Controller in the On premises setup. This blog outlines steps for deploying Opendaylight in one of the leading cloud service provider AWS for Training, Exploration and development purposes

Provision VM in AWS

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

Deploy Opendaylight

  1. Access VM using terminal client
  2. OpenDaylight Controller is developed in Java and runs in a JVM. Hence we need to Install openjdk using the below command
    $ apt-get install openjdk-8-jdk
  3. Download Opendaylight Boron package from the opendaylight
    distribution page

    $ wget SR3/distribution-karaf-0.5.3-Boron-SR3.tar.gz

  4. Install OpenDaylight
    Uncompress it as root, and start OpenDaylight using the command below,

    $ tar xvfz distribution-karaf-0.5.3-Boron-SR3.tar.gz
    $ cd distribution-karaf-0.5.3-Boron-SR3/
    $ ./bin/start

    Start process would take minimum 3 to 5 minutes to get completed.

  5. 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 like below.

    [email protected] $> feature:install odl-base-all odl-aaa-authn odl-restconf
    odl-adsal-northbound odl-mdsal-apidocs odl-ovsdb-openstack
    odl-ovsdb-northbound odldlux-

    Once the installation is completed you can login to the UI with http://:8080 with username and password as ‘admin’

    Now, the opendaylight boron release is successfully installed in the VM instance.

  6. Mininet Installation

    $ apt-get update
    $ apt-get install mininet

    Simulate a sample network topology with the below command.

    $ sudo mn –controller=remote,ip=localhost,port=6633 –topo linear,4

    Once the mininet created the switches and hosts, you can type the below command and check the opendaylight UI to confirm the topology discovery.

    $ pingall

On demand provisioning with a time based access to Opendaylight on AWS is available through Cloudenabler’s ClaaS which can be used for Opendaylight training and learning.

Recommended Posts
  • Jasdeep

    I’m trying to install this however i get an error while installing features.
    Certain features you mentioned are not in the feature list.

    feature:install odl-base-all

    Can you help ?

Leave a Comment

Start typing and press Enter to search