Installing Mininet, OpenDaylight and Open vSwitch
The easiest way to get started with a quick SDN lab image is using the Mininet image that is now managed by the ONLAB which is part of the ONRC. They do a nice job keeping the images maintained. Ideally the will incorporate ODL into the image soon since the ODL GUI is great for folks to get started with SDN.Download and Bring up Mininet
You can use your prefered hypervisor of choice to run the image. The Mininet guide has instructions for each. Download Mininet and get the image up and running with the following guide:Download and Get Started With Mininet
Open vSwitch should already be running when you boot mininet. You can stop and start the process with:
/etc/init.d/openvswitch-switch [start | stop | restart]
/etc/init.d/openvswitch-controller [start | stop | restart]Stop the controller if you are using ODL for control.
/etc/init.d/openvswitch-controller stopDownload and Start OpenDaylight
Performing the following will get OpenDaylight up and running on your mininet instance or you can run it on the host OS (or any other with IP connectivity). It is a simple two node network. If you run into issues head to the #opendaylight irc channel on irc.freenode.net. From Mininet run the following:
apt-get update
apt-get install maven git openjdk-7-jre openjdk-7-jdk unzip
wget https://jenkins.opendaylight.org/controller/job/controller-merge/lastSuccessfulBuild/artifact/opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage.zip
unzip distribution.opendaylight-osgipackage.zip
cd opendaylight
##Add to ~/.bashrc for persistence through a reboot##
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
./run.sh
### Then go to http://:8080 ###
### On Mininet ###
mn --controller=remote,ip= --topo=linear,2 --listenport=6633
### Example ###
mn --controller=remote,ip=192.168.254.128 --topo=linear,2 --listenport=6633Upgrade Open vSwitch to v2.0
If you want to upgrade the Mininet OVS instance to the latest v2.0 you can pull from the following repo.sudo apt-get install python-software-properties software-properties-common
sudo add-apt-repository ppa:mighost/ppa
sudo apt-get update
/etc/init.d/openvswitch-switch stop
/etc/init.d/openvswitch-controller stop
sudo apt-get install openvswitch-common openvswitch-datapath-dkms openvswitch-switch
/etc/init.d/openvswitch-switch startFor a more advanced tutorial and topologies see the following link:
OpenDaylight Controller with Mininet
A nice video by James Ahn is at the following: Youtube Installation Instructions
If you want to ssh to the host and run Wireshark you need to have X enabled in the SSH session. On a MAC until Wireshark fully evacuates QT use XQuartz.
ssh -XY
sudo wireshark
Install a Linux GUI
Install LightDM or Gnomae Desktop if you want a GUI If you want a GUI either of the following will install a stripped down build (no office etc).apt-get no-install-recommends install ubuntu-desktop
### Or Gnome ###
sudo apt-get install gnome-core
A simple remote remote desktop application is XRDP. For installation instructions see this post here.
ONLab Chat with ODL
The ONLAB recently presented their work to the Technical Work Stream OpenDaylight call that is open to anyone along with the TSC weekly call. Take a look at the recording if interested. They are doing some interesting stuff with network topologies and also expanding Mininet to a multi-node distribution.
OpenDaylight Tech Work Stream (See the September 30, 2013 meeting Recording at the Bottom)
Update: I ran into a nice, relatively new blog that had a nice post with a clear custom topology explanation and other good hands on posts:
Tools used with Opendaylight - Sreenivas Makam’s Blog
Thanks and happy hacking!