<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 'Port Profile' 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 --> <br><br>1) Run for example:<br>
engine-config -s 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}|)$}}" --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'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't using vdsm version 3.6, the vmfex hook isn't installed by default)<br>
<br>
3) In ovirt engine you can verify that host have the hooks installed under 'Hosts' main tab - > 'Host Hooks' 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 'vmfex' 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>- 'Networks' main tab(create network) >> 'vNIC Profiles' sub tab(edit the profile and add the 'vmfex' 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 'Setup Networks' sub tab under 'Hosts' main tab --> 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 ^^ --> <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"><<a href="mailto:David.LeVene@blackboard.com" target="_blank">David.LeVene@blackboard.com</a>></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"><network><u></u><u></u></p>
<p class="MsoNormal"> <name>vdsm-SRIOV</name><u></u><u></u></p>
<p class="MsoNormal"> <forward mode='bridge'/><u></u><u></u></p>
<p class="MsoNormal"> <bridge name='SRIOV'/><u></u><u></u></p>
<p class="MsoNormal"></network><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"> <name>vdsm-SRIOV</name><u></u><u></u></p>
<p class="MsoNormal"> <forward dev='enp6s0f1' mode='passthrough'>
<span style="font-family:Wingdings">ß</span> defined as a passthrough device, not a bridge<u></u><u></u></p>
<p class="MsoNormal"> <interface dev='enp6s0f1'/><u></u><u></u></p>
<p class="MsoNormal"> <interface dev='enp6s0f2'/><u></u><u></u></p>
<p class="MsoNormal"> <interface dev='enp6s0f3'/><u></u><u></u></p>
<p class="MsoNormal"> <interface dev='enp6s0f4'/><u></u><u></u></p>
<p class="MsoNormal">< .. list of interfaces available to it which would need to be manually inputted as a hook><u></u><u></u></p>
<p class="MsoNormal"> </forward><u></u><u></u></p>
<p class="MsoNormal"> <portgroup name='ame1-test1'><u></u><u></u></p>
<p class="MsoNormal"> <virtualport type='802.1Qbh'><u></u><u></u></p>
<p class="MsoNormal"> <parameters profileid='profile-ame1-test1'/><u></u><u></u></p>
<p class="MsoNormal"> </virtualport><u></u><u></u></p>
<p class="MsoNormal"> </portgroup> <u></u><u></u></p>
<p class="MsoNormal"> <portgroup name='ame1-prep1'><u></u><u></u></p>
<p class="MsoNormal"> <virtualport type='802.1Qbh'><u></u><u></u></p>
<p class="MsoNormal"> <parameters profileid='profile-ame1-prep1'/><u></u><u></u></p>
<p class="MsoNormal"> </virtualport><u></u><u></u></p>
<p class="MsoNormal"> </portgroup><u></u><u></u></p>
<p class="MsoNormal"></network><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>