<div dir="ltr"><div><div>Ok, lets try few things. <br><br></div>- I see you using the latest vdsm 3.6 version and you have the <span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">vdsm-hook-vmfex-dev-4.17.23-1.el7.noarch shipped by default. But i also see that you have the old hook installed - </span><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">vdsm-hook-vmfex-4.17.23-0.el7.centos.noarch, please remove it from the server and re-install the host in ovirt(maintenance+re-install). To make sure you have no conflicts with the old hook and you are using the new one. <br></span></div><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><br>- In the VM interface profile dialog please uncheck the &#39;passthrough&#39; property(first remove the SRIOV network from the VMs vNIC and add it back after editing the profile). The &#39;passthrough&#39; property shouldn&#39;t be checked when using the vmfex-hook. <br></span><div><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><br></span></div><div><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">- Last thing, but not must, go to &#39;Networks&#39; main tab and choose your network &#39;SRIOV&#39;, go to &#39;Clusters&#39; sub tab and press the &#39;Manage network&#39; button --&gt; uncheck the &#39;Required&#39; checkboxes<br></span></div><div><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"> from your cluster(because your network attached to 2 servers in your cluster from 3, it is in down state colored with red)<br></span></div><div><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">, once you will uncheck the &#39;Required&#39; from the cluster it will be shown as UP, colored in green. <br><br></span></div><div><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">I believe now it will work for you, please let me know. <br><br></span></div><div><span style="font-size:11pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">Cheers )<br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 1:51 AM, David LeVene <span dir="ltr">&lt;<a href="mailto:David.LeVene@blackboard.com" target="_blank">David.LeVene@blackboard.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 link="blue" vlink="purple" lang="EN-AU">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">Hi Michael,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">I’m going to include some screen shots - as I’ve got it all setup exactly how you mention below.. but the config on the Hypervisor is
 still bridged config.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">All the UCS port profiles are correct as we use this config on standalone KVM/QEMU hosts.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">See in-line for pics at the appropriate step .<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">Cheers<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">David<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US"> Michael Burman [mailto:<a href="mailto:mburman@redhat.com" target="_blank">mburman@redhat.com</a>]
<br>
<b>Sent:</b> Wednesday, March 09, 2016 19:47<br>
<b>To:</b> David LeVene &lt;<a href="mailto:David.LeVene@blackboard.com" target="_blank">David.LeVene@blackboard.com</a>&gt;<br>
<b>Cc:</b> <a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>; Dan Kenigsberg &lt;<a href="mailto:danken@redhat.com" target="_blank">danken@redhat.com</a>&gt;<br>
<b>Subject:</b> Re: [ovirt-users] Configuring the SRIOV virsh device<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div><span class="">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi again David) <u></u><u></u></p>
</div>
<p class="MsoNormal">In order to achieve such xml ^^ (the one you describing) you should first of all prepare a proper &#39;Port Profile&#39; on your UCS manager side.
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">- In your/from your example you should have 2 Port Profiles([1], [2]) configured in your cisco side(see - 
<a href="http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/vm_fex/kvm/gui/config_guide/2-1/b_GUI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1/b_GUI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1_chapter_010.html" target="_blank">
http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/vm_fex/kvm/gui/config_guide/2-1/b_GUI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1/b_GUI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1_chapter_010.html</a>)
<br>
<br>
[1]  profile-ame1-test1<br>
[2] profile-ame1-prep1<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- This port profiles should associate with your service profiles(blades)<br>
 <u></u><u></u></p>
</div>
<p class="MsoNormal">- If you have those port profiles on your ucs side and they well configured, then you should follow the steps i suggested in the previous e-mail --&gt;
<br>
<br>
1) Run for example:<br>
engine-config -s CustomDeviceProperties=&quot;{type=interface;prop={ifacemacspoof=^(true|false)$;queues=[1-9][0-9]*;vmfex=^[a-zA-Z0-9_.-]{2,32}$;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}|)$}}&quot;
 --cver=3.5<br>
