Beryllium ODL SDN Controller Installation

Let us install the Beryllium ODL SDN Controller . In my SDN lab setup I have 3 Dell servers , One Vcenter and a Windows Domain controller ADS.

There are 5virtual machines spinning 3 Controllers (Brocade , HP VAN and Opendaylight) and 2 Openflow simulators Mininet and Estinet. We start installing the Beryllium ODL SDN Controller on server Saraswati having IP address 192.168.0.75.

 

sdn_lab

 

 

The installation has 3 steps.

  1. Creating Virtual machines.
  2. Preparing Linux Operating system.
  3. Installing and configuring Beryllium ODL SDN Controller .

Creating Virtual machines.

  1. Create a Virtual machine.

01

 

2)

2

 

3)

3

 

4) Select the drive.

4

5) Choose the Linux Operating System as UBUNTU 64bit

5

 

6) Chhose the NIC as standard Intel E1000 and click “Connect at Power On”

6

 

7) Choose provisioning policy as “Thick Provision Lazy Zeroed”

7

 

8) Click on Ëdit VM Setting”and go next

8

 

9) Keep the memory size to 6GB.

9

 

10) Choose the UBUNTU OS installable from Datastore for the OS Installation source. This installable file was earlier copied to Datastore.

10

Preparing Linux Operating system by installing OS and the required packages

11) The OS starts booting from the file sources choose the desirable options.

11

12)

12

 

13)

 

13

14)

14

 

15)

15

 

16)

16

 

17) Provide the hostname

17

 

18)

18

 

19)

19

 

20)

20

 

21) Create the partitions

21

 

22)

22

 

23)

23

 

24)

24

 

25)

 

25

 

26)

26

 

27)

 

27

 

28)

28

 

29)

29

 

30)

 

30

 

31)

32

 

32)

32

33)

33

 

34)

34

 

35)

35

 

36)

36

 

37)

37

 

38)

38

 

39) Assign the static IP address by editing /etc/network/interfaces.d. This IP address will be the ODL controller access IP.

 

39

 

40)

40

41) Cross verify the address change. in this case its static 192.168.0.78. Check that the VM has a direct Internet connectivity for downloading packages and Plugins.

41

ranjeet@odl:~$ cat /etc/network/interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

 

source /etc/network/interfaces.d/*

 

# The loopback network interface

auto lo

iface lo inet loopback

 

# The primary network interface

auto ens32

iface ens32 inet dhcp

 

#iface ens32 inet dhcp

iface ens32 inet static

address 192.168.0.78

gateway 192.168.0.1

netmask 255.255.255.0

network 192.168.0.0

broadcast 192.168.0.255

 

42) Install the default-jre-headless using the command

sudo apt-get install default-jre-headless

42

43) sudo apt-get install openjdk-8-jdk

43

 

44)

44

 

45)

45

46) Install the MAVEN

46

Installing and configuring Beryllium ODL SDN Controller

 

47) Download the Karaff by this command.

sudo wget  https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.4.0-Beryllium/distribution-karaf-0.4.0-Beryllium.tar.gz

47

 

48)

48

49) Verify the JAVA version

ranjeet@odl:~$ java -version

openjdk version “1.8.0_111”

OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.10.2-b14)

OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

ranjeet@odl:~$

50) Configure JAVA_HOME using the following export command.

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64

51) Edit the .profile and add following entry into it

JAVA_HOME=:/usr/lib/jvm/java-1.8.0-openjdk-amd64

52)

# ~/.profile: executed by the command interpreter for login shells.

# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login

# exists.

# see /usr/share/doc/bash/examples/startup-files for examples.

# the files are located in the bash-doc package.

 

# the default umask is set in /etc/profile; for setting the umask

# for ssh logins, install and configure the libpam-umask package.

#umask 022

 

# if running bash

if [ -n “$BASH_VERSION” ]; then

# include .bashrc if it exists

if [ -f “$HOME/.bashrc” ]; then

. “$HOME/.bashrc”

fi

fi

# set PATH so it includes user’s private bin directories

PATH=”$HOME/bin:$HOME/.local/bin:$PATH”

JAVA_HOME=:/usr/lib/jvm/java-1.8.0-openjdk-amd64

53)

49

54) Bringupthe Controller with the command  sudo ./distribution-karaf-0.4.0-Beryllium/bin/karaf

50

Install the featureset

feature:install odl-restconf odl-mdsal-apidocs odl-dlux-all feature:install odl-vtn-manager-rest

55)

51

 

56)Verify that ODL is listening onport 6633.

ranjeet@odl:~$ netstat -an | grep 6633

tcp6       0      0 :::6633                 :::*                    LISTEN

ranjeet@odl:~$

Access the controller usig the URL http://serverip:8181/index.html#/login, in this case http://192.168.0.78:8181/index.html#/login

52

 

57) Enter the default credentials as Admin/admin

53

 

58)

54

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *