PVE(Proxmox VE) 显卡直通

最近弄了个小server,安装了pve,安装了个win7和centos,想把集显直通给win7使用,捣鼓了下pve硬件直通还挺方便,记录一下。

1、修改grub,编辑文件/etc/default/grub,修改行“GRUB_CMDLINE_LINUX_DEFAULT=“quiet”,使其为“GRUB_CMDLINE_LINUX_DEFAULT=“quiet intel_iommu=on”,如果是amd cpu请改为:GRUB_CMDLINE_LINUX_DEFAULT=“quiet amd_iommu=on” 。执行指令“update-grub” 使修改生效。

~# vi /etc/default/grub
~# update-grub
 
Generating grub configuration file ...
 
Found linux image:   /boot/vmlinuz-4.15.17-1-pve
 
Found initrd image:   /boot/initrd.img-4.15.17-1-pve
 
Found memtest86+ image:   /boot/memtest86+.bin
 
Found memtest86+ multiboot image:   /boot/memtest86+_multiboot.bin
 
Adding boot menu entry for EFI firmware   configuration
 
done

2、新增模块。修改文件/etc/modules,加入如下的行

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

3、重启

4、pve web面板添加PCI设备,找到对应设备,完成!

5、启动win7,下载驱动精灵已经检测到显卡未安装驱动了,安装显卡驱动~

----------------------------------------2020年4月28日更新----------------------------------------
之前写这篇文章时没有交代环境和后续。我的环境是

主板:dq77kb

CPU:E3-1265L

PVE版本:5.3-8
安装好显卡驱动再次启动时蓝屏:

尝试了多种解决方案都没有解决,后来看论坛上别人说2-3代cpu核显pve没办法直通,好吧~~~
————————————————
版权声明:本文为CSDN博主「__BoBo」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xiaobo060/article/details/88564025

猜你喜欢

转载自blog.csdn.net/seaship/article/details/114573613