Whenever, I try to enable 3D acceleration on any of my vms in virt-manager by changing video to Virtio, turning on 3D acceleration, changing Listen type to None and enabling OpenGL I get this error message:
Error starting domain: internal error: process exited while connecting to monitor: 2022-02-20T20:56:39.150589Z qemu-system-x86_64: egl: eglInitialize failed
2022-02-20T20:56:39.150663Z 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 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, 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 1329, 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-02-20T20:56:39.150589Z qemu-system-x86_64: egl: eglInitialize failed
2022-02-20T20:56:39.150663Z qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL
I am using runit.
I used virtualbox before, and 3d acceleration worked there without any issues, if that matters.
What's the guest OS? If it's a version of Windows, 3D acceleration won't work (well in theory opengl could but that's not very useful in practice) with QEMU.
So far I've tried Ubuntu, kali, win 10 and 11, but I get the same error with all of them.
This page contains some related info: https://aspiceodyssey.wordpress.com/2017/04/28/fedora25-3d-accelerated-guest/
I've followed the instructions on the page, however it did not solve the issue.
I've also tried running it from terminal:
sudo virsh start kali
[sudo] password for exde:
error: Failed to start domain 'kali'
error: internal error: process exited while connecting to monitor: 2022-02-21T22:14:51.442127Z qemu-system-x86_64: egl: eglInitialize failed
2022-02-21T22:14:51.442184Z qemu-system-x86_64: Failed to initialize EGL render node for SPICE GL
and libvirtd output:
libvirtd
2022-02-21 22:15:12.508+0000: 29802: info : libvirt version: 8.0.0
2022-02-21 22:15:12.508+0000: 29802: info : hostname: 0
2022-02-21 22:15:12.508+0000: 29802: error : virPCIDeviceGetVPD:2690 : Failed to open a VPD file '/sys/bus/pci/devices/0000:03:00.0/vpd': Operation not permitted
Note: I also didn't have the qemu user by default, so I created it and added it to the video group, as the article said. It did not help though.
maybe a missing dependency?
Maybe, but I don't really have a clue, what I could be missing.
To test and compare, for a Windows VM I also tried this, so changing video to Virtio, turning on 3D acceleration, changing Listen type to None and enabling OpenGL.
I kept the default for the OpenGL Render list: 0000:00:02:0 Intel Corporation CoffeeLake-U GT3e [Iris Plus Graphics 655] (render).
The VM starts without errors.
Your issue might be related to the graphics card and driver.
This is how I set up virt-mgr:
- enable the omniverse repository in stead of - or at least above - arch's
- run sudo pacman -S virt-manager qemu edk2-ovmf vde2 ebtables dnsmasq bridge-utils openbsd-netcat dmidecode virt-viewer libvirt-<init>
- enable the service for libvirtd
- enable the service for virtlogd
artist
I've done everything you've listed, but no dice. However after seeing that you use the integrated graphics, I thought the issue might be, that I'm using a 1070.
I found this reddit thread on the matter:
https://www.reddit.com/r/archlinux/comments/qro1jm/3d_acceleration_with_qemukvm_and_virtmanager_not/
And pretty much everything else I can find comes to the same conclusion. So I'm pretty sure this is just another case of nvidia on linux issue.
Thank you all for your help.
Also idk if I should mark this as solved?