<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"><<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>></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'm not able to see in webadmin how to add a custom property "extnet" to this vnic profile and set it to the "natted" 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'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 "Please select a key" dropdown menu where I can only select "Security Groups"...<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='{type=interface;prop={extnet=^[a-zA-Z0-9_ ---]+$}}'<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't understand its usage, possibly with openstack integration based on its name...)<br>
<br>Anyway now in oVirt webadmin I can edit the "natted" vnic profile and inside the dropdown menu (there isn't any header marked like "custom property" 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 "natted" network<br><br>virsh dumpxml f19<br>...<br> <interface type='network'><br>
<mac address='00:1a:4a:a8:01:55'/><br> <source network='natted'/><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='0x03' function='0x0'/><br> </interface><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'm goint to test if I can solve the openvpn issue<br><br>
</div><div class="gmail_extra">Gianluca<br></div></div>