Proxmox VE 8.1 Kernel 6.5.13-5-pve ,无法支持核显 SR-IOV 的问题

  • Proxmox VE 8.1 Kernel 6.5.13-5-pve ,无法支持核显 SR-IOV 的问题已关闭评论
  • 24 次浏览
  • A+
所属分类:linux技术
摘要

我的之前的博客《利用显卡的SR-IOV虚拟GPU技术,实现一台电脑当七台用》介绍了 Proxmox VE 7.x 上启用核显虚拟化的方法。 并给出了两个脚本,快速启用核显的SR-IOV。该脚本在 Promox VE 7.x 和 8.x 都做了测试。

我的之前的博客《利用显卡的SR-IOV虚拟GPU技术,实现一台电脑当七台用》介绍了 Proxmox VE 7.x 上启用核显虚拟化的方法。 并给出了两个脚本,快速启用核显的SR-IOV。该脚本在 Promox VE 7.x 和 8.x 都做了测试。

近期重新在 Proxmox VE 8.1 上部署,发现无法正常工作。  经过检查发现是 i915-sriov-dkms 在 Proxmox VE Kernel 6.5.13-5-pve 上存在bug。参见 https://github.com/strongtz/i915-sriov-dkms/issues/151

该bug还没有同步到版本中。 

于是同步了改修改。打包到安装包中。 

大致的方法:

1、取得 https://github.com/strongtz/i915-sriov-dkms 得最新版本。

2、取补丁文件,覆盖到 当前版本。

拷贝 https://raw.githubusercontent.com/makazeu/i915-sriov-dkms/ffc23727f106995d89bc7ad32df4f1a3809ee737/drivers/gpu/drm/i915/display/intel_dp_mst.c   

到 i915-sriov-dkms/drivers/gpu/drm/i915/display/

然后执行之前得安装过程。

 

如果在支持核显 SR-IOV的系统上部署 vGPU虚拟化,可以按照如下三步:

1、安装最新的 Proxmox VE 8.1  
2、执行第一个脚本,更新版本,系统会自动重启。

curl -o- http://vdi.doracloud.cn:9000/software/sriov01.sh |bash

3、重启后,执行第二个脚本,系统自动重启。

curl -o- http://vdi.doracloud.cn:9000/software/sriov02.sh |bash

4、重启后,进入PVE,执行 lspci |grep VGA,就看到vGPU又出来了。 

root@pve01:~# lspci |grep VGA 00:02.0 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) 00:02.1 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) 00:02.2 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) 00:02.3 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) 00:02.4 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) 00:02.5 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) 00:02.6 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) 00:02.7 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)