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

 

[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" }

 

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" }]

 

 

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.