Unable to open SR-IOV

asumi321

Member
Sep 19, 2018
18
0
6
27
Hello everyone, I am coming to China, the hardware I use is:
RYZEN 1200
ASUS B350M-K
4G*2
I350-T4 NIC

I have already started SR-IOV in the motherboard.
And added amd_iommu=on to grub
I can't open SR-IOV. Is this a hardware issue or a PVE issue?
 
what do you mean you cannot open it? what exactly did you do and what error message do you get?
 
what do you mean you cannot open it? what exactly did you do and what error message do you get?
root@pve:~# echo "4" > /sys/class/net/enp8s0f2/device/sriov_numvfs
-bash: echo: write error: Input/output error



This is the error I got.
 
i think the out-of-tree igb driver does not support to set the vf number via sysfs, you have to set it via module parameter
see for example https://forum.proxmox.com/threads/cannot-use-sr-iov-on-proxmox.27045/

I have tried it but still can't

root@pve:~# modprobe igb max_vfs=4,4
modprobe: ERROR: could not insert 'igb': Invalid argument



set In /etc/modules, set
igb max_vfs=2,2
reboot

I have tried it but still can't

echo "options igb max_vfs=2,2" > /etc/modprobe.d/igb.conf
depmod -a
update-initramfs -u
reboot

I have tried it but still can't
 
what is your pveversion -v ?

proxmox-ve: 5.2-2 (running kernel: 4.15.17-1-pve)
pve-manager: 5.2-1 (running version: 5.2-1/0fcd7879)
pve-kernel-4.15: 5.2-1
pve-kernel-4.15.17-1-pve: 4.15.17-9
corosync: 2.4.2-pve5
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-4
libpve-common-perl: 5.0-31
libpve-guest-common-perl: 2.0-16
libpve-http-server-perl: 2.0-8
libpve-storage-perl: 5.0-23
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-3
lxcfs: 3.0.0-1
novnc-pve: 0.6-4
proxmox-widget-toolkit: 1.0-18
pve-cluster: 5.0-27
pve-container: 2.0-23
pve-docs: 5.2-3
pve-firewall: 3.0-8
pve-firmware: 2.0-4
pve-ha-manager: 2.0-5
pve-i18n: 1.0-5
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.1-5
pve-xtermjs: 1.0-5
qemu-server: 5.0-26
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.8-pve1~bpo9
 
please upgrade to a current version and try again
 
[QUOTE =“dcsapak,post:222772,member:36072”]请升级到当前版本并重试[/ QUOTE]
我不是最新版本吗?
 
please upgrade to a current version and try again
proxmox-ve: 5.2-2 (running kernel: 4.15.18-4-pve)
pve-manager: 5.2-9 (running version: 5.2-9/4b30e8f9)
pve-kernel-4.15: 5.2-7
pve-kernel-4.15.18-4-pve: 4.15.18-23
pve-kernel-4.15.17-1-pve: 4.15.17-9
corosync: 2.4.2-pve5
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-38
libpve-guest-common-perl: 2.0-17
libpve-http-server-perl: 2.0-10
libpve-storage-perl: 5.0-28
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.2+pve1-2
lxcfs: 3.0.0-1
novnc-pve: 1.0.0-2
proxmox-widget-toolkit: 1.0-20
pve-cluster: 5.0-30
pve-container: 2.0-27
pve-docs: 5.2-8
pve-firewall: 3.0-14
pve-firmware: 2.0-5
pve-ha-manager: 2.0-5
pve-i18n: 1.0-6
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.2-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-34
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.9-pve1~bpo9



I updated it, or not.
 
looks good, does it work now? what does
Code:
lspci
ip a
say?
 
hi,

if it still does not work, try to relocate the network card in another pcie slot
in my tests, the 16x pcie slots of consumer boards would not let me create the vfs, i had to move the card down to the mainboard pcie slot
 
hi,

if it still does not work, try to relocate the network card in another pcie slot
in my tests, the 16x pcie slots of consumer boards would not let me create the vfs, i had to move the card down to the mainboard pcie slot


I tried to replace the motherboard, you can open sr-iov, and it will fail after reboot. How to boot sr-iov?

I tried this command:
echo "2" > /sys/class/net/enp1s0f3/device/sriov_numvfs
 
hi,

if it still does not work, try to relocate the network card in another pcie slot
in my tests, the 16x pcie slots of consumer boards would not let me create the vfs, i had to move the card down to the mainboard pcie slot

My igb driver has 2 network cards

I350-T4 and i211-at