shell里面输入命令: vi /etc/default/grub

在里面找到:GRUB_CMDLINE_LINUX_DEFAULT="quiet"

然后修改为:`GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"`或者`GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on usbcore.autosuspend=-1"`


如果是amd cpu请改为:GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"

在更新一下:update-grub

到这里先不要重启。

继续在shell中输入:vi /etc/modules ,查看modules中是否有

#vfio
#vfio_iommu_type1
#vfio_pci
#vfio_virqfd 

如果没有请添加。
然后reboot重新启动

Last modification:December 29, 2021
If you think my article is useful to you, please feel free to appreciate