Search Docs...
⌘ K
OverviewDeploymentManagementOperationReference

Configuring NIC SR-IOV passthrough for virtual machines

When using the SR-IOV feature of a NIC, you need to complete the corresponding configuration in the ACOS cluster. The specific procedure is shown in the following figure.

Precaution

You can only perform the SR-IOV related operations on one network port on one host at a time, including switching its use to SR-IOV passthrough and editing the number of SR-IOV passthrough NICs. You cannot operate on two ports simultaneously.

Procedure

  1. Before deploying the ACOS cluster, ensure that IOMMU and SR-IOV are enabled in the BIOS of all hosts that require the SR-IOV feature.

    For details, refer to Checking BIOS settings to configure the BIOS.

  2. Log in to AOC and enable IOMMU on the hosts that require the SR-IOV feature.

    For details, refer to Enabling IOMMU. Once enabled, the host IOMMU status will change to Need reboot.

  3. Restart the host.

    For details, refer to Shutting down or rebooting a host.

  4. Edit the network port that needs to enable the SR-IOV feature, switch the Use of port to SR-IOV passthrough, and set the number of passthrough NICs.

    For details, refer to Switching the use of port > Switching to SR-IOV passthrough.

    After the configuration is complete, if you need to modify the number of SR-IOV passthrough NICs, you can refer to Reslicing an SR-IOV passthrough NIC to reset the number of passthrough NICs.

  5. Return to the host's network port list and confirm that the following information has been added to the edited port in the above steps, indicating that SR-IOV has been enabled on this port.

    • Host IOMMU status: In effect

    • SR-IOV status: Enabled

    • Total SR-IOV passthrough NICs: Displays the value set in Step 4

    • Used SR-IOV passthrough NICs: 0

    Note:

    If SR-IOV status shows Need reboot at this time, you need to refer to Step 3 to restart the host again to make the SR-IOV function effective.

  6. Refer to Step 2-5 above to enable SR-IOV for network ports that support the SR-IOV feature on other hosts.

  7. Mount SR-IOV passthrough NICs for virtual machines on the hosts with network ports that have SR-IOV enabled.

  8. Enter the virtual machine list, select the virtual machine with SR-IOV passthrough NICs mounted, and view Network device in the virtual machine details panel that pops up on the right. The icon of the SR-IOV passthrough NIC will have the letters SR on it.