<div dir="ltr"><div><div><div><div><div><div><div>Hi again David) <br><br></div>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. <br></div>- 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">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<br><br></div><div>- This port profiles should associate with your service profiles(blades)<br> <br></div>- 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). ^^<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)<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<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)<br></div><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:<br></div>vmfex = profile-ame1-test1<br></div>and/or <br></div>vmfex = profile-ame1-prep1<div><div><div><div><div>
<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.<br>
<br>
6) Create VM or use exist one, create/add new vNIC to the VM with the vmfex profile<br>
<br>
7) Run VM<br><br></div><div>If your port profile configured properly you should see the proper xml, like you described above ^^ --&gt; <br><br></div><div>Good luck and kind regards, <br></div><div>Michael B<br></div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 9, 2016 at 8:49 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="#0563C1" vlink="#954F72" lang="EN-AU">
<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>
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>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br></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></div>