<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"><<a href="mailto:danken@redhat.com" target="_blank">danken@redhat.com</a>></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>
> Hi Dan,<br>
><br>
> I try the following way :-<br>
><br>
> 1. I placed your script in the following location<br>
> :- /usr/libexec/vdsm/hooks/before_device_create/50_noipspoof &<br>
> /usr/libexec/vdsm/hooks/before_nic_hotplug/50_noipspoof<br>
><br>
> 2. Then run this command on the ovirt-engine server (engine-config -s<br>
> "UserDefinedVMProperties=noipspoof=^[0-9.]*$")<br>
> 3. After that stop the VM and set a custom property named "noipspoof" with<br>
> ip 10.10.10.6.<br>
> 4. Run the VM and login via ssh,configure another ethernet with eth0:0 with<br>
> the ip address 10.10.10.9<br>
> 5. From another VM with ip 10.10.10.5 i can able to ping 10.10.10.9....<br>
><br>
> One strange thing is in VM xml still the filter is "vdsm-no-mac-spoofing"<br>
> instead of "noipspoof"<br>
><br>
> ----------------<br>
> <interface type='bridge'><br>
> <mac address='00:1a:4a:81:80:09'/><br>
> <source bridge='private'/><br>
> <target dev='vnet0'/><br>
> <model type='virtio'/><br>
> <filterref filter='vdsm-no-mac-spoofing'/><br>
> <link state='up'/><br>
> <alias name='net0'/><br>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05'<br>
> function='0x0'/<br>
> ><br>
> ----------------<br>
><br>
> 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 "Up"?<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>