|
本帖最后由 WeDone 于 2019-5-8 17:36 编辑
然后再按官方的教程操作一遍就可以了- IOMMU
- The IOMMU has to be activated on the kernel commandline. The easiest way is to enable trough grub. Edit ‘/etc/default/grub’ and add the following to the GRUB_CMDLINE_LINUX_DEFAULT variable:
- for Intel CPUs:
- intel_iommu=on
- for AMD CPUs:
- amd_iommu=on
- To bring this change in effect, make sure you run:
- # update-grub
- Kernel Modules
- You have to make sure the following modules are loaded. This can be achieved by adding them to ‘/etc/modules’
- vfio
- vfio_iommu_type1
- vfio_pci
- vfio_virqfd
- After changing anything modules related, you need to refresh your initramfs. On Proxmox VE this can be done by executing:
- # update-initramfs -u -k all
- Finish Configuration
- Finally reboot to bring the changes into effect and check that it is indeed enabled.
- # dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
- should display that IOMMU, Directed I/O or Interrupt Remapping is enabled, depending on hardware and kernel the exact message can vary.
- It is also important that the device(s) you want to pass through are in a separate IOMMU group. This can be checked with:
- # find /sys/kernel/iommu_groups/ -type l
复制代码
|
|