我要评分
获取效率
正确性
完整性
易理解

"host doesn't support passthrough of host PCI devices" Displayed During NIC Passthrough Configuration

Symptom

The error message "host doesn't support passthrough of host PCI devices" is displayed when SR-IOV NIC passthrough is configured for a VM.

Key Process and Cause Analysis

The system memory management unit (SMMU) or input/output memory management unit (IOMMU) must be enabled for the VM to configure NIC passthrough.

Conclusion and Solution

  1. Open the grub2.cfg file:
    vim /etc/grub.cfg
  2. Add the following content:
    iommu.passthrough=1

  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Restart the server for the configuration to take effect.