<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 25, 2014 at 4:31 PM, Gianluca Cecchi <span dir="ltr">&lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span> wrote:<br>
<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>[snip]<br></div></blockquote><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 dir="ltr"><div>But I&#39;m not able to see in webadmin how to add a custom property &quot;extnet&quot; to this vnic profile and set it to the &quot;natted&quot; value.</div></div></blockquote><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>[snip]</div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div dir="ltr"><div>Is it perhaps a command line only option?<br>
<br></div><div>Based on this page I wouldn&#39;t expect so:<br><a href="http://www.ovirt.org/Features/Vnic_Profiles" target="_blank">http://www.ovirt.org/Features/Vnic_Profiles</a><br>
</div><div><br></div><div><br></div><div>I see instead a &quot;Please select a key&quot; dropdown menu where I can only select &quot;Security Groups&quot;...<br><br></div></div></blockquote><div>[snip] <br></div></div><br>
OK.<br>so after reading this page<br><a href="http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm_hooks/extnet/README;h=0778dbb3ef85c5ae179fb0f6c9ceeabc268abe89;hb=HEAD">http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm_hooks/extnet/README;h=0778dbb3ef85c5ae179fb0f6c9ceeabc268abe89;hb=HEAD</a><br>
<br>BTW: is it in any package?<br>[root@tekkaman ovirt-engine]# rpm -ql vdsm-hook-extnet<br>/usr/libexec/vdsm/hooks/before_device_create/50_extnet<br>/usr/libexec/vdsm/hooks/before_nic_hotplug/50_extnet<br>[root@tekkaman ovirt-engine]# <br>
<br>before<br>[root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties<br>CustomDeviceProperties:  version: 3.0<br>CustomDeviceProperties:  version: 3.1<br>CustomDeviceProperties:  version: 3.2<br>CustomDeviceProperties:  version: 3.3<br>
CustomDeviceProperties: {type=interface;prop={SecurityGroups=^(?:(?:[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}, *)*[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}|)$}} version: 3.4<br><br>then<br>[root@tekkaman ovirt-engine]# engine-config -s CustomDeviceProperties=&#39;{type=interface;prop={extnet=^[a-zA-Z0-9_ ---]+$}}&#39;<br>
Please select a version:<br>1. 3.0<br>2. 3.1<br>3. 3.2<br>4. 3.3<br>5. 3.4<br>5<br><br>after:<br>[root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties<br>CustomDeviceProperties:  version: 3.0<br>CustomDeviceProperties:  version: 3.1<br>
CustomDeviceProperties:  version: 3.2<br>CustomDeviceProperties:  version: 3.3<br>CustomDeviceProperties: {type=interface;prop={extnet=^[a-zA-Z0-9_ ---]+$}} version: 3.4<br><br># systemctl restart ovirt-engine<br><br>BTW: is it correct that what before was security groups is now barely overwritten by extnet? Or is there a syntax with which I can add extnet without deleting security groups (even if I don&#39;t understand its usage, possibly with openstack integration based on its name...)<br>
<br>Anyway now in oVirt webadmin I can edit the &quot;natted&quot; vnic profile and inside the dropdown menu (there isn&#39;t any header marked like &quot;custom property&quot; or similar, that could be useful....) <br><br>
shutdown and poweroff vm <br>start vm<br><br>and now it correctly gets the ip 192.168.125.91 defined inside the dhcp range for &quot;natted&quot; network<br><br>virsh dumpxml f19<br>...<br>    &lt;interface type=&#39;network&#39;&gt;<br>
      &lt;mac address=&#39;00:1a:4a:a8:01:55&#39;/&gt;<br>      &lt;source network=&#39;natted&#39;/&gt;<br>      &lt;target dev=&#39;vnet0&#39;/&gt;<br>      &lt;model type=&#39;virtio&#39;/&gt;<br>      &lt;filterref filter=&#39;vdsm-no-mac-spoofing&#39;/&gt;<br>
      &lt;link state=&#39;up&#39;/&gt;<br>      &lt;alias name=&#39;net0&#39;/&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39; function=&#39;0x0&#39;/&gt;<br>    &lt;/interface&gt;<br>
...<br><br>The web admin portal gives the corect new ip of the VM, as sent by vdagent.<br><br>The VM is able to navigate through Internet and <br><a href="http://www.whatismyip.com/">http://www.whatismyip.com/</a><br></div>
<div class="gmail_extra">gives for example consistent and equal information both using my all-in-one server and my VM<br> <br></div><div class="gmail_extra">Now I&#39;m goint to test if I can solve the openvpn issue<br><br>
</div><div class="gmail_extra">Gianluca<br></div></div>