Unable to enable VFs on SR-IOV nic as writting to sriov_numvfs returns "Permission denied"

Solution In Progress - Updated -

Issue

  • We can't activate SR-IOV for a VM on a server with RHEL 8 as we get the following errors:
[root@localhost ~]# echo '32' > /sys/class/net/eno1/device/sriov_numvfs 
-bash: /sys/class/net/eno1/device/sriov_numvfs: Permission denied
[root@localhost ~]# echo '32' > /sys/class/net/eno2/device/sriov_numvfs
-bash: /sys/class/net/eno2/device/sriov_numvfs: Permission denied
[root@localhost ~]# echo '32' > /sys/class/net/ens3f0/device/sriov_numvfs
-bash: /sys/class/net/ens3f0/device/sriov_numvfs: Permission denied
[root@localhost ~]# echo '32' > /sys/class/net/ens3f1/device/sriov_numvfs
-bash: /sys/class/net/ens3f1/device/sriov_numvfs: Permission denied
  • This was working on RHEL 7

Environment

  • Red Hat Enterprise Linux 8.0 (RHEL)

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