Proxmox VE 8.1 Kernel 6.5.13-5-pve ,无法支持核显 SR-IOV 的问题
  HMdOVT4koEwl 2024年04月11日 51 0

我的之前的博客《利用显卡的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)

 

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2024年04月11日 0

暂无评论

推荐阅读
  VExS4Gg6g4KD   8天前   23   0   0 Linux
  VExS4Gg6g4KD   8天前   21   0   0 Linux
  VExS4Gg6g4KD   8天前   24   0   0 Linux
  X6z51Yzaj35p   8天前   21   0   0 Linux
  T0lscH4Qgx5j   13天前   26   0   0 Linux
  u05qsPMWcUGd   13天前   28   0   0 Linux
  VExS4Gg6g4KD   8天前   20   0   0 Linux
  iNBin04WVNys   8天前   20   0   0 Linux
  QP84hQv41ZIv   8天前   18   0   0 Linux