Installing Open vSwitch with KVM

Installing Open vSwitch with KVM

Installing Open vSwitch with KVM

This tutorial is for installing Open vSwitch with KVM in order to replace traditional hypervisor Ethernet switching using Linux bridging with Open vSwitch.


Installing Open vSwitch on Ubuntu with KVM

I rebuilt this box becuase as fun as it was to setup OpenStack (I think) there are a million modules that would take more time to clip out rather than just rebuilding. Anyone gotten Nova integrated into Open vSwitch yet? That will be a great marriage for nailing up cloud nodes through tunnels dynamically. I expect Open vSwitch to be an important not just to Vmware moving forward with software defined networking but more importantly setting a trend for open source software (OSS) project in networking.

Pulled some deps for some other things but here is history.

Basically just my bash history.

Check for loaded ovs module

Start OpenvSwitch

Configure a bridge and add eth0 to the new bridge. Think locally significant Vlans.

Change your eth0 IP to your new br0 interface.

Outside interface is now your br0.

These two scripts bring up the KVM Tap interfaces into your
bridge from the CLI.

Here are some KVM examples. Starting with the CD is easiest.
No build needed for testing.


OS Install

CD Boot

Make an Image from CD

Somewhere a VM if broken on the spinup will still allocate a tap.

Installing Open vSwitch with KVM Errors

If you get this kvm: -net tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown: Device ‘tap’ could not be initialized
Just delete the tap0. Need to dig into a work around cleaner than scripts.
ovs-vsctl del-port tap0

Thanks for stopping by