[SOLVED] SR-IOV

showiproute

Renowned Member
Mar 11, 2020
662
46
68
37
Austria
Hi there,

just a short question: Is it possible to use the same NIC on Proxmox host as well as on VMs?
 
Last edited:
Hi there,

just a short question: Is it possible to use the same NIC on Proxmox host as well as on VMs?
you need to have multiple pci functions on your nic.

you can use lspci to see, if on your nic pci address, you have multiple .x

exemple :

7f:13.1 yournic
7f:13.2 yournic
7f:13.3 yournic
7f:13.4 yournic


depending of the model/drivers, sometime it need to be enabled with module options. (search virtual functions" )
 
Hello @spirit,

I have already seen that and added a couple of VFs:
Code:
lspci | grep 550

04:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)
04:00.1 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)
04:10.0 Ethernet controller: Intel Corporation X550 Virtual Function
04:10.1 Ethernet controller: Intel Corporation X550 Virtual Function
04:10.2 Ethernet controller: Intel Corporation X550 Virtual Function
04:10.3 Ethernet controller: Intel Corporation X550 Virtual Function
04:10.4 Ethernet controller: Intel Corporation X550 Virtual Function
04:10.5 Ethernet controller: Intel Corporation X550 Virtual Function
04:10.6 Ethernet controller: Intel Corporation X550 Virtual Function
04:10.7 Ethernet controller: Intel Corporation X550 Virtual Function


But my "issue" would be:

The main PCIe interface 04:00.0 & 04:00.1 (= NIC enp4s0f0 & enp4s0f1) are being used as bond + vmbr.

As soon as I pass through a VF to a VM my network fails at all.

I have also tried to use a VF on Proxmox itself rather than the real physical device with the same outcome -> Didn't work.


So I asked myself: Is it possible to use the same hardware on the host as well as on the VMs?
 
Okay I have (somehow) managed to get it working :)

So it was just my fault that it did not work in the 1st step.

The answer for anyone which stuble on this thread:

You have to use the regular interface for your host and you can passthrough the virtual functions (PCIe passthrough) to the VMs.
 
  • Like
Reactions: MrNobody_