netzspezialist

Enable SR-IOV Ethernet on XenServer 7.2

December 5, 2017

 

On Dell R720 with 2 x540 10GB Interfaces

lspci | grep Ethernet

does not show Virtual Function Interfaces

cat /sys/class/net/eth0/device/sriov_totalvfs

shows 63

cat /sys/class/net/eth0/device/sriov_numvfs

shows 0 and increase to 8 with

echo 8 > /sys/class/net/eth0/device/sriov_numvfs

Now lspci | grep Ethernet  shows 8 Virtual Function Interfaces for X540

01:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 (rev 01)
01:00.1 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 (rev 01)
01:10.0 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)
01:10.2 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)
01:10.4 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)
01:10.6 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)
01:11.0 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)
01:11.2 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)
01:11.4 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)
01:11.6 Ethernet controller: Intel Corporation X540 Ethernet Controller Virtual Function (rev 01)

Persist setting with adding

sleep 40
echo 8 > /sys/class/net/eth0/device/sriov_numvfs

to

nano /etc/rc.local

Mount first VF to VM

xe vm-param-set other-config:pci=0/0000:01:10.0 uuid=6dba4f0a-8363-afcd-f2de-d329d86c0f19

Driver on Windows Server 2016

Windows doesn’t have drivers by default.
Just add an normal virtual Interface for Internet availability and search at device manager for drivers via online. Windows will find “Intel(R) X540 Virtual Function”

Notice: This Interface will not shown in XenCenter – Virtual Network Interfaces