PVE相关 配置显卡直通
1.pve安装pevtools,开启pcie设备直通
2.确认IOMMU是否启用
dmesg | grep -e DMAR -e IOMMU
3.确定显卡的PCI地址
使用lspci命令找到显卡的PCI地址:
lspci | grep -i vga
4.编辑/etc/modules文件
vi /etc/modules
确保加载以下模块:
点击查看代码
``` vfio vfio_iommu_type1 vfio_pci vfio_virqfd ```5.添加PCI到PVE
查询显卡PCI的ID:
lspci -nnk | grep -A3 -i vga

新建vfio.conf
/etc/modprobe.d/vfio.conf
options vfio-pci ids=1002:67df
更新并重启PVE:
update-initramfs -u
reboot
浙公网安备 33010602011771号