pve 设置 /etc/default/grub 代码: GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream" /etc/modules 代码: vfio vfio_iommu_type1 vfio_pci vfio_virqfd kvmgt update-initramfs -u update-grub 更新引导和内核 执行 dmesg | grep -e DMAR -e IOMMU 代码: root@pve:~# dmesg | grep -e DMAR -e IOMMU [ 0.000000] Warning: PCIe ACS overrides enabled; This may allow non-IOMMU protected peer-to-peer DMA [ 0.013922] ACPI: DMAR 0x00000000CF3B3668 0001C0 (v01 DELL PE_SC3 00000001 DELL 00000001) [ 0.013973] ACPI: Reserving DMAR table memory at [mem 0xcf3b3668-0xcf3b3827] [ 0.117975] DMAR: IOMMU enabled [ 0.286617] DMAR-IR: This system BIOS has enabled interrupt remapping [ 0.711469] DMAR: Host address width 40 [ 0.711471] DMAR: DRHD base: 0x000000fed90000 flags: 0x1 [ 0.711481] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap c90780106f0462 ecap f020f6 [ 0.711484] DMAR: RMRR base: 0x000000cf4c8000 end: 0x000000cf4dffff [ 0.711486] DMAR: RMRR base: 0x000000cf4b1000 end: 0x000000cf4bffff [ 0.711487] DMAR: RMRR base: 0x000000cf4a1000 end: 0x000000cf4a1fff [ 0.711488] DMAR: RMRR base: 0x000000cf4a3000 end: 0x000000cf4a3fff [ 0.711489] DMAR: RMRR base: 0x000000cf4a5000 end: 0x000000cf4a5fff [ 0.711490] DMAR: RMRR base: 0x000000cf4a7000 end: 0x000000cf4a7fff [ 0.711491] DMAR: RMRR base: 0x000000cf4a9000 end: 0x000000cf4a9fff [ 0.711493] DMAR: RMRR base: 0x000000cf4c0000 end: 0x000000cf4c0fff [ 0.711494] DMAR: RMRR base: 0x000000cf4c2000 end: 0x000000cf4c2fff [ 0.711495] DMAR: ATSR flags: 0x0 [ 0.711525] DMAR: No SATC found [ 0.711532] DMAR: dmar0: Using Queued invalidation [ 0.714147] DMAR: Intel(R) Virtualization Technology for Directed I/O [ 1247.961709] vfio_iommu_type1_attach_group: No interrupt remapping support. Use the module param "allow_unsafe_interrupts" to enable VFIO IOMMU support on this platform [ 1503.558930] vfio_iommu_type1_attach_group: No interrupt remapping support. Use the module param "allow_unsafe_interrupts" to enable VFIO IOMMU support on this platform [ 1520.492913] vfio_iommu_type1_attach_group: No interrupt remapping support. Use the module param "allow_unsafe_interrupts" to enable VFIO IOMMU support on this platform 错误代码 代码: () kvm: -device vfio-pci,host=0000:08:00.0,id=hostpci0,bus=pci.0,addr=0x10: vfio 0000:08:00.0: failed to setup container for group 26: Failed to set iommu for container: Operation not permitted TASK ERROR: start failed: QEMU exited with code 1 更新了7.1的内核 最后测试 网卡 阵列卡 扩展卡都是一样的错误,找不到原因在什么那里
不贴出lspci很难排除。首先要看你0000:08:00是什么设备 另外你那个报错得在/etc/modprobe.d/下某个conf文件(比如vfio_iommu_type1.conf)添加 options vfio_iommu_type1 allow_unsafe_interrupts=1 或者 GRUB_CMDLINE_LINUX_DEFAULT 中添加vfio_iommu_type1.allow_unsafe_interrupts=1