Cannot bind to PF with SR-IOV enabled in Red Hat OpenStack Platform

Solution Verified - Updated -

Issue

Cannot bind to PF with SR-IOV enabled in Red Hat OpenStack Platform

When creating VMs with direct-physical (Physical Function) passthrough, Virtual Machines will not start and logs will report an error.

openstack port create --vnic-type direct-physical --network networkName testport
openstack server create --flavor flavorName --availability-zone abc --network managementNetwork --nic port-id=testport_id --image imageName testvm1
Dec 7 22:47:16 hostname journal: 2020-12-07 19:47:16.080+0000: 18140: error : qemuProcessReportLogError:1923 : internal error: Process exited prior to exec: libvirt: QEMU Driver error : Unable to stat /dev/vfio/36: No such file or directory

dmesg and the logs also show:

[ 1764.352982] vfio-pci 0000:3b:00.0: Cannot bind to PF with SR-IOV enabled

This happens with specific NICs such as Mellanox ConnectX-5, but the issue cannot be observed with NICs such as the Intel 710.

Environment

Red Hat OpenStack Platform - all versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content