收起左侧

ESXI直通GPU,无法调用

0
回复
27
查看
[ 复制链接 ]

1

主题

1

回帖

0

牛值

江湖小虾

2026-6-23 09:17:40 显示全部楼层 阅读模式

飞牛OS核显硬解异常问题反馈

系统版本

飞牛OS X86版

(FnOS 1.1.3107)


设备环境

硬件环境

CPU:
Intel Core i7-1165G7(Tiger Lake)

核显:
Intel Iris Xe Graphics

内存:
8GB

硬盘:
25GB OS

350GB DISK1

500GB DISK2


虚拟化环境1

平台:
VMware ESXi 8.0U3

启动方式:
EFI

GPU模式:
PCIe Passthrough 直通 Intel Iris Xe Graphics


虚拟化环境2

平台:
Proxmox VE

GPU模式:
PCIe Passthrough 直通 Intel Iris Xe Graphics


网络环境

局域网访问


BUG现象

同一台设备安装飞牛OS时:

场景一:物理机安装

飞牛OS可正常识别 Intel Iris Xe Graphics。

飞牛影视、飞牛相册可正常调用核显进行硬件转码。

视频播放及转码均正常。


场景二:ESXi 8.0U3 虚拟机

已将 Intel Iris Xe Graphics 通过 PCIe Passthrough 直通至飞牛OS虚拟机。

飞牛OS中能够识别 Intel Xe Graphics 显卡。

系统中可同时看到:

  • VMware 虚拟显卡
  • Intel Xe 核显

但飞牛影视、飞牛相册无法调用 Intel Xe 核显进行硬件转码。

播放视频时仅软件转码。

GPU占用始终为0。


场景三:Proxmox VE 虚拟机

同样将 Intel Iris Xe Graphics 通过 PCIe Passthrough 直通至飞牛OS。

现象与 ESXi 完全一致:

  • 飞牛OS能够识别 Xe 显卡
  • 驱动已加载
  • 系统可看到核显设备
  • 无法进行硬件转码
  • 仅软件转码

预期结果

在虚拟化环境下完成 GPU Passthrough 后:

飞牛OS应能够正常调用 Intel Iris Xe Graphics 进行硬件解码及硬件转码。

与物理机安装时保持一致。


实际结果

Intel Xe Graphics 被系统识别,但无法被飞牛影视、飞牛相册调用。

表现为:

  • 硬件转码不可用
  • GPU占用为0
  • 视频播放时仅CPU软件转码

复现步骤

  1. 安装 ESXi 8.0U3 或 Proxmox VE
  2. 创建飞牛OS虚拟机
  3. 将 Intel Iris Xe Graphics 设置为 PCIe Passthrough
  4. 启动飞牛OS
  5. 确认系统已识别 Intel Xe Graphics
  6. 安装并启用飞牛影视、飞牛相册
  7. 开启 Intel QSV / VAAPI 硬件转码
  8. 播放需要转码的视频

结果:

无法触发硬件转码,仅软件CPU转码、飞牛相册无法调用GPU识别


出现频率

必现

ESXi环境:100%复现

PVE环境:100%复现


已验证情况

已验证:

✓ **机安装飞牛OS正常

✓ Intel核显硬件正常

✓ BIOS中核显正常开启

✓ ESXi直通成功

✓ PVE直通成功

✓ 飞牛OS能够识别 Xe Graphics

✓ 问题同时存在于 ESXi 与 PVE

因此怀疑:

飞牛OS在虚拟化环境下对于 Intel Xe Graphics 的 DRM Render Node、VAAPI 或 Intel QSV 初始化存在兼容性问题。


建议开发协助排查

建议协助确认以下项目:

  1. /dev/dri/renderD128 是否正确生成
  2. VAAPI 是否正常初始化
  3. Intel QSV 是否成功加载
  4. xe 驱动与 i915 驱动兼容性
  5. 虚拟化环境下 Intel Xe Graphics Passthrough 支持情况
  6. 飞牛影视硬件转码、飞牛相册GPU识别调用链是否正常

附件

QQ20260623-085400.png

NAS:/$ lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge [8086:7190] (rev 01)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
Kernel driver in use: agpgart-intel
Kernel modules: intel_agp
00:01.0 PCI bridge [0604]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge [8086:7191] (rev 01)
Kernel modules: shpchp
00:07.0 ISA bridge [0601]: Intel Corporation 82371AB/EB/MB PIIX4 ISA [8086:7110] (rev 08)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
Kernel driver in use: ata_piix
Kernel modules: ata_piix, pata_acpi, ata_generic
00:07.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)
Subsystem: VMware Virtual Machine Chipset [15ad:1976]
Kernel modules: i2c_piix4
00:07.7 System peripheral [0880]: VMware Virtual Machine Communication Interface [15ad:0740] (rev 10)
Subsystem: VMware Virtual Machine Communication Interface [15ad:0740]
Kernel driver in use: vmw_vmci
Kernel modules: vmw_vmci
00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
Subsystem: VMware SVGA II Adapter [15ad:0405]
Kernel driver in use: vmwgfx
Kernel modules: vmwgfx
02:00.0 Serial Attached SCSI controller [0107]: VMware PVSCSI SCSI Controller [15ad:07c0] (rev 02)
DeviceName: SCSI0
Subsystem: VMware PVSCSI SCSI Controller [15ad:07c0]
Kernel driver in use: vmw_pvscsi
Kernel modules: vmw_pvscsi
02:01.0 USB controller [0c03]: VMware USB1.1 UHCI Controller [15ad:0774]
DeviceName: usb
Subsystem: VMware USB1.1 UHCI Controller [15ad:1976]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
02:02.0 SATA controller [0106]: Intel Corporation Tiger Lake-LP SATA Controller [8086:a0d3] (rev 20)
DeviceName: pciPassthru0
Subsystem: Intel Corporation Tiger Lake-LP SATA Controller [8086:7270]
Kernel driver in use: ahci
Kernel modules: ahci
02:03.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev bb)
DeviceName: pciPassthru1
Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [Wilkins Peak 2] [8086:4070]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
02:04.0 Ethernet controller [0200]: VMware VMXNET3 Ethernet Controller [15ad:07b0] (rev 01)
DeviceName: Ethernet0
Subsystem: VMware VMXNET3 Ethernet Controller [15ad:07b0]
Kernel driver in use: vmxnet3
Kernel modules: vmxnet3
02:05.0 USB controller [0c03]: VMware USB2 EHCI Controller [15ad:0770]
DeviceName: ehci
Subsystem: VMware USB2 EHCI Controller [15ad:0770]
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
02:06.0 SATA controller [0106]: VMware SATA AHCI controller [15ad:07e0]
DeviceName: sata0
Subsystem: VMware SATA AHCI controller [15ad:07e0]
Kernel driver in use: ahci
Kernel modules: ahci
02:07.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)
DeviceName: pciPassthru2
Subsystem: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:2212]
Kernel driver in use: i915
Kernel modules: i915, xe
NAS:/$ ls -al /dev/dri
total 0
drwxr-xr-x  3 root root        140 Jun 22 13:30 .
drwxr-xr-x 22 root root       4280 Jun 22 13:30 ..
drwxr-xr-x  2 root root        120 Jun 22 13:30 by-path
crw-rw----  1 root video  226,   0 Jun 22 13:30 card0
crw-rw----  1 root video  226,   1 Jun 22 13:30 card1
crw-rw----  1 root render 226, 128 Jun 22 13:30 renderD128
crw-rw----  1 root render 226, 129 Jun 22 13:30 renderD129
NAS:~# vainfo
Trying display: drm
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/trim/lib/mediasrv/lib/dri/vmwgfx_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/vmwgfx_drv_video.so
libva info: Trying to open /usr/lib/dri/vmwgfx_drv_video.so
libva info: Trying to open /usr/local/lib/dri/vmwgfx_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
NAS:~# dmesg | grep -Ei "i915|xe|drm|guc|huc"
[    0.000000] NX (Execute Disable) protection: active
[    0.039351] MTRR map: 5 entries (2 fixed + 3 variable; max 18), built from 8 variable MTRRs
[    0.047244] ACPI: Reserving FACS table memory at [mem 0xea00000-0xea0003f]
[    0.047244] ACPI: Reserving FACS table memory at [mem 0xea00000-0xea0003f]
[    0.100957] ... fixed-purpose counters:    0
[    0.100957] ... fixed-purpose bitmap:      0000000000000000
[    0.113914] PCI: ECAM [mem 0xe0000000-0xe7ffffff] (base 0xe0000000) for domain 0000 [bus 00-7f]
[    0.151684] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff window]
[    0.187033] system 00:05: [mem 0xe0000000-0xe7ffffff] has been reserved
[    0.203893] pci_bus 0000:00: resource 13 [mem 0xe0000000-0xefffffff window]
[    0.209628] RAPL PMU: API unit is 2^-32 Joules, 0 fixed counters, 10737418240 ms ovfl timer
[    0.227940] ACPI: bus type drm_connector registered
[    0.230084] [drm] Initialized simpledrm 1.0.0 for simple-framebuffer.0 on minor 0
[    0.233211] simple-framebuffer simple-framebuffer.0: [drm] fb0: simpledrmdrmfb frame buffer device
[    0.577826] evm: security.SMACK64EXEC (disabled)
[    0.706215] vmwgfx 0000:00:0f.0: [drm] FIFO at 0x00000000ff000000 size is 8192 KiB
[    0.706225] vmwgfx 0000:00:0f.0: [drm] VRAM at 0x00000000f0000000 size is 131072 KiB
[    0.706241] vmwgfx 0000:00:0f.0: [drm] Running on SVGA version 2.
[    0.706248] vmwgfx 0000:00:0f.0: [drm] Capabilities: rect copy, cursor, cursor bypass, cursor bypass 2, 8bit emulation, alpha cursor, extended fifo, multimon, pitchlock, irq mask, display topology, gmr, traces, gmr2, screen object 2, command buffers, command buffers 2, gbobject, dx, hp cmd queue, no bb restriction, cap2 register,
[    0.706256] vmwgfx 0000:00:0f.0: [drm] Capabilities2: grow otable, intra surface copy, dx2, gb memsize 2, screendma reg, otable ptdepth2, non ms to ms stretchblt, cursor mob, mshint, cb max size 4mb, dx3, frame type, trace full fb, extra regs, lo staging,
[    0.706420] vmwgfx 0000:00:0f.0: [drm] DMA map mode: Caching DMA mappings.
[    0.706561] vmwgfx 0000:00:0f.0: [drm] Legacy memory limits: VRAM = 4096 KiB, FIFO = 256 KiB, surface = 0 KiB
[    0.706562] vmwgfx 0000:00:0f.0: [drm] MOB limits: max mob size = 16384 KiB, max mob pages = 4096
[    0.706564] vmwgfx 0000:00:0f.0: [drm] Max GMR ids is 64
[    0.706564] vmwgfx 0000:00:0f.0: [drm] Max number of GMR pages is 65536
[    0.706565] vmwgfx 0000:00:0f.0: [drm] Maximum display memory size is 16384 KiB
[    0.709332] vmwgfx 0000:00:0f.0: [drm] Screen Target display unit initialized
[    0.711236] vmwgfx 0000:00:0f.0: [drm] Fifo max 0x00040000 min 0x00001000 cap 0x0000077f
[    0.711381] vmwgfx 0000:00:0f.0: [drm] Using command buffers with DMA pool.
[    0.711385] vmwgfx 0000:00:0f.0: [drm] Available shader model: Legacy.
[    0.711707] [drm] Initialized vmwgfx 2.21.0 for 0000:00:0f.0 on minor 0
[    0.712360] fbcon: vmwgfxdrmfb (fb0) is primary device
[    0.715263] vmwgfx 0000:00:0f.0: [drm] fb0: vmwgfxdrmfb frame buffer device
[    1.396748] i915: You are using the i915-sriov-dkms module, a ported version of the i915/xe module with SR-IOV support.
[    1.396750] i915: Please file any bug report at https://github.com/strongtz/i915-sriov-dkms/issues/new.
[    1.396751] i915: Module Homepage: https://github.com/strongtz/i915-sriov-dkms
[    1.397208] i915 0000:02:07.0: enabling device (0000 -> 0003)
[    1.397737] i915 0000:02:07.0: [drm] Found tigerlake/uy (device ID 9a49) integrated display version 12.00 stepping C0
[    1.398397] i915 0000:02:07.0: [drm] VT-d active for gfx access
[    1.398453] i915 0000:02:07.0: [drm] Using Transparent Hugepages
[    1.398846] i915 0000:02:07.0: ROM [??? 0x00000000 flags 0x20000000]: can't assign; bogus alignment
[    1.398849] i915 0000:02:07.0: [drm] Failed to find VBIOS tables (VBT)
[    1.399076] i915 0000:02:07.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    1.400043] i915 0000:02:07.0: [drm] Finished loading DMC firmware i915/tgl_dmc_ver2_12.bin (v2.12)
[    2.303773] i915 0000:02:07.0: [drm] [ENCODER:345:DDI A/PHY A] failed to retrieve link info, disabling eDP
[    2.307714] i915 0000:02:07.0: [drm] GT0: GuC firmware i915/tgl_guc_70.1.1.bin version 70.1.1
[    2.307719] i915 0000:02:07.0: [drm] GT0: HuC firmware i915/tgl_huc_7.9.3.bin version 7.9.3
[    2.311054] i915 0000:02:07.0: [drm] GT0: HuC: authenticated for all workloads
[    2.311531] i915 0000:02:07.0: [drm] GT0: GUC: submission enabled
[    2.311533] i915 0000:02:07.0: [drm] GT0: GUC: SLPC enabled
[    2.311969] i915 0000:02:07.0: [drm] GT0: GUC: RC enabled
[    2.313662] i915 0000:02:07.0: [drm] Protected Xe Path (PXP) protected content support initialized
[    2.314174] [drm] Initialized i915 1.6.0 for 0000:02:07.0 on minor 1
[    2.322474] i915 0000:02:07.0: [drm] Cannot find any crtc or sizes
[    2.353464] i915 0000:02:07.0: [drm] Cannot find any crtc or sizes
[    2.361587] i915 0000:02:07.0: [drm] Cannot find any crtc or sizes
[    2.640387] xe: You are using the i915-sriov-dkms module, a ported version of the i915/xe module with SR-IOV support.
[    2.640388] xe: Please file any bug report at https://github.com/strongtz/i915-sriov-dkms/issues/new.
[    2.640389] xe: Module Homepage: https://github.com/strongtz/i915-sriov-dkms
[    3.683541] systemd[1]: Configuration file /etc/systemd/system/webdav.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.683762] systemd[1]: Configuration file /etc/systemd/system/usersrv.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.683970] systemd[1]: Configuration file /etc/systemd/system/upnp.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.684182] systemd[1]: Configuration file /etc/systemd/system/trim_upload.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.684425] systemd[1]: Configuration file /etc/systemd/system/trim_trashbind.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.684638] systemd[1]: Configuration file /etc/systemd/system/trim_tfa.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.685294] systemd[1]: Configuration file /etc/systemd/system/trim_sharelink.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.685568] systemd[1]: Configuration file /etc/systemd/system/trim_sac.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.685803] systemd[1]: Configuration file /etc/systemd/system/trim_raid_check.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.686259] systemd[1]: Configuration file /etc/systemd/system/trim_nginx.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.686510] systemd[1]: Configuration file /etc/systemd/system/trim_main.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.686742] systemd[1]: Configuration file /etc/systemd/system/trim_license.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.686968] systemd[1]: Configuration file /etc/systemd/system/trim_init.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.687263] systemd[1]: Configuration file /etc/systemd/system/trim_http_cgi.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.687479] systemd[1]: Configuration file /etc/systemd/system/trim_file_monitor.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.687700] systemd[1]: Configuration file /etc/systemd/system/trim_diskpowerd.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.687955] systemd[1]: Configuration file /etc/systemd/system/trim_connect.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.688234] systemd[1]: Configuration file /etc/systemd/system/trim_app_center.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.691420] systemd[1]: Configuration file /etc/systemd/system/system_startup.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.691666] systemd[1]: Configuration file /etc/systemd/system/system_shutdown.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.692268] systemd[1]: Configuration file /etc/systemd/system/sysrestore.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.692576] systemd[1]: Configuration file /etc/systemd/system/sysinfo_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.693322] systemd[1]: Configuration file /etc/systemd/system/smbftpd.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.693796] systemd[1]: Configuration file /etc/systemd/system/show_startup_info.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.694003] systemd[1]: Configuration file /etc/systemd/system/share_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.694239] systemd[1]: Configuration file /etc/systemd/system/security_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.695846] systemd[1]: Configuration file /etc/systemd/system/rpc_broker.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.696062] systemd[1]: Configuration file /etc/systemd/system/resmon_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.703503] systemd[1]: Configuration file /etc/systemd/system/network_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.703761] systemd[1]: Configuration file /etc/systemd/system/multiple-downloads.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.704033] systemd[1]: Configuration file /etc/systemd/system/minidlna.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.704357] systemd[1]: Configuration file /etc/systemd/system/mediasrv.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.709769] systemd[1]: Configuration file /etc/systemd/system/ipblocker.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.710007] systemd[1]: Configuration file /etc/systemd/system/imagesrv.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.712199] systemd[1]: Configuration file /etc/systemd/system/finder_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.712440] systemd[1]: Configuration file /etc/systemd/system/filestor_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.712678] systemd[1]: Configuration file /etc/systemd/system/eventlogger_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.713142] systemd[1]: Configuration file /etc/systemd/system/dsmgr.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.713581] systemd[1]: Configuration file /etc/systemd/system/dockermgr.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.713803] systemd[1]: Configuration file /etc/systemd/system/docker.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.714054] systemd[1]: Configuration file /etc/systemd/system/dlcenter.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.715467] systemd[1]: Configuration file /etc/systemd/system/cloud_storage_dav.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.715702] systemd[1]: Configuration file /etc/systemd/system/backup_service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.715917] systemd[1]: Configuration file /etc/systemd/system/avahi.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.716728] systemd[1]: Configuration file /etc/systemd/system/auto_thumbnailer.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.716962] systemd[1]: Configuration file /etc/systemd/system/ai_manager.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.717214] systemd[1]: Configuration file /etc/systemd/system/accountsrv.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    3.784717] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[    3.818508] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[    3.850832] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    3.850916] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.

联系方式

微信群:飞牛私有云 fnOS308 - °偉

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则