Building mininet virtual machine

Gratitude

Before you read further, please take a moment and thank Bob Lantz who made this nice piece of software called “mininet” – Imagine how hard it would have been to develop and test network virtualization applications if not for the efforts of Bob!

Action!

Create virtual machine with 1 gb RAM, 8 Gb harddisk, 2 network interfaces and use Ubuntu 14.04 minimal iso to install Linux. Take the most default route, do not select any packages for installation for now. After the virtual machine is created, reboot, login and run the following commands:

  1. sudo apt-get update
  2. sudo apt-get install xterm git-core
  3. git clone https://github.com/mininet/mininet.git mininet
  4. cd mininet
  5. git checkout 2.1.0
  6. sudo ./mininet/util/install.sh -nv
  7. sudo reboot

At the end of this process you will have a virtual machine which is loaded with mininet and Open vSwitch version 1.4.6. These are two basic things you need to emulate your network topologies.

If you would like to install the bleeding edge version of Open vSwitch (perhaps want to try mpls related Open Flow actions), please proceed to – Installing Open vSwitch for use by mininet

  1. sudo apt-get install autoconf libtool
  2. git clone https://github.com/openvswitch/ovs ovs
  3. cd ovs
  4. ./boot.sh
  5. ./configure –prefix=/usr –localstatedir=/var –with-linux=/lib/modules/`modules -r`/build
  6. make
  7. sudo make install
  8. sudo make modules_install
  9. ovs-vsctl -V to see if the version number of ovs is updated
  10. reboot

 

Leave a Reply