Hi, I’ve struggled to use virtual machines with hardware acceleration via the proprietary Nvidia drivers for the entirety of the 500 driver series (I think the latest time this worked was with the 470-series drivers).
I’m using virt-manager 4.1 and KVM to run Linux guest VMs on a Linux host. Every attempt at enabling 3d acceleration for Linux guests has resulted in the following error message:
Error starting domain: internal error: process exited while connecting to monitor: 2025-01-03T20:05:04.310608Z qemu-system-x86_64: egl: eglInitialize failed: EGL_NOT_INITIALIZED
2025-01-03T20:05:04.310679Z qemu-system-x86_64: egl: render node init failedTraceback (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 1402, in startup
self._backend.create()
File “/usr/lib/python3/dist-packages/libvirt.py”, line 1379, in create
raise libvirtError(‘virDomainCreate() failed’)
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2025-01-03T20:05:04.310608Z qemu-system-x86_64: egl: eglInitialize failed: EGL_NOT_INITIALIZED
2025-01-03T20:05:04.310679Z qemu-system-x86_64: egl: render node init failed
Using the open-source nouveau drivers, this configuration works as expected. However, it always breaks when I try to use Nvidia’s proprietary Linux drivers. Has anyone else had this issue?
Software:
- Ubuntu 24.04.1 LTS (Linux kernel 6.8.0-51-generic)
- Nvidia driver 565.77 via Proprietary GPU Drivers : “Graphics Drivers” team (I’ve been trying just about every driver in the 5XX series, they’ve all given the same error)
- I’ve tried both the X11 and Wayland stacks that ship w/ Ubuntu
- virt-manager 4.1 w/ the following config:
- Video model: virtio w/ 3d acceleration enabled
- Display type: Spice server w/ OpenGL enabled
Hardware:
- Nvidia RTX 4080 (single display, 4k @ 60hz)
- AMD Ryzen 7900X w/ 32 GB of RAM