[SOLVED] SR-IOV

showiproute

Member
Mar 11, 2020
88
5
8
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:

spirit

Famous Member
Apr 2, 2010
4,517
332
103
www.odiso.com
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" )
 

showiproute

Member
Mar 11, 2020
88
5
8
Austria
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?
 

showiproute

Member
Mar 11, 2020
88
5
8
Austria
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!