[libvirt-users] Trying virgl in fedora 25

Cole Robinson crobinso at redhat.com
Wed Dec 14 22:19:25 UTC 2016

On 12/13/2016 06:30 AM, Gianluca Cecchi wrote:
> Hello,
> I'm trying to test what found here:
> http://blog.wikichoon.com/2016/05/spice-openglvirgl-acceleration-on.html
> <http://blog.wikichoon.com/2016/05/spice-openglvirgl-acceleration-on.html>
> and here:
> https://www.kraxel.org/blog/tag/virgl/ <https://www.kraxel.org/blog/tag/virgl/>
> My system is a fedora 25 laptop, born in version 23 and gradually updated to
> 24 and 25 now.
> I had a fedora 25 guest that worked ok with "normal"spice and I'm trying to
> configure with virgl
> Main components currently installed on host:
> qemu-kvm-2.7.0-7.fc25.x86_64
> libvirt-2.2.0-2.fc25.x86_64
> virt-manager-1.4.0-4.fc25.noarch
> VirtualGL-2.4-7.fc25.x86_64
> [root at ope46 qemu]# virsh start f25
> error: Failed to start domain f25
> error: internal error: process exited while connecting to monitor:
> 2016-12-13T11:18:37.784324Z qemu-system-x86_64: egl: no drm render node available
> 2016-12-13T11:18:37.784375Z qemu-system-x86_64: Failed to initialize EGL
> render node for SPICE GL
> [root at ope46 qemu]# 
> What can I check? Any pre-requisite in laptop video adapter or other?

You're hitting: https://bugzilla.redhat.com/show_bug.cgi?id=1337290

There's two pieces missing: 1) DAC access and 2) cgroup access, to the
/dev/dri/render* file.

All we have right now are workarounds: for #1 you can do:

  setfacl -m u:qemu:rw /dev/dri/renderD128

For the latter, the only option is to write a custom cgroup_device_acl in
qemu.conf, which sucks for a number of reasons. Patches have been posted to
fix this but they aren't applied yet:


- Cole

More information about the libvirt-users mailing list