翼度科技»论坛 云主机 LINUX 查看内容

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

11

主题

11

帖子

33

积分

新手上路

Rank: 1

积分
33
我的之前的博客《利用显卡的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、执行第一个脚本,更新版本,系统会自动重启。
  1. curl -o- http://vdi.doracloud.cn:9000/software/sriov01.sh |bash
复制代码
3、重启后,执行第二个脚本,系统自动重启。
  1. curl -o- http://vdi.doracloud.cn:9000/software/sriov02.sh |bash
复制代码
4、重启后,进入PVE,执行 lspci |grep VGA,就看到vGPU又出来了。 
  1. root@pve01:~# lspci |grep VGA
  2. 00:02.0 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
  3. 00:02.1 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
  4. 00:02.2 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
  5. 00:02.3 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
  6. 00:02.4 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
  7. 00:02.5 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
  8. 00:02.6 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
  9. 00:02.7 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c)
复制代码
 

来源:https://www.cnblogs.com/doracloud/p/18129868
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 我们会及时删除侵权内容,谢谢合作!

举报 回复 使用道具