Dear openstack community,
I am trying to setup pci passthrough for multiple devices types but I am getting an error while creating a new vm.
This is my pci section in nova.conf compute node you need to set the alais on both the controller ( i belive specically the nova api config) and the compute node see https://docs.openstack.org/nova/latest/admin/pci-passthrough.html#configure-... and https://docs.openstack.org/nova/latest/admin/pci-passthrough.html#configure-...
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = { "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" } alias = { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }
On Tue, 2019-02-19 at 09:17 +0000, Manuel Sopena Ballesteros wrote: this is the correct format. it is documented here https://docs.openstack.org/nova/latest/configuration/config.html#pci.alias
I also tried this
[pci] passthrough_whitelist = [{ "vendor_id": "10de", "product_id": "1db1" }, { "vendor_id": "15b3", "product_id": "1016" }] alias = [{ "vendor_id":"10de", "product_id":"1db1", "device_type":"type-PCI", "name":"nv_v100" }, { "vendor_id":"15b3", "product_id":"1016", "device_type":"type-VF", "name":"mlnx_connectx4" }]
while the json list format is supported for the passthough_whiltelist it is not supported for aliases.
And this is the error I am getting when I try to create a new vm:
# openstack server create --flavor sriov.small --image centos7.5-image --availability-zone nova:zeus- 59.localdomain vm-sriov-test PCI alias mlnx_connectx4 is not defined (HTTP 400) (Request-ID: req-aebb2d05-a557-428b-b2c6-090c16dc7c76)
how can I setup multiple aliases for different devices?
Thank you very much NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.