<br>
- Restart your ovirt-engine service<br>
- with --cver=3.5 you can specify your cluster version level. ^^<br>
- If you don&#39;t want that it will overwrite your current attributes, you have to send them all as well(like on my example above). ^^<span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
</span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">We are using 3.6.3, with the applied patch from <a href="https://gerrit.ovirt.org/#/c/54237" target="_blank">https://gerrit.ovirt.org/#/c/54237</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"># engine-config -g CustomDeviceProperties<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">CustomDeviceProperties:  version: 3.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">CustomDeviceProperties:  version: 3.1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">CustomDeviceProperties:  version: 3.2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">CustomDeviceProperties:  version: 3.3<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">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<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">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.5<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">CustomDeviceProperties: {type=interface;prop={ifacemacspoof=^(true|false)$;queues=[1-9][0-9]*;vmfex=^[a-zA-Z0-9_.-]{2,32}$;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.6<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><br>
<br>
2) Install vdsm-hook-vmfex-dev on your server(if you don&#39;t using vdsm version 3.6, the vmfex hook isn&#39;t installed by default)<span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
</span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"># rpm -qa | grep -i vmfex<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">vdsm-hook-vmfex-dev-4.17.23-1.el7.noarch<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">vdsm-hook-vmfex-4.17.23-0.el7.centos.noarch<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><br>
<br>
3) In ovirt engine you can verify that host have the hooks installed under  &#39;Hosts&#39; main tab - &gt; &#39;Host Hooks&#39; sub tab<br>
You should see there: a) before_device_migrate_destination b) before_device_create c) before_nic_hotplug<span style="color:black"><u></u><u></u></span></p>
</span><p class="MsoNormal"><img src="cid:image001.png@01D17AB5.79C66750" height="248" width="896" border="0"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u><u></u></span></p><span class="">
<p class="MsoNormal"><br>
<br>
4) Create new network and edit the vNIC profile. <br>
Choose from the CustomDeviceProperties the &#39;vmfex&#39; key(like in your example) and in the right field enter your Port Profile id/name(the one that is configured on your UCS side)<span style="color:black"><u></u><u></u></span></p>
</span><p class="MsoNormal"><img src="cid:image009.jpg@01D17AB6.A9142000" height="406" width="563" border="0"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u> <u></u></span></p>
</div><span class="">
<p class="MsoNormal"><br>
- &#39;Networks&#39; main tab(create network) &gt;&gt; &#39;vNIC Profiles&#39; sub tab(edit the profile and add the &#39;vmfex&#39; key), so it would look like:<u></u><u></u></p>
</span></div>
<p class="MsoNormal">vmfex = profile-ame1-test1<u></u><u></u></p>
</div>
<p class="MsoNormal">and/or <u></u><u></u></p>
</div>
<p class="MsoNormal">vmfex = profile-ame1-prep1<u></u><u></u></p>
<p class="MsoNormal"><img src="cid:image004.png@01D17AB5.79C66750" height="319" width="473" border="0"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u><u></u></span></p>
<div>
<div>
<div>
<div>
<div><span class="">
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
5) Go to &#39;Setup Networks&#39; sub tab under &#39;Hosts&#39; main tab --&gt; attach the network with the vmfex profile to NIC on host(drag it), it should be the additional NIC, not the one that the management network attached to.<span style="color:black"><u></u><u></u></span></p>
</span><p class="MsoNormal" style="margin-bottom:12.0pt"><img src="cid:image010.png@01D17AB6.A9142000" height="121" width="888" border="0"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><img src="cid:image011.jpg@01D17AB6.A9142000" height="414" width="613" border="0"><span class=""><br>
<br>
6) Create VM or use exist one, create/add new vNIC to the VM with the vmfex profile<span style="color:black"><br>
</span></span><img src="cid:image013.jpg@01D17AB6.A9142000" height="423" width="635" border="0"><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
7) Run VM<span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">Note - only Test hosts 2 &amp; 3 are currently configured with this network - so I expect Host 1 to fail.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><img src="cid:image012.png@01D17AB5.C8D3FBA0" height="372" width="490" border="0"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"><u></u><u></u></span></p>
</div><div><div class="h5">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">If your port profile configured properly you should see the proper xml, like you described above ^^ --&gt;
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Good luck and kind regards, <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Michael B<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</div>
</div><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Mar 9, 2016 at 8:49 AM, David LeVene &lt;<a href="mailto:David.LeVene@blackboard.com" target="_blank">David.LeVene@blackboard.com</a>&gt; wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hey All,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Still trying to work through this VMFEX stuff, and I know what I want the file to look like at the end.. but not sure how to achieve it from the doco written here<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.ovirt.org/develop/developer-guide/vdsm/hook/vmfex/" target="_blank">http://www.ovirt.org/develop/developer-guide/vdsm/hook/vmfex/</a><u></u><u></u></p>
<p class="MsoNormal">and<u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.ovirt.org/develop/release-management/features/network/ucs-integration/" target="_blank">http://www.ovirt.org/develop/release-management/features/network/ucs-integration/</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Currently my device looks like this<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"># virsh -r net-dumpxml vdsm-SRIOV<u></u><u></u></p>
<p class="MsoNormal">&lt;network&gt;<u></u><u></u></p>
<p class="MsoNormal">  &lt;name&gt;vdsm-SRIOV&lt;/name&gt;<u></u><u></u></p>
<p class="MsoNormal"> &lt;forward mode=&#39;bridge&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">  &lt;bridge name=&#39;SRIOV&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">&lt;/network&gt;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I want it looking like this, then the networking will be as it should be!<u></u><u></u></p>
<p class="MsoNormal">A port group would be a vNIC Profile from the looks of things…<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">  &lt;name&gt;vdsm-SRIOV&lt;/name&gt;<u></u><u></u></p>
<p class="MsoNormal">  &lt;forward dev=&#39;enp6s0f1&#39; mode=&#39;passthrough&#39;&gt;                            
<span style="font-family:Wingdings">ß</span> defined as a passthrough device, not a bridge<u></u><u></u></p>
<p class="MsoNormal">    &lt;interface dev=&#39;enp6s0f1&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">    &lt;interface dev=&#39;enp6s0f2&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">    &lt;interface dev=&#39;enp6s0f3&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">    &lt;interface dev=&#39;enp6s0f4&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">&lt;   .. list of interfaces available to it which would need to be manually inputted as a hook&gt;<u></u><u></u></p>
<p class="MsoNormal">  &lt;/forward&gt;<u></u><u></u></p>
<p class="MsoNormal">  &lt;portgroup name=&#39;ame1-test1&#39;&gt;<u></u><u></u></p>
<p class="MsoNormal">    &lt;virtualport type=&#39;802.1Qbh&#39;&gt;<u></u><u></u></p>
<p class="MsoNormal">      &lt;parameters profileid=&#39;profile-ame1-test1&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">    &lt;/virtualport&gt;<u></u><u></u></p>
<p class="MsoNormal">  &lt;/portgroup&gt;
<u></u><u></u></p>
<p class="MsoNormal">  &lt;portgroup name=&#39;ame1-prep1&#39;&gt;<u></u><u></u></p>
<p class="MsoNormal">    &lt;virtualport type=&#39;802.1Qbh&#39;&gt;<u></u><u></u></p>
<p class="MsoNormal">      &lt;parameters profileid=&#39;profile-ame1-prep1&#39;/&gt;<u></u><u></u></p>
<p class="MsoNormal">    &lt;/virtualport&gt;<u></u><u></u></p>
<p class="MsoNormal">  &lt;/portgroup&gt;<u></u><u></u></p>
<p class="MsoNormal">&lt;/network&gt;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Cheers<u></u><u></u></p>
<p class="MsoNormal">David<u></u><u></u></p>
</div>
<p class="MsoNormal">This email and any attachments may contain confidential and proprietary information of Blackboard that is for the sole use of the intended recipient. If you are not the intended recipient, disclosure, copying, re-distribution or other use
 of any of this information is strictly prohibited. Please immediately notify the sender and delete this transmission if you received this email in error.
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Michael Burman<br>
RedHat Israel, RHEV-M QE Network Team<br>
<br>
Mobile: 054-5355725<br>
IRC: mburman<u></u><u></u></p>
</div>
</div>
</div>
</div></div></div>
</div><div><div class="h5">
This email and any attachments may contain confidential and proprietary information of Blackboard that is for the sole use of the intended recipient. If you are not the intended recipient, disclosure, copying, re-distribution or other use of any of this information
 is strictly prohibited. Please immediately notify the sender and delete this transmission if you received this email in error.
</div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Michael Burman<br>RedHat Israel, RHEV-M QE Network Team<br><br>Mobile: 054-5355725<br>IRC: mburman</div></div>
</div>