<div dir="ltr">Hi Dan,<div><br></div><div>Please find the below :- </div><div><br></div><div><div>[root@gfs1 ~]#  su - vdsm -s /bin/bash</div><div>-bash-4.1$ cd /usr/share/vdsm; python -c &#39;import hooks;print hooks._scriptsPerDir(&quot;before_device_create&quot;)&#39;</div>
<div>[&#39;/usr/libexec/vdsm/hooks/before_device_create/50_noipspoof&#39;]</div><div>-bash-4.1$</div></div><div><br></div><div>Antoni @ selinux already in the permissive mode....do you want me to disable it ??</div><div><br>
</div><div><div>[root@gfs1 ~]# sestatus | grep -i mode</div><div>Current mode:                   permissive</div><div>Mode from config file:          permissive</div><div>[root@gfs1 ~]#</div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 5:31 PM, Dan Kenigsberg <span dir="ltr">&lt;<a href="mailto:danken@redhat.com" target="_blank">danken@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Fri, Jun 27, 2014 at 05:07:56PM +0800, Punit Dambiwal wrote:<br>
&gt; Hi Dan,<br>
&gt;<br>
&gt; Still the same....VM can spoof the ip address...attached is the VM domain<br>
&gt; xml file....<br>
<br>
</div>&lt;snip&gt;<br>
<br>
yep, the hook script did not come into action.<br>
<br>
&gt;     &lt;interface type=&#39;bridge&#39;&gt;<br>
&gt;       &lt;mac address=&#39;00:1a:4a:81:80:01&#39;/&gt;<br>
<div class="">&gt;       &lt;source bridge=&#39;private&#39;/&gt;<br>
&gt;       &lt;target dev=&#39;vnet0&#39;/&gt;<br>
&gt;       &lt;model type=&#39;virtio&#39;/&gt;<br>
&gt;       &lt;filterref filter=&#39;vdsm-no-mac-spoofing&#39;/&gt;<br>
&gt;       &lt;link state=&#39;up&#39;/&gt;<br>
&gt;       &lt;alias name=&#39;net0&#39;/&gt;<br>
</div>&gt;       &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39; function=&#39;0x0&#39;/&gt;<br>
&gt;     &lt;/interface&gt;<br>
<br>
and I am still at the dark regarding what could cause that. Would you<br>
repeat the following line, as root and as vdsm user?<br>
<br>
$ cd /usr/share/vdsm; python -c &#39;import hooks;print hooks._scriptsPerDir(&quot;before_device_create&quot;)&#39;<br>
<br>
</blockquote></div><br></div>