0

I get a permission denied error when I run the command

sudo echo '7' > /sys/class/net/eno99/device/sriov_numfs

This is the error:

bash: /sys/class/net/eno99/device/sriov_numfs: Permission denied

I have enabled SRIOV in the following ways:

  1. Enable Virtualization in System Setup.
  2. Enable Global Sriov in System Setup
  3. Enable Sriov for each ethernet port separately.

Still I am getting the same error. Also cannot find any critical error in dmseg that may cause the problem.

Screenshots:

Screenshot

I also tried

sudo echo 7 | sudo tee /sys/class/net/eno99/device/sriov_numfs

Second command attempt

Any help will be appreciated.

Greenonline
  • 2,030
  • 8
  • 20
  • 27
saif ullah
  • 13
  • 3
  • 2
    Welcome. I don't know what Sriov is, but if your command requires root permission using redirection like that [won't work](https://askubuntu.com/questions/230476/how-to-solve-permission-denied-when-using-sudo-with-redirection-in-bash). Instead try `echo 7 | sudo tee /sys/class/net/eno99/device/sriov_numfs`. If that does not work, please update the question with the results. – Zanna Feb 22 '21 at 10:56
  • @Zanna Still getting the same error. Updating the question – saif ullah Feb 23 '21 at 06:14
  • @WinEunuuchs2Unix This does not works either – saif ullah Feb 23 '21 at 06:14
  • @WinEunuuchs2Unix It's working now don't know Why it didn't before. I used the following commands 1. sudo -i 2. echo 4 > /sys/class/net/eno2np1/device/sriov_numvfs – saif ullah Feb 23 '21 at 09:04

0 Answers0