<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 15, 2016 at 10:28 AM, Edward Haas <span dir="ltr">&lt;<a href="mailto:ehaas@redhat.com" target="_blank">ehaas@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Aug 14, 2016 at 1:52 PM, Yaniv Dary <span dir="ltr">&lt;<a href="mailto:ydary@redhat.com" target="_blank">ydary@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">You should only use the management to keep changes.<br>We added network filtering options in 4.0.<br>There is also a option of VDSM hook for things that are not supported via the manager.<br></div><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre cols="72"><span style="font-family:arial,helvetica,sans-serif">Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra&#39;anana, Israel 4350109

Tel : <a href="tel:%2B972%20%289%29%207692306" value="+97297692306" target="_blank">+972 (9) 7692306</a>
        8272306
Email: <a href="mailto:ydary@redhat.com" target="_blank">ydary@redhat.com</a>
IRC : ydary</span></pre>
</div></div></div></div></div>
<br><div class="gmail_quote"><div><div>On Sat, Aug 13, 2016 at 12:15 AM, Bill Bill <span dir="ltr">&lt;<a href="mailto:jax2568@outlook.com" target="_blank">jax2568@outlook.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>






<div link="blue" vlink="#954F72" lang="EN-US">


<div>
<p class="MsoNormal">It seems like when starting the VM through the oVirt dashboard, it’s either overwriting or removing those values.</p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif"> </span></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<p class="MsoNormal" style="border:medium none;padding:0in"><b>From: </b><a href="mailto:jax2568@outlook.com" target="_blank">Bill Bill</a><br>
<b>Sent: </b>Friday, August 12, 2016 3:04 PM<br>
<b>To: </b><a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a><br>
<b>Subject: </b>xml config file being used in ovirt different from virsh?</p>
</div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif"> </span></p>
</div><div><div>
<div>
<div>
<p class="MsoNormal">I have a VM with network filtering enabled, specifically the clean-traffic filter.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Through virsh, I modify the configuration to reflect changes like this:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">     &lt;filterref filter=&#39;clean-traffic&#39;&gt;</p>
<p class="MsoNormal">        &lt;parameter name=&#39;IP&#39; value=&#39;192.168.10.10.&#39;/&gt;</p>
<p class="MsoNormal">        &lt;parameter name=&#39;IP&#39; value=&#39;192.168.10.11&#39;/&gt;</p>
<p class="MsoNormal">      &lt;/filterref&gt;</p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif"> </span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif">This only allows those two specified IP’s to communicate on the VM. I’ve defined the xml through virsh.</span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif"> </span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif">Now, if I start the VM directly through virsh, those rules apply and work correctly. I can add any other random IP from the same subnet and it does not work, as expected.
 Only the two Ip’s specified above will respond.</span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif"> </span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif">This unfortunately, makes the VM appear to be down from with the ovirt dashboard if it’s started manually through virsh.</span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif"> </span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:&quot;Times New Roman&quot;,serif">If I edit the machine through virsh but do not start it and then go onto oVirt to start the VM, it seems the configuration is not loaded – does oVirt load a different configuration
 file other than /etc/libvirt/qemu/machine.xml?</span></p>
</div>
</div>
</div></div></div><br></div></div></blockquote></div></div></blockquote><div><br></div></div></div><div>oVirt uses VDSM to build the VM/s configuration file (Domain XML).<br></div><div>The only way to control its content from &#39;outside&#39; is though the hooks: <a href="http://www.ovirt.org/develop/developer-guide/vdsm/hooks/" target="_blank">http://www.ovirt.org/develop/<wbr>developer-guide/vdsm/hooks/</a><br></div></div></div></div></blockquote><div> </div><div>The new page is messed up a bit, here is the old one: <a href="http://old.ovirt.org/VDSM-Hooks">http://old.ovirt.org/VDSM-Hooks</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>You could use some usage examples from the code base.<br><br></div><div>Thanks,<br></div><div>Edy.<br></div></div><br></div></div>
</blockquote></div><br></div></div>