X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=INSTALL.Libvirt;fp=INSTALL.Libvirt;h=4f31831381efd305bd51520bd831875f0f232285;hb=8a984481b76e5f46a84eafdaa065a2984ea8d2fb;hp=0000000000000000000000000000000000000000;hpb=200940deb7c85de7afe3e52edabf574088ac01e3;p=sliver-openvswitch.git diff --git a/INSTALL.Libvirt b/INSTALL.Libvirt new file mode 100644 index 000000000..4f3183138 --- /dev/null +++ b/INSTALL.Libvirt @@ -0,0 +1,72 @@ + How to Use Open vSwitch with Libvirt + ==================================== + +This document describes how to use Open vSwitch with Libvirt 0.9.11 or +later. The Open vSwitch support in Libvirt 0.9.11 eliminates the need to +use OVS Linux Bridge compatibility layer (brcompatd) and interface up/down +scripts. This document assumes that you followed INSTALL.Linux or installed +Open vSwitch from distribution packaging such as a .deb or .rpm. The Open +vSwitch support is included by default in Libvirt 0.9.11. Consult +www.libvirt.org for instructions on how to build the latest Libvirt, if your +Linux distribution by default comes with an older Libvirt release. + +Limitations +----------- +Currently there is no Open vSwitch support for networks that are managed +by libvirt (e.g. NAT). As of now, only bridged networks are supported (those +where the user has to manually create the bridge). + +Setup +----- + +First, create the Open vSwitch bridge by using the ovs-vsctl utility (this +must be done with administrative privileges): + + % ovs-vsctl add-br ovsbr + +Once that is done, create a VM, if necessary, and edit its Domain XML file: + + % virsh edit + +Lookup in the Domain XML file the section. There should be one +such XML section for each interface the VM has. + + ... + + + +
+ + ... + +And change it to something like this: + + ... + + + + +
+ + ... + +The interface type must be set to "bridge". The XML element +specifies to which bridge this interface will be attached to. The + element indicates that the bridge in element is an +Open vSwitch bridge. + +Then (re)start the VM and verify if the guest's vnet interface is attached to +the ovsbr bridge. + + % ovs-vsctl show + +Troubleshooting +--------------- +If the VM does not want to start, then try to run the libvirtd process either +from the terminal, so that all errors are printed in console, or inspect +Libvirt/Open vSwitch log files for possible root cause. + +Bug Reporting +------------- + +Please report problems to bugs@openvswitch.org.