API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationSecurityReferenceGlossary

Configuring NIC SR-IOV passthrough for virtual machines

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

Precaution

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

Configuration process

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

    For detailed instructions, refer to the section on Checking BIOS settings.

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

    For detailed instructions, refer to the section on Enabling IOMMU. Once enabled, the host IOMMU status will change to Need reboot.

    Information:

    Go to the network port list of the host. If the SR-IOV status shows Driver not ready, you need to click Reconfigure to reconfigure the SR-IOV driver for the network port. The configuration takes effect after the host restarts.

  3. Restart the host.

    For detailed instructions, refer to the section on Restarting a node.

  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 detailed instructions, refer to the section on Switching the port usage.

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

  5. Return to the network port list of the host and confirm that the edited port includes the following information, 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 configured value in step 4.

    • Used SR-IOV passthrough NICs: 0

  6. Review step 2 - 5 to enable SR-IOV for network ports that support this 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 that has SR-IOV passthrough NIC mounted, and view Network device in the opened details panel on the right. The icon of the SR-IOV passthrough NIC will include the SR label.