收起左侧

PVE下如何优雅的启用飞牛核显SRIOV?

2
回复
733
查看
[ 复制链接 ]

9

主题

65

回帖

0

牛值

fnOS系统内测组

2025-3-6 22:58:17 显示全部楼层 阅读模式
悬赏1飞牛币未解决

[i=s] 本帖最后由 mundane 于 2025-3-7 00:46 编辑 [/i]<br /> <br />

[i=s] 本帖最后由 mundane 于 2025-3-7 00:44 编辑 [/i]

[i=s] 本帖最后由 mundane 于 2025-3-7 00:24 编辑

[i=s] 本帖最后由 mundane 于 2025-3-6 23:01 编辑

已知飞牛最新测试版已经是6.12内核了。

如果pve开启了核显sriov,直通了vf核显给飞牛,默认是无法使用核显硬件解码的。

之前皮蛋大佬编译了旧内核的i915 vf核显,替换后可以正常解码。

但是新内核无法支持。

按核显仓库教程

https://github.com/strongtz/i915-sriov-dkms

Linux Guest Installation Steps (Tested Ubuntu 24.04/Kernel 6.8)

We will need to run the same driver under Linux guests.

  1. Install build tools
    apt install build-* dkms linux-headers-$(uname -r) linux-modules-extra-$(uname -r)
  2. Download and install the .deb
    wget -O /tmp/i915-sriov-dkms_2025.02.03_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.02.03/i915-sriov-dkms_2025.02.03_amd64.deb"
    dpkg -i /tmp/i915-sriov-dkms_2025.02.03_amd64.deb
  3. Update kernel parameters nano /etc/default/grub and change GRUB_CMDLINE_LINUX_DEFAULT to i915.enable_guc=3 module_blacklist=xe, or add to it if you have other arguments there already. Example:
    GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on i915.enable_guc=3 module_blacklist=xe"
  4. Once that's done, update grub and initramfs, then reboot.
    update-grub
    update-initramfs -u
  5. Once the VM is back up again, do dmesg | grep i915 to see if your VF is recognized by the kernel. You should also check if xe is blacklisted correctly by running lspci -nnk to see which driver is in use by the VF.
  6. Optionally, install vainfo by running apt install vainfo, then do vainfo to see if the iGPU has been picked up by the VAAPI.
  7. If OpenCL is desired:
    apt install intel-opencl-icd
    apt install clinfo
    clinfo

因为测试版自带了linux-headers,所以只需要按照教程直接安装依赖

------------------------dkms编译安装----------------------- apt-mark unhold libc6:amd64 apt install libc6-dev apt install -y build-essential dkms

Building for 6.12.5-trim Building initial module for 6.12.5-trim cp: cannot stat '/lib/modules/6.12.5-trim/build/.config': No such file or directory Done.

可能是飞牛官方内核有修改,第一步就无法进行下去了。

无脑 sudo apt update 和 sudo apt upgrade 会破坏官方依赖。

出现数据库报错等等问题,

请大佬分享下如何最小化对飞牛OS的修改,完善sriov驱动安装呢?

——————————

dmesg | grep i915 [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.12.5-trim root=UUID=320849a9-7f0f-48e1-be32-8195210bbf62 ro modprobe.blacklist=pcspkr quiet intel_iommu=on i915.enable_guc=3 module_blacklist=xe [ 0.010608] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.12.5-trim root=UUID=320849a9-7f0f-48e1-be32-8195210bbf62 ro modprobe.blacklist=pcspkr quiet intel_iommu=on i915.enable_guc=3 module_blacklist=xe [ 4.304105] i915: loading out-of-tree module taints kernel. [ 4.304136] i915: module verification failed: signature and/or required key missing - tainting kernel [ 4.304245] i915: Unknown symbol intel_pxp_irq_enable (err -2) [ 4.304360] i915: Unknown symbol intel_pxp_debugfs_register (err -2) [ 4.304527] i915: Unknown symbol intel_pxp_resume_complete (err -2) [ 4.304563] i915: Unknown symbol intel_pxp_gsccs_is_ready_for_sessions (err -2) [ 4.304745] i915: Unknown symbol intel_pxp_terminate (err -2) [ 4.304814] i915: Unknown symbol intel_pxp_runtime_suspend (err -2) [ 4.304963] i915: Unknown symbol intel_pxp_session_management_init (err -2) [ 4.305532] i915: Unknown symbol intel_pxp_irq_handler (err -2) [ 4.306218] i915: Unknown symbol intel_pxp_suspend (err -2) [ 4.306268] i915: Unknown symbol intel_pxp_gsccs_init (err -2) [ 4.306753] i915: Unknown symbol intel_pxp_gsccs_fini (err -2) [ 4.306804] i915: Unknown symbol intel_pxp_suspend_prepare (err -2) [ 4.307013] i915: Unknown symbol intel_pxp_irq_disable (err -2) [ 4.307096] i915: Unknown symbol intel_pxp_runtime_resume (err -2)

收藏
送赞
分享

1

主题

6

回帖

0

牛值

江湖小虾

2025-5-17 15:18:24 显示全部楼层

我也是一样的情况,然后卸载了之前安装的,用飞牛商店的驱动就好了

现在商店只有i915-sriov-dkms这一个英特尔驱动力,而且好像是飞牛作为宿主机的驱动,pve虚拟机里的飞牛安装哪个驱动啊,请问  详情 回复
2025-6-14 22:27

4

主题

32

回帖

0

牛值

江湖小虾

社区上线纪念勋章

2025-6-14 22:27:18 显示全部楼层
xem 发表于 2025-5-17 15:18
我也是一样的情况,然后卸载了之前安装的,用飞牛商店的驱动就好了

现在商店只有i915-sriov-dkms这一个英特尔驱动力,而且好像是飞牛作为宿主机的驱动,pve虚拟机里的飞牛安装哪个驱动啊,请问
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则