Hello Garuda fam -
This is more of a, "can I make this work?" than mission critical thing. I configured QEMU/KVM awhile back to run a Windows 10 guest if necessary for class, etc. Attempting to use 3D acceleration via virtio fails with:
Error starting domain: internal error: process exited while connecting to monitor: 2022-05-21T02:17:34.167320Z qemu-system-x86_64: egl: eglInitialize failed
2022-05-21T02:17:34.167367Z qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1384, in startup
self._backend.create()
File "/usr/lib/python3.10/site-packages/libvirt.py", line 1353, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2022-05-21T02:17:34.167320Z qemu-system-x86_64: egl: eglInitialize failed
2022-05-21T02:17:34.167367Z qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL
Thus, the VM doesn't even start and gives me these EGL errors. Perhaps the problem is related to the hybrid graphics but I admit my ignorance. I don't know much at all about passing accelerated video to a guest of any sort; be it Windows, Linux or macos.
If anyone has been down this road before, I'd be grateful for any advice.
Thanks either way
System:
Kernel: 5.17.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=d9125faf-89ad-4e51-ab03-8a28cdef6869
rw rootflags=subvol=@ quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.3 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82K2 v: IdeaPad Gaming 3 15ACH6
serial: <superuser required> Chassis: type: 10 v: IdeaPad Gaming 3 15ACH6
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0T76461 WIN serial: <superuser required> UEFI: LENOVO
v: H3CN31WW(V2.01) date: 11/18/2021
Battery:
ID-1: BAT1 charge: 46.0 Wh (100.0%) condition: 46.0/45.0 Wh (102.2%) volts: 12.8 min: 11.5
model: 0x43 0x65 0x6C 0x78 0x70 0x 0x4C 0x32 0x30 0x43 0x33 0x50 0x4500 type: Li-ion
serial: <filter> status: full cycles: 7
CPU:
Info: model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3
family: 0x19 (25) model-id: 0x50 (80) stepping: 0 microcode: 0xA50000C
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache: L1: 512 KiB
desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 2260 high: 4410 min/max: 1200/4462 boost: enabled scaling:
driver: acpi-cpufreq governor: schedutil cores: 1: 2746 2: 1361 3: 3038 4: 1980 5: 2054 6: 2245
7: 2243 8: 2006 9: 2484 10: 1997 11: 3349 12: 1755 13: 1198 14: 1556 15: 4410 16: 1751
bogomips: 102206
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Lenovo driver: nvidia v: 510.68.02
alternate: nouveau,nvidia_drm pcie: gen: 3 speed: 8 GT/s lanes: 8 link-max: gen: 4
speed: 16 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0302
Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: gen: 3 speed: 8 GT/s
lanes: 16 link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 05:00.0
chip-ID: 1002:1638 class-ID: 0300
Device-3: IMC Networks Integrated Camera type: USB driver: uvcvideo bus-ID: 1-3:2
chip-ID: 13d3:56ff class-ID: 0e02
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1 compositor: kwin_x11 driver: X:
loaded: modesetting,nvidia gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22") s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: BOE Display 0x0a81 built: 2021 res: 1920x1080 hz: 120 dpi: 142
gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes: max: 1920x1080
min: 640x480
OpenGL: renderer: AMD RENOIR (LLVM 13.0.1 DRM 3.44 5.17.5-zen1-1-zen) v: 4.6 Mesa 22.0.3
direct render: Yes
Audio:
Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel
pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.1
chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A
alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_sof_amd_renoir
pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed
: 16 GT/s bus-ID: 05:00.6
chip-ID: 1022:15e3 class-ID: 0403
Sound Server-1: ALSA v: k5.17.5-zen1-1-zen running: yes
Sound Server-2: sndio v: N/A running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter vendor: Lenovo
driver: rtw89_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 03:00.0
chip-ID: 10ec:8852 class-ID: 0280
IF: wlo1 state: up mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 1-4:3
chip-ID: 0bda:4852 class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 6 state: up address: <filter>
Drives:
Local Storage: total: 700.51 GiB used: 48.15 GiB (6.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZALQ512HBLU-00BL2 size: 476.94 GiB
block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 5L2QFXM7 temp: 28.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Kingston model: SA400S37240 size: 223.57 GiB
block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: SBFK scheme: GPT
Partition:
ID-1: / raw-size: 474.73 GiB size: 474.73 GiB (100.00%) used: 48.12 GiB (10.1%) fs: btrfs
dev: /dev/nvme0n1p5 maj-min: 259:3
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 3.6 MiB (1.4%) fs: vfat
dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 474.73 GiB size: 474.73 GiB (100.00%) used: 48.12 GiB (10.1%) fs: btrfs
dev: /dev/nvme0n1p5 maj-min: 259:3
ID-4: /var/log raw-size: 474.73 GiB size: 474.73 GiB (100.00%) used: 48.12 GiB (10.1%)
fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:3
ID-5: /var/tmp raw-size: 474.73 GiB size: 474.73 GiB (100.00%) used: 48.12 GiB (10.1%)
fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:3
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 13.57 GiB used: 1.74 GiB (12.8%) priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 58.0 C mobo: N/A gpu: amdgpu temp: 46.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 376 Uptime: 2d 4h 35m wakeups: 8 Memory: 13.57 GiB used: 3.52 GiB (25.9%)
Init: systemd v: 250 tool: systemctl Compilers: gcc: 11.2.0 Packages: pacman: 1549 lib: 377
Client: shell wrapper v: 5.1.16-release inxi: 3.3.15
Garuda (2.6.2-1):
System install date: 2022-04-16
Last full system update: 2022-05-07
Is partially upgraded: No
Relevant software: NetworkManager
Windows dual boot: No/Undetected
Snapshots: Snapper
Failed units: