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.
Join the DZone community and get the full member experience.Join For Free
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
- Create a security group (ODL-SG) and open Port 22, 8080.
- Create a Keypair.
- Launch an AWS EC2 instance using AMI (ami-efe09bf8 – Ubuntu 16.04 64-Bit) in the Virginia Region with the instance type T2.medium.
- Allocate an elastic IP.
- Associate the elastic IP to the VM.
- Access the VM using a terminal client
- 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
- Download the OpenDaylight Boron package from the distribution page.
- Install OpenDaylight. Uncompress it as root, and start OpenDaylight using the command:
- 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:
- Mininet Installation
$ 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
$ 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.
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.
$ apt-get update $ apt-get install mininet
Published at DZone with permission of Rathinasabapathy Arumugam, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.