<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Thu, 22 Mar 2012 15:11:44 -0400<br>> From: laine@laine.org<br>> To: libvir-list@redhat.com<br>> Subject: Re: [libvirt] Problem with Open vSwitch and dnsmasq<br>> <br>> On 03/22/2012 09:10 AM, Daniele Milani wrote:<br>> > Dear all,<br>> > I have the following situation:<br>> > -I replaced the standard bridge driver with the Open VSwitch one;<br>> <br>> I'm curious what you mean by this.<br>> <br>> libvirt's virtual networks currently only support the standard linux<br>> bridge device. There is no code in libvirt to use openvswitch devices<br>> for libvirt's virtual networks. The openvswitch support in libvirt only<br>> applies to guest devices that use <interface type='bridge'>.<br>> <br>> >From your message, it sounds like there is a driver that that replaces<br>> the linux host bridge driver with something that emulates that driver,<br>> but is actually an openvswitch bridge on the backend. I hadn't<br>> previously heard of this.<br>> </div><div>I did it by installing Open vSwitch with kernel modules:</div><div><br></div><div><pre style="word-wrap: break-word; white-space: pre-wrap; "> % ./configure --with-linux=/lib/modules/`uname -r`/build</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">
<span style="font-family: Tahoma; white-space: normal; ">after that I replaced the standard linux bridge driver by executing:</span>
</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">% rmmod bridge
<pre style="word-wrap: break-word; white-space: pre-wrap; ">% insmod datapath/linux/brcompat.ko</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">% ovs-brcompatd --pidfile --detach</pre></pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">you can find all this information at:</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">
<a href="http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD">http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD</a>
</pre><pre style="word-wrap: break-word; white-space: pre-wrap; "><a href="http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.bridge;hb=HEAD">http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.bridge;hb=HEAD</a>
</pre></div><div>Daniele Milani</div><div><br>> <br>> > -I started a NAT-network on Libvirt (bridge name virbr1);<br>> > -I started a Virtual Machine (VM1) on Libvirt, and I tagged his<br>> > interface (vnet0) with tag=2;<br>> > -if I run "# ovs-vsctl show" I obtain:<br>> ><br>> > Bridge "virbr1"<br>> >         Port "vnet0"<br>> >             tag: 2<br>> >             Interface "vnet0"<br>> >         Port "virbr1-nic"<br>> >             Interface "virb1-nic"<br>> >         Port "virbr1"<br>> >             Interface "virbr1"<br>> >                 type: internal<br>> ><br>> > -the problem is that it is impossible to assign to VM1 an IP, because<br>> > the dnsmasq daemon does not accept the tagged DHCP Discover frame.<br>> ><br>> > Does someone know if there is a way for dnsmasq to accept tagged<br>> > frames through "virbr1", and send a tagged DHCP Offer packet back to VM1?<br>> <br>> <br>> --<br>> libvir-list mailing list<br>> libvir-list@redhat.com<br>> https://www.redhat.com/mailman/listinfo/libvir-list<br></div>                                         </div></body>
</html>