Till KTH:s startsida Till KTH:s startsida

Mininet + ODL + OpenStack Installation Guide

Installation Guide

Prepared by: Ganapathy Raman

Mininet Installation (with the Stanford Topology):

  1.       Download the Mininet VM image from the below link:

                 https://github.com/mininet/mininet/wiki/Mininet-VM-Images

  1.       This will download as a zip file. Extract the zip file and double include .ova file.
  1.       Now it will be opened in VMware.
  1.       Temporarily under Settings à Network, select “Bridge Network”.
  1.       Also create a secondary adapter and make the network setting to “Host-Only-Networks”
  1.       Finish your initial setup and boot the Ubuntu 14.04 Mininet.
  1.       Boot the image and Log in using credentials mininet/mininet
  1.       To assign ip to the interface, use the command “dhclient <ifname>”
  1.       On boot up, by default the ovsdb-server and ovs-vswitchd will automatically up and running. You can verify this using the command

mininet@mininet-vm:~$ ps ax | grep ovs

  985 ?        S<     0:00 ovsdb-server: monitoring pid 986 (healthy)
  986 ?        S<s    0:05 ovsdb-server /var/lib/openvswitch/conf.db -vANY:CONSOLE:EMER -vANY:SYSLOG:ERR -vANY:FILE:INFO --remote=punix:/var/r
  994 ?        S<     0:00 ovs-vswitchd: monitoring pid 995 (healthy)
  995 ?        S<Ls   0:00 ovs-vswitchd unix:/var/run/openvswitch/db.sock -vANY:CONSOLE:EMER -vANY:SYSLOG:ERR -vANY:FILE:INFO --mlockall --nor
 1303 pts/0    S+     0:00 grep --color=auto ovs
mininet@mininet-vm:~$

 

  1.   Check you have the internet connectivity using ping
  2. .  Now download the Stanford Topology using the below link from the CLI
git clone https://bitbucket.org/peymank/hassel-public.git
cd hassel-public/mininet
  1.   No open the file mininet_builder.py and do the following

Open the file, search and modify the following words

add_switch to addSwitch

add_host to addHost

add_Link to addLink

Save and close

vi mninet_builder.py
<press Esc button>
%s/add_switch/addSwitch/g
%s/add_host/addHost/g
%s/add_Link/addLink/g
<press Esc button>
:wq!

 

  1.   Before starting the Stanford Mininet topology, do the following steps
  1.   Goto the VM which is acting as the ODL controller, and check its hostname
  1.   Type the following command “hostname” on the CLI, you should see something like this
[odl@odl]# hostname
fedora-odl-1

             fedora-odl-1 is the hostname

  1.   Now to run the Stanford topology, by the following command
sudo python mininet_builder.py –c <hostname-of-the-odl-controller>
  1.   Now how you should be able to see the node starting up and once all the node has started, you will be dropped into Mininet CLI.
  2.   This is a good reference guide http://mininet.org/walkthrough/. Try the various commands mentioned here.

 

OpenDayLight and OpenStack Installation

  1.       Download the VM image (Fedora20) from https://wiki.opendaylight.org/images/HostedFiles/OpenDaylight_DevStack_Fedora20.ova
  1.       Now install the VM in your VirtualBox or VMware Manager.
  1.       Boot the Fedora20 image.
  1.       Login with credentials odl/odl
  1.       Hope you will be able to assign IP address by yourself.

 

OpenDayLight

 

  1.       Go to the folder odl/opendaylight
  1.       Move to the folder “configuration”.
  1.       Edit the configuration file “tomcat-server.xml”
  1.       Change the the port number from 8080 to 8081 on the following lines
<Service name=”Catalina>
   <Connector port=”8080” protocol=HTTP/1.1”
                   (to)
 <Service name=”Catalina>
   <Connector port=”8081” protocol=HTTP/1.1”

 

  1.   Save the changes and now start the ODL controller using the command

  2.    Start the ODL controller using the command
sudo ./run.sh –XX:MaxPermSize=348m –virt ovsdb –of13
  1.   Now you will see many logs. Finally once the controller starts, open the browser and type following address

http://<ip-address-of-the-odl-controller>:8081

  1.   Now login with the credentials admin/admin

 

OpenStack

  1.   Open another terminal
  2.   Now go back to the root folder

[odl@fedora-odl-1]# cd

  1.   Copy the file local.conf.control to devstack/local.conf
[odl@fedora-odl-1]# cp local.conf.control devstack/local.conf
  1.   Now move to folder devstack
[odl@fedora-odl-1]# cd devstack
  1.   Edit the local.conf
  2.   Assign a variable

IP_ADDR = <your-vm-ip.address/the-controller-ip-address>

Now replace the word “<IP-ADDRESS-OF-OPENSTACK-CONTROL>” with “IP_ADDR”

Eg:

IP_ADDR = 192.168.1.2

VNCSERVER_PROXYCLIENT_ADDRESS=<IP-ADDRESS-OF-OPENSTACK-CONTROL>

                               (Replace as)

VNCSERVER_PROXYCLIENT_ADDRESS=IP_ADDR

 

  1.   Now the save and exit the file

 

  1.   Now to start the OpenStack controller type following command

 

  1.   [odl@fedora-odl-1]# ./stack.sh
  2.   You will be prompted for various passwords. Simply type any password. For consistency, type as “admin” to all passwords.
  3.   Setup will progress and once the setup completes. You can see a message like

“Now your controller is running at IP: x.x.x.x”

  1.   Open a browser and just type the IP. Default is port 80. So need to specify any port number.
  2.   Login with the credentials username: admin (or) demo.

Password can be either: admin (or) openstack.