我有一个 Debian 11 (Bullseye) 虚拟机,我在其中尝试根据以下帖子传递英特尔 GPU https://forum.proxmox.com/threads/guide-intel-intergerated-graphic-passthrough.30451/
它似乎正在做一些事情 b/c Proxmox 不再将控制台输出到显示器。但是我也没有在显示器上看到 Debian VM 的控制台。我并不真正关心在屏幕上看到 Debian VM 监视器,但我想让它工作,因为我在 VM 内运行 Plex 并希望硬件加速转码工作。
上述论坛帖子将 GPU 从 Proxmox 列入黑名单的方法是否存在问题?如果我vainfo
在 Proxmox 上运行,我会得到受支持的配置文件列表,这样我就知道我的 CPU 具有具有快速同步功能的集成显卡。仅在虚拟机上我收到如下错误:
sudo vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.1
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
我很确定我应该使用 iHD 驱动程序 b/c 它适用于 Proxmox 并且根据 这 它应该有效。我还尝试在 Proxmox 上安装这些驱动程序并且它有效。
我发现 本指南 他们有一套 q35 机器,但也不起作用。
lspci | grep VGA
00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
00:10.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630]
这也是 sudo dmesg | 的输出grep DRM:
sudo dmesg | grep drm
[ 2.382075] systemd[1]: Starting Load Kernel Module drm...
[ 2.408821] systemd[1]: [email protected]: Succeeded.
[ 2.408999] systemd[1]: Finished Load Kernel Module drm.
[ 2.734710] bochs-drm 0000:00:02.0: vgaarb: deactivate vga console
[ 2.747759] [drm] Found bochs VGA, ID 0xb0c0.
[ 2.747761] [drm] Framebuffer size 16384 kB @ 0xf0000000, mmio @ 0xfe470000.
[ 2.749399] [drm] Found EDID data blob.
[ 2.749607] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 0
[ 2.750866] fbcon: bochs-drmdrmfb (fb0) is primary device
[ 2.894825] bochs-drm 0000:00:02.0: [drm] fb0: bochs-drmdrmfb frame buffer device
[ 3.183325] i915 0000:00:10.0: [drm] VT-d active for gfx access
[ 3.203854] i915 0000:00:10.0: [drm] Failed to find VBIOS tables (VBT)
[ 3.203864] i915 0000:00:10.0: [drm] *ERROR* DC state mismatch (0x0 -> 0x2)
[ 3.211384] i915 0000:00:10.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[ 3.316901] [drm:wait_panel_status [i915]] *ERROR* PPS state mismatch
[ 3.813395] i915 0000:00:10.0: [drm] failed to retrieve link info, disabling eDP
[ 4.021119] i915 0000:00:10.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_init+0xb4/0x2c0 [i915]
[ 4.115560] [drm] Initialized i915 1.6.0 20200917 for 0000:00:10.0 on minor 1
[ 4.807633] i915 0000:00:10.0: [drm] Cannot find any crtc or sizes
[ 5.488674] i915 0000:00:10.0: [drm] Cannot find any crtc or sizes
[ 6.202048] i915 0000:00:10.0: [drm] Cannot find any crtc or sizes
我在谷歌上搜索了许多错误几个小时,但我已经束手无策了。人们说的一些错误是无害的,我不确定这里的 dmesg 是否有任何问题。似乎人们已经让它发挥作用,但我不知道我在这里错过了什么。