<div dir="ltr"><div><div><div><div>Hi Dan,<br><br></div>Please find the attach logs.<br><br></div>1. vdsm.log (VM Creation)<br></div>2. vdsm1.log (when add custom property)<br></div>3. vdsm2.log (Start the VM)<br><br><br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 3:57 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="HOEnZb"><div class="h5">On Wed, Jun 25, 2014 at 10:16:12AM +0800, Punit Dambiwal wrote:<br>
&gt; Hi Dan,<br>
&gt;<br>
&gt; I try the following way :-<br>
&gt;<br>
&gt; 1. I placed your script in the following location<br>
&gt; :- /usr/libexec/vdsm/hooks/before_device_create/50_noipspoof &amp;<br>
&gt; /usr/libexec/vdsm/hooks/before_nic_hotplug/50_noipspoof<br>
&gt;<br>
&gt; 2. Then run this command on the ovirt-engine server (engine-config -s<br>
&gt; &quot;UserDefinedVMProperties=noipspoof=^[0-9.]*$&quot;)<br>
&gt; 3. After that stop the VM and set a custom property named &quot;noipspoof&quot; with<br>
&gt; ip 10.10.10.6.<br>
&gt; 4. Run the VM and login via ssh,configure another ethernet with eth0:0 with<br>
&gt; the ip address 10.10.10.9<br>
&gt; 5. From another VM with ip 10.10.10.5 i can able to ping 10.10.10.9....<br>
&gt;<br>
&gt; One strange thing is in VM xml still the filter is &quot;vdsm-no-mac-spoofing&quot;<br>
&gt; instead of &quot;noipspoof&quot;<br>
&gt;<br>
&gt; ----------------<br>
&gt;  &lt;interface type=&#39;bridge&#39;&gt;<br>
&gt;       &lt;mac address=&#39;00:1a:4a:81:80:09&#39;/&gt;<br>
&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>
&gt;       &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x05&#39;<br>
&gt; function=&#39;0x0&#39;/<br>
&gt;                                     &gt;<br>
&gt; ----------------<br>
&gt;<br>
&gt; Please let me know if i am wrong here....<br>
<br>
</div></div>I can try to help you debug the issue. Could you attach vdsm.log from<br>
the vmCreate command to the place where the VM turns to &quot;Up&quot;?<br>
<br>
Can you verify that<br>
/usr/libexec/vdsm/hooks/before_device_create/50_noipspoof is executable<br>
to the vdsm user?<br>
<span class="HOEnZb"><font color="#888888"><br>
Dan.<br>
</font></span></blockquote></div><br></div>