Intel NUC8i7BEH 实现核显直通 | 您所在的位置:网站首页 › nuc8加显卡 › Intel NUC8i7BEH 实现核显直通 |
Intel NUC8i7BEH 实现核显直通
发表于
2021-08-08
分类于
Tech
Disqus:
宿主机环境 虚拟化环境:Proxmox 7.0硬件:Intel NUC NUC8i7BEHBIOS:UEFI Mode 配置PVE开启 IOMMU修改 /etc/default/grub 文件找到 GRUB_CMDLINE_LINUX_DEFAULT 一行,替换为GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on video=efifb:off,vesafb:off"保存后执行 update-grub 更新grub 加载 VFIO 模块修改 /etc/modules 文件,添加以下内容 1234vfiovfio_iommu_type1vfio_pcivfio_virqfd 添加驱动黑名单修改 /etc/modprobe.d/pve-blacklist.conf 添加以下内容: 123blacklist snd_hda_intelblacklist snd_hda_codec_hdmiblacklist i915 绑定显卡到 VFIO执行 lspci -n | grep -E "0300" 查看并记录核显 VendorID 和 DeviceID 100:02.0 0300: 8086:3ea5 (rev 01)修改 /etc/modprobe.d/vfio.conf 添加如下内容options vfio-pci ids=8086:3ea5 验证重启,若启动界面卡在 Loading initial ramdisk ... 表示核显已被屏蔽执行 lsmod | grep vfio 得到类似输出,表示已加载成功 12345vfio_pci 57344 2vfio_virqfd 16384 1 vfio_pciirqbypass 16384 14 vfio_pci,kvmvfio_iommu_type1 36864 1vfio 36864 7 vfio_iommu_type1,vfio_pci 提取核显ROMTLDR: 已提取好的ROM文件 参照 https://github.com/tmbeck/nuc-passthrough 提取核显ROM,放置到/usr/share/kvm ,下文假设文件路径为 /usr/share/kvm/intel-iris-655.rom 配置虚拟机参数 Machine 必须设置为默认的 i440fx ,否则启动会提示 legacy IGD assignment is not compatible with q35 Display 必须设置为 none ,否则启动会提示 legacy IGD assignment requires VGA mode to be 'none' 添加显卡 PCI 设备,NUC 对应 ID 0000:00:02.0 手工修改虚拟机配置修改/etc/pve/qemu-server/.conf 文件, 对于虚拟机ID,找到添加的显卡设备一行,追加 ,legacy-igd=1,romfile=intel-iris-655.rom ,启用 IDG Passthrough和加载ROM如 hostpci0: 0000:00:02.0修改为 hostpci0: 0000:00:02.0,legacy-igd=1,romfile=intel-iris-655.rom 尝试启动虚拟机提前确认好远程桌面服务启动正常,否则由于noVNC被禁用,无法控制操作系统。进入设备管理器,检查显示驱动是否正常工作,没有感叹号提示。此外可以选择直通USB控制器 0000:00:14.0,获得更好的使用体验。 Referencehttps://pve.proxmox.com/wiki/Pci_passthroughhttps://github.com/tmbeck/nuc-passthroughhttps://blog.timzhong.top/2020/09/27/pve-direct-pcie/https://www.10bests.com/win10-htpc-on-pve/ 本文作者: KiritoA 本文链接: https://kiritox.me/zh-CN/igd-passthrough-for-intel-nuc8i7beh/ 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!Welcome to my other publishing channels RSS # NUC8i7BEH # Proxmox # 虚拟化 Shutdown RabbitMQ consumer gracefully IGD passthrough for Intel NUC8i7BEH |
CopyRight 2018-2019 实验室设备网 版权所有 |