SR-IOV not working on Hyper-V server 2016 RRS feed

  • Question

  • Hi,

    I have a server running Hyper-V server 2016 and I am trying to use SR-IOV on an Ubuntu 18.04 LTS virtual machine. The hardware configuration is Dell R630 with Intel X710 network adapter. Please note that there is no issue with SR-IOV when running Ubuntu 18.04 / KVM on this server so I know that the issue does not come from the hardware.

    The following link https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/supported-ubuntu-virtual-machines-on-hyper-v says that it a supported configuration.

    Here is the issue: I configured SR-IOV on both the vSwitch connected to one port of the X710 board and one of the network adapters of my virtual machine. Network adapter status is the following in Hyper-V GUI: "OK (SR-IOV enabled)". However when I boot my virtual machine, I get the following error in Hyper-V server event viewer: "Failed to allocate virtual function for NIC 6CA4D1EF-E8B6-4FD1-8456-75B56950979C--F8CFAFF8-B7CA-4F40-895F-DDE0BB7EA8BF (Friendly Name: Network Adapter), status = {Drive Not Ready}. The drive is not ready for use; its door may be open. Please check drive %hs and make sure that a disk is inserted and that the drive door is closed.". And I get the following error message every 5 seconds in /var/log/kern.log on the virtual machine: "Feb 26 07:04:08 ubuntu-18 kernel: [ 1674.718553] i40evf 8b8c:00:02.0: Device is still in reset (-16), retrying
    Feb 26 07:04:08 ubuntu-18 kernel: [ 1674.718556] i40evf 8b8c:00:02.0: Failed to communicate with PF; waiting before retry".

    How can I fix it ?

    Thanks for your help,


    Friday, March 1, 2019 12:46 PM

All replies

  • This might have to do with the driver version used on the host side.

    Please try to update that one and the firmware for the network card.

    You might also want to double check with PowerShell the number of VFs the host can expose/handle, for example with #Get-NetAdapterSriov.

    The NumVFs is the property to check.

    Monday, March 11, 2019 7:23 AM