Update: There was a small bug in the Open function when loading OF versions.  It has been fixed and I have replaced the old with the fixed version.


Time for another increment to MiniEdit.  Complete change list is:

  • Hosts
    • Set Hostname
    • Set Static IP Address.  Overrides Mininet auto IP allocation.
  • Switches
    • Set Hostname
    • Set DPID
    • Set DPCTL listen port. addSwitch(listenPort=6634)
  • Preferences
    • Support for choosing OpenFlow 1.1 if you have Open vSwitch 2.0+
    • Set global level DPCTL incremental port. Mininet(listenPort=6634)
  • Other
    • Popup menu items on host, switch, and link are context with whether Mininet is running

Download MiniEdit here.


Upgrading Open vSwitch for Mininet in Fedora

Well, I took Bob’s challenge from the Mininet mailing list to try and figure out how to upgrade Open vSwtich in Fedora.  It was interesting since I hadn’t used Fedora in quite a while.  So I downloaded Fedora 19 ISO x86_64 and created a VM.  So my test was to install the same OVS version I did on the Ubuntu steps.  One thing I found out, was that when I ran the Mininet installer, Open vSwtich 1.11.0 got installed, which is the latest.  Now this might be different if you have a different version of Fedora.  But to do my test, I’ll replace it anyway with 1.10.0.  So here are the steps to upgrade (or downgrade) your Open vSwtich on Fedora.

BTW, I won’t list the steps for creating the VM.  This assumes you have the VM and you ran the Mininet installer following the instructions for Fedora in the Mininet INSTALL file.

Become root:
sudo -s

Remove old Open vSwtich:
yum -y erase openvswitch openvswitch-controller

Download the new Open vSwtich source tarball:
yum -y install wget
cd /root
mkdir /root/rpmbuild/SOURCES/
cp openvswitch-1.10.0.tar.gz /root/rpmbuild/SOURCES/
tar zxvf openvswitch-1.10.0.tar.gz
cd openvswitch-1.10.0

Install all the dependencies that will be needed:
yum -y install rpm-build openssl-devel

Build the Debian packages:
rpmbuild -bb rhel/openvswitch-fedora.spec

Install the packages:
rpm -ivh /root/rpmbuild/RPMS/x86_64/openvswitch*.rpm

Then do some post install steps to keep the Open vSwitch Controller from starting automatically on boot:
systemctl restart openvswitch

There you go.

This post ‘Upgrading Open vSwitch for Mininet in Fedora’ first appeared on

Upgrade Ubuntu Open vSwitch using packages in Mininet VM

Update: I’m updating this post with a few improvements and also changing the Open vSwitch version to 2.0.


In a previous post, I provided some instructions on how to upgrade Open vSwitch in the Mininet VM.  Since then, I have been doing the same in my VMs over and over and have slowly been optimizing the steps to do it.  So lately, I tried to figure out how to actually do the upgrade by building Debian install packages to install Open vSwitch instead of building and installing binaries directly.  The main advantage of building and installing deb packages is that you can easily upgrade over and over.

The next steps will be to upgrade the Open vSwitch that gets installed by Mininet, which in this case was Open vSwtich version 1.4.0.  I want to upgrade it to 2.0.0.  The following should be the cut and paste instructions for upgrading using built packages.

Remove old Open vSwtich:
sudo apt-get remove openvswitch-common openvswitch-datapath-dkms openvswitch-controller openvswitch-pki openvswitch-switch

Download the new Open vSwtich source tarball:
mkdir openvswitch
cd openvswitch
tar zxvf openvswitch-2.0.0.tar.gz
cd openvswitch-2.0.0

Install all the dependencies that will be needed:
sudo apt-get update
sudo apt-get -y install build-essential fakeroot debhelper autoconf automake libssl-dev pkg-config bzip2 openssl python-all procps python-qt4 python-zopeinterface python-twisted-conch

Build the Debian packages:
DEB_BUILD_OPTIONS='parallel=2 nocheck' fakeroot debian/rules binary

Install the packages:
cd ..
dpkg -i openvswitch-common*.deb openvswitch-datapath-dkms*.deb openvswitch-controller*.deb openvswitch-pki*.deb openvswitch-switch*.deb

Then do some post install steps to keep the Open vSwitch Controller from starting automatically on boot:
sudo /etc/init.d/openvswitch-controller stop
sudo update-rc.d openvswitch-controller disable
sudo /etc/init.d/openvswitch-switch start

That’s it.  I feel better about these instructions because you can keep using the same steps over and over to upgrade to the latest version of Open vSwitch.  You would only need to change the “Download” step to get the version you want.

This post ‘Another way to upgrade Open vSwitch in Mininet VM’ first appeared on