This document describes how to use Open vSwitch with the Kernel-based
Virtual Machine (KVM). This document assumes that you have read and
-followed INSTALL.Linux to get Open vSwitch setup on your Linux system
+followed INSTALL to get Open vSwitch setup on your Linux system.
Setup
-----
-First, follow the setup instructions in INSTALL.Linux to get a working
+First, follow the setup instructions in INSTALL to get a working
Open vSwitch installation.
KVM uses tunctl to handle various bridging modes, which you can
Create the following two files and store them in known locations.
-For example /etc/ovs-ifup and /etc/ifdown
+For example /etc/ovs-ifup and /etc/ovs-ifdown
/etc/ovs-ifup
--------------------------------------------------------------------
ovs-vsctl del-port ${switch} $1
--------------------------------------------------------------------
-At the end of INSTALL.Linux, it describes basic usage of creating
+At the end of INSTALL, it describes basic usage of creating
bridges and ports. If you haven't already, create a bridge named
br0 with the following command:
Next, we'll start a guest that will use our ifup and ifdown scripts.
- % kvm -m 512 -net nic,maddr=00:11:22:EE:EE:EE -net \
+ % kvm -m 512 -net nic,macaddr=00:11:22:EE:EE:EE -net \
tap,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -drive \
file=/path/to/disk-image,boot=on
To get some more information and for debugging you can use Open
vSwitch utilities such as ovs-dpctl and ovs-ofctl, For example:
- % ovs-dpctl show br0
+ % ovs-dpctl show
% ovs-ofctl show br0
You should see tap devices for each KVM guest added as ports to