ivanhao / pvetools

proxmox ve tools script(debian9+ can use it).Including email, samba, NFS set zfs max ram, nested virtualization ,docker , pci passthrough etc. for english user,please look the end of readme.
GNU General Public License v3.0
4.2k stars 512 forks source link

一键开启PCIE直通功能在使用EFI模式启动的PVE上不可用 Can‘t enable iommu on pve booted from uefi #29

Open A0nameless0man opened 3 years ago

A0nameless0man commented 3 years ago

重现/Reproduce

  1. 安装一台使用EFI启动的pve实例

  2. 使用脚本开启PCIE直通

  3. 重启

  4. 直通并未开启

  5. Install pve using uefi

  6. use this script to enable iommu

  7. reboot

  8. iommu is not enabled

原因/Reason

当使用EFI启动时,intel_iommu=on 应当被写入到 /etc/kernel/cmdline 然后运行 proxmox-boot-tool refresh 以写入 loader/entries/proxmox-*.conf

When boot from uefi, option intel_iommu=on should be writen to /etc/kernel/cmdline and then run proxmox-boot-tool refresh to make sure the option is writen to loader/entries/proxmox-*.conf

修复方法/FIX

推荐直接不管启动类型,直接执行上述操作

I recommand just do the operation descirbed above with out consider the boot type.