<div dir="ltr">Hi Gang, Daniel<div><br><div>Added a little  <a href="https://github.com/PurePeople/archipv6/blob/master/qemu.py">Script, linked to /etc/libvirt/qemu</a> to be able to add some flows to my openvswitch. Script ran to my liking (IANAP), and then adding it to /etc/libvirt/hooks... Hang.</div>
<div>Only after a lot of looking around (in the last lines of the Hooks page), aha! Don't do this! don't call libvirt in your hook script...</div>
<div>:-(</div><div><br></div><div>What I want: the vnets and their mac addresses for the started VM, otherwise there wouldn't be a need for any of this script, but yeah... nope...</div><div>Is there _any_ way I can get the vnet list for the star{t,ted) vm with the corresponding mac address of the tap interface ?</div>

<div>I figure that the only way to know the mac addr of the VM would be to query libvirt, so I'm at a loss here.</div><div><br></div><div>Note, of course, this script ran perfectly from command line, until it went into /etc/libvirt/hooks/qemu ;-) da-mn!</div>
<div>Can this eventually be called from somewhere else?</div><div>Since libvirt has everything figured out in the 'start' stage, can't I receive more than just 4 parameters ?</div><div><br></div><div>Any ideas?</div>
<div><br></div><div>;-)</div><div><br></div><div>Greetz</div><div><br></div><div>Jan</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 7:39 AM, Vasiliy Tolstov <span dir="ltr"><<a href="mailto:v.tolstov@selfip.ru" target="_blank">v.tolstov@selfip.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/11/12 Laine Stump <<a href="mailto:laine@laine.org">laine@laine.org</a>>:<br>
<div class="im">> Because it's terribly inefficient.<br>
><br>
> You may, on the other hand, view it as "clever", because it is able to<br>
> work around deficiencies in the individual components to make something<br>
> that works at all. It certainly is true, though, that a lot of cycles<br>
> are being wasted on each packet's trip through all that network linkage,<br>
> and it would sure be nice if that waste could be avoided.<br>
<br>
<br>
</div>May be the best way to create minimal daemon that able to talk via rpc<br>
with libvirt and have backends for nwfilter and openflow. Each rule it<br>
translate to needed rules..<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Vasiliy Tolstov,<br>
e-mail: <a href="mailto:v.tolstov@selfip.ru">v.tolstov@selfip.ru</a><br>
jabber: <a href="mailto:vase@selfip.ru">vase@selfip.ru</a><br>
</div></div></blockquote></div><br></div>