Till KTH:s startsida Till KTH:s startsida

Ändringar mellan två versioner

Här visas ändringar i "Mininet + ODL + OpenStack Installation Guide" mellan 2014-09-03 21:10 av Epameinondas Kontothanasis och 2014-09-13 00:22 av Sikandar Khan.

OpenFlowMininet + ODL + OpenStack Installation Guide

Installation Guide Prepared by: Ganapathy Raman Mininet Installation (with the Stanford Topology):
* Download the Mininet VM image from the below link:
https://github.com/mininet/mininet/wiki/Mininet-VM-Images¶

* This will download as a zip file. Extract the zip file and double include .ova file.
* Now it will be opened in VMware.
* Temporarily under Settings à Network, select “Bridge Network”.
* Also create a secondary adapter and make the network setting to “Host-Only-Networks”
* Finish your initial setup and boot the Ubuntu 14.04 Mininet.
* Boot the image and Log in using credentials mininet/mininet
* To assign ip to the interface, use the command “dhclient <ifname>”
* 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:~$ ¶


* Check you have the internet connectivity using ping
* . 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 * 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! ¶

* Before starting the Stanford Mininet topology, do the following steps
* Goto the VM which is acting as the ODL controller, and check its hostname
* 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¶

* Now to run the Stanford topology, by the following command
sudo python mininet_builder.py –c <hostname-of-the-odl-controller> * 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.
* This is a good reference guide http://mininet.org/walkthrough/. Try the various commands mentioned here.


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


OpenDayLight¶



* Go to the folder odl/opendaylight
* Move to the folder “configuration”.
* Edit the configuration file “tomcat-server.xml”
* 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” ¶


* Save the changes and now start the ODL controller using the command
* Start the ODL controller using the command
sudo ./run.sh –XX:MaxPermSize=348m –virt ovsdb –of13 * 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¶

* Now login with the credentials admin/admin


OpenStack¶

* Open another terminal
* Now go back to the root folder
[odl@fedora-odl-1]# cd¶

* Copy the file local.conf.control to devstack/local.conf
[odl@fedora-odl-1]# cp local.conf.control devstack/local.conf * Now move to folder devstack
[odl@fedora-odl-1]# cd devstack * Edit the local.conf
* 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¶




* Now the save and exit the file



* Now to start the OpenStack controller type following command


* [odl@fedora-odl-1]# ./stack.sh
* You will be prompted for various passwords. Simply type any password. For consistency, type as “admin” to all passwords.
* 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”¶

* Open a browser and just type the IP. Default is port 80. So need to specify any port number.
* Login with the credentials username: admin (or) demo.
Password can be either: admin (or) openstack.¶