HI David)

If everything configured properly on your UCS side and you have a working Port 
Profile id/name your next steps should be:

1) Run for example:
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

- Restart your ovirt-engine service
- with --cver=3.5 you can specify your cluster version level. ^^
- 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). ^^

2) Install vdsm-hook-vmfex-dev on your nodes 

3) In ovirt engine you can verify that host have the hooks installed under  
'Hosts' main tab - > 'Host Hooks' sub tab
You should see there: a) before_device_migrate_destination b) 
before_device_create c) before_nic_hotplug
 
4) Create new network and edit the vNIC profile. 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)

5) Go to 'Setup Networks' sub tab under 'Hosts' -> attach the network with the 
vmfex profile to NIC on host(drag it)

6) Create VM or use exist one, create/add new vNIC to the VM with the vmfex 
profile

7) Run VM  

Good luck)


----- Original Message -----
From: "David LeVene" <[email protected]>
To: [email protected]
Sent: Wednesday, February 17, 2016 5:41:21 AM
Subject: [ovirt-users] UCS Integration (vmfex/SRIOV)



Hey All, 



I’ve got a test instance and would like to get vmfex working. I’m very new to 
ovirt, so some of the basics are still new to me. 



I currently have a 3 node setup which are all configured without vmfex, what 
I’d like to do is convert the hosts one by one to use vmfex. 



From the UCS side of things it works and I’m presented with the SRIOV devices 
in the host.. but I can’t get the network config in the ovirt admin setup.. 



I’m following this guide, but not getting very far… 
http://www.ovirt.org/Features/UCS_Integration 



This step says to do this, which is fine.. but when I do this I overwrite the 
current attribute in there. 



engine-config -s 
CustomDeviceProperties='{type=interface;prop={vmfex=^[a-zA-Z0-9_.-]{2,32}$}}' 



which is… 



# engine-config -g CustomDeviceProperties 

CustomDeviceProperties: version: 3.0 

CustomDeviceProperties: version: 3.1 

CustomDeviceProperties: version: 3.2 

CustomDeviceProperties: version: 3.3 

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 

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 

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.6 





When I update it using the command above, it replaces it… 



When I append the 2 together, I get see vmfex & prop in the ovirt-engine 
(screen shot) side of things.. so can someone please check my command to ensure 
I’m not missing something! 





engine-config -s 
CustomDeviceProperties='{type=interface;prop={vmfex=^[a-zA-Z0-9_.-]{2,32}$}}{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}|)$}}’ 



# engine-config -g CustomDeviceProperties 

CustomDeviceProperties: version: 3.0 

CustomDeviceProperties: version: 3.1 

CustomDeviceProperties: version: 3.2 

CustomDeviceProperties: version: 3.3 

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 

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 

CustomDeviceProperties: 
{type=interface;prop={vmfex=^[a-zA-Z0-9_.-]{2,32}$}}{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.6 







As soon as I enable vmfex on a host that was previously working.. it stops 
working and the network no longer works on the host… (this is not using any of 
the config above.. just enabled the vmfex in the UCS manager) 



What is the “correct” way to bring a Host in ovirt using vmfex? 



Regards 

David 






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. 

_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users

-- 
Michael Burman
RedHat Israel, RHEV-M QE Network Team

Mobile: 054-5355725
IRC: mburman
_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to