Unable to Use KVM's Graphics Acceleration with NVIDIA

I’d like to use my NVIDIA GPU with KVM to be able to have a full screen, NVIDIA graphics, etc. However, I can’t. Here is the result of trying to do so:

Error starting domain: internal error: process exited while connecting to monitor: 2025-01-05T17:54:56.287989Z qemu-system-x86_64: egl: eglInitialize failed: EGL_NOT_INITIALIZED
2025-01-05T17:54:56.288077Z qemu-system-x86_64: egl: render node init failed

Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 71, in cb_wrapper
callback(asyncjob, *args, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 107, 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/lib64/python3.13/site-packages/libvirt.py”, line 1379, in create
raise libvirtError(‘virDomainCreate() failed’)
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2025-01-05T17:54:56.287989Z qemu-system-x86_64: egl: eglInitialize failed: EGL_NOT_INITIALIZED
2025-01-05T17:54:56.288077Z qemu-system-x86_64: egl: render node init failed

I have no idea what to do. I think this is an ongoing bug for several years now (which is a shame) Any ideas?

I’ve never done it, but for what it’s worth, here is a link to an article someone wrote recently for doing GPU passthrough on Fedora Linux: https://juniorfox.net/article/gpu-passthrough-with-looking-glass

1 Like

Thanx, I’ll take a look at it.

If it works, be sure to thank cjuniorfox for the write-up. :slight_smile:

Edit: Note that he has reported problems with the 6.12 kernel: 2333990 – GPU Passthrough: Kernel 6.12 = no ReBAR for QEMU If you are going to try his guide, you’ll probably want to stick with the 6.11 kernel for now.