I have file a bug <a href="https://bugs.launchpad.net/nova/+bug/1034216">https://bugs.launchpad.net/nova/+bug/1034216</a><div>and upload a patch <a href="https://review.openstack.org/#/c/11008/">https://review.openstack.org/#/c/11008/</a><br>
<br><div class="gmail_quote">2012/8/8 Dan Wendlandt <span dir="ltr"><<a href="mailto:dan@nicira.com" target="_blank">dan@nicira.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Emilien,<div><br></div><div>I know of customers using virtio with Quantum, but I think they may have modified the template directly, as you mention below.</div><div><br></div><div>This code in nova changed quite a bit from Essex -> Folsom. Looking at nova/virt/libvirt/vif.py, I noticed that whoever added the libvirt_use_virtio_for_bridges flag did not add it to the LibvirtOpenVswitchDriver class. Based on the XML you show below, my guess would be that if you add the following lines prior to the return statement of the plug() method of that class, you would get the right XML: </div>
<div><br></div><div>if FLAGS.libvirt_use_virtio_for_bridges: </div><div> conf.model = "virtio" </div><div><br></div><div>That said, I haven't tested it. </div><div><br></div><div>Can you file a bug on this in nova? Thanks,</div>
<div><br></div><div>Dan</div><div><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Aug 7, 2012 at 2:57 PM, Emilien Macchi <span dir="ltr"><<a href="mailto:emilien.macchi@stackops.com" target="_blank">emilien.macchi@stackops.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi Stackers,<br><br><br>I'm talking with <a href="http://www.sebastien-han.fr/blog/2012/07/19/make-the-network-of-your-vms-fly-with-virtio-driver" target="_blank">Sebastien Han</a> about VirtIO Driver for network interfaces.<br>
<br>We have two setup :<br>
<br>1) Ubuntu 12.04 / Essex / KVM<br> <span>network_manager=<em>nova.network</em>.manager.<em>VlanManager</em></span><br> libvirt_use_virtio_for_bridges=true<br><br>2) Ubuntu 12.04 / Essex / KVM<br> network_manager=nova.network.quantum.manager.QuantumManager<br>
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver<br> libvirt_use_virtio_for_bridges=true<br><br>What we have seen :<br><br>- VMs booting from first setup have VirtIO driver for networking (Gigabit ready). Here is the libvirt.xml for network part :<br>
<br><interface type='bridge'>
<br>(...)<br> <model type='virtio'/>
<br>(...)<br></interface><br><br>- VMs booting from second setup (with Quantum) don't use VirtIO driver (No gigabit). Here is the libvirt.xml for network part :<br><br><interface type='ethernet'>
<br> <target dev='tapxxxxx' />
<br> <mac address='xxxx' />
<br> <script path='' />
<br> </interface><br><br>The only one way I found to use VirtIO driver with Quantum to modify /usr/share/pyshared/nova/virt/libvirt.xml.template file and add :<br><br><model type='virtio'/><br>(after line 125)<br>
<br>So you must have something like this :<br><interface type='ethernet'><br><target dev='${<a href="http://nic.name" target="_blank">nic.name</a>}' /><br><mac address='${nic.mac_address}' /><br>
<script path='${nic.script}' /><br><model type='virtio'/><br></interface><br><br>And restart LibVirt service :<br>service libvirt-bin restart<br><br><br>What do you think about that ? Should we modify the template to get Gigabit capacity or is there something wrong in my configuration ?<br>
<br><br>Best regards<br clear="all"><br>-- <br><font color="#888888"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div align="left">
<div>Emilien Macchi<font><span style="font-family:Arial" lang="ES"><br><font><font face="Arial"><b>System Engineer</b></font></font></span></font><br><span><font color="#888888"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b><font style="font-family:arial,helvetica,sans-serif" face="Arial" size="2"><a href="http://www.stackops.com" target="_blank"><b>www.stackops.com</b></a><div style="display:inline-block;width:16px;min-height:16px">
</div> |<font size="1"> </font></font></b><font style="font-family:arial,helvetica,sans-serif" face="Arial" size="2"><font size="1"><a href="mailto:emilien.macchi@stackops.com" target="_blank">emilien.macchi@stackops.com</a></font></font><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font color="#004438" face="Arial"><b><b><span style="font-size:10pt;color:rgb(0,68,56);font-family:Arial" lang="EN-GB"></span></b></b></font></span></span><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font style="font-family:arial,helvetica,sans-serif" face="Arial" size="2"><font size="1"> </font></font></span></span></span></span></font></span><font color="#888888"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span><font color="#888888"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b><font style="font-family:arial,helvetica,sans-serif" face="Arial" size="2">|</font></b></span></span></font></span></span></span></font><span><font color="#888888"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font style="font-family:arial,helvetica,sans-serif" face="Arial" size="2"><font size="1"> <a>skype:emilien.macchi</a></font></font></span></span><font style="font-family:arial,helvetica,sans-serif" face="Arial" size="2"><a href="http://www.stackops.com" target="_blank"><b><br>
</b></a></font></span></span></font></span></div></div><div><font color="#004438" face="Arial"><b><p><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="line-height:normal;text-indent:0px;border-collapse:separate;letter-spacing:normal;font-variant:normal;text-transform:none;font-size:medium;font-style:normal;white-space:normal;font-family:Times;word-spacing:0px"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font color="#004438" face="Arial"><b><b><span style="font-size:10pt;color:rgb(0,68,56);font-family:Arial" lang="EN-GB"><img></span></b></b></font></span></span></span></span></p>
</b></font></div><div><p><font color="#000000" size="1">******************** ADVERTENCIA LEGAL ********************<span> </span><br>Le
informamos, como destinatario de este mensaje, que el correo
electrónico y las comunicaciones por medio de Internet no permiten
asegurar ni garantizar la confidencialidad de los mensajes transmitidos,
así como tampoco su integridad o su correcta recepción, por lo que
STACKOPS TECHNOLOGIES S.L. no asume responsabilidad alguna por tales
circunstancias. Si no consintiese en la utilización del correo
electrónico o de las comunicaciones vía Internet le rogamos nos lo
comunique y ponga en nuestro conocimiento de manera inmediata. Este
mensaje va dirigido, de manera exclusiva, a su destinatario y contiene
información confidencial y sujeta al secreto profesional, cuya
divulgación no está permitida por la ley. En caso de haber recibido este
mensaje por error, le rogamos que, de forma inmediata, nos lo comunique
mediante correo electrónico remitido a nuestra atención y proceda a su
eliminación, así como a la de cualquier documento adjunto al mismo.
Asimismo, le comunicamos que la distribución, copia o utilización de
este mensaje, o de cualquier documento adjunto al mismo, cualquiera que
fuera su finalidad, están prohibidas por la ley.<span> </span><br><br>***************** PRIVILEGED AND CONFIDENTIAL ****************<span> </span><br>We
hereby inform you, as addressee of this message, that e-mail and
Internet do not guarantee the confidentiality, nor the completeness or
proper reception of the messages sent and, thus, STACKOPS TECHNOLOGIES
S.L. does not assume any liability for those circumstances. Should you
not agree to the use of e-mail or to communications via Internet, you
are kindly requested to notify us immediately. This message is intended
exclusively for the person to whom it is addressed and contains
privileged and confidential information protected from disclosure by
law. If you are not the addressee indicated in this message, you should
immediately delete it and any attachments and notify the sender by reply
e-mail. In such case, you are hereby notified that any dissemination,
distribution, copying or use of this message or any attachments, for any
purpose, is strictly prohibited by law.</font></p></div></span></span></font><br>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
Mailing list: <a href="https://launchpad.net/~netstack" target="_blank">https://launchpad.net/~netstack</a><br>
Post to : <a href="mailto:netstack@lists.launchpad.net" target="_blank">netstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~netstack" target="_blank">https://launchpad.net/~netstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira, Inc: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br>
<div>twitter: danwendlandt<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>