Discussion:
[libvirt-users] no drm render nodes available
Michael Taboada
2018-12-05 21:17:36 UTC
Permalink
Hi,
I get this error when trying to start a vm using spice as the graphics: "error: internal error: No DRM render nodes available" I can't seem to figure out what could be going on, since it worked just a little while ago.
Using arch linux, and libvirt from git (4.10.0.22.g6a6925b9b7-1).
-Michael.
Erik Skultety
2018-12-06 09:10:04 UTC
Permalink
Post by Michael Taboada
Hi,
I get this error when trying to start a vm using spice as the graphics: "error: internal error: No DRM render nodes available" I can't seem to figure out what could be going on, since it worked just a little while ago.
Using arch linux, and libvirt from git (4.10.0.22.g6a6925b9b7-1).
-Michael.
Hi,
can you share your domain XML, qemu version and the result of running
`ls -l /dev/dri`? Since it's 4.10.x I'm fairly confident my recent upstream
changes have something to do with it.

Regards,
Erik
Erik Skultety
2018-12-06 14:27:10 UTC
Permalink
Hi,
total 0
drwxr-xr-x 2 root root 60 Nov 28 16:46 by-path
crw-rw---- 1 root video 226, 0 Nov 28 16:46 card0
domain xml is attached.
-Michael.
[Putting libvirt-users back on CC]

Yep, this is a pretty serious fail on my account, the code assumes SPICE needs
a DRM render node every time one isn't defined within the XML due to a missing
check for presence of the <gl> element.

I stripped the XML you sent me to the bare minimum to demonstrate a reproducer:

...
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
...

Let me know whether you want to create a BZ/fix the bug/both otherwise I'll
take care of everything and mention you in the commit message.

Thanks,
Erik
Michael Taboada
2018-12-06 15:20:50 UTC
Permalink
If you could handle it that would be great. I can for now downgrade to my cached git 0.9.0 package to work around this. If you don't mind emailing back or somehow alerting me the bug has been fixed though, that would be helpful.
-Michael.
Post by Erik Skultety
Hi,
total 0
drwxr-xr-x 2 root root 60 Nov 28 16:46 by-path
crw-rw---- 1 root video 226, 0 Nov 28 16:46 card0
domain xml is attached.
-Michael.
[Putting libvirt-users back on CC]
Yep, this is a pretty serious fail on my account, the code assumes SPICE needs
a DRM render node every time one isn't defined within the XML due to a missing
check for presence of the <gl> element.
...
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
...
Let me know whether you want to create a BZ/fix the bug/both otherwise I'll
take care of everything and mention you in the commit message.
Thanks,
Erik
Erik Skultety
2018-12-06 15:27:21 UTC
Permalink
Post by Michael Taboada
If you could handle it that would be great. I can for now downgrade to my cached git 0.9.0 package to work around this. If you don't mind emailing back or somehow alerting me the bug has been fixed though, that would be helpful.
-Michael.
Okay, I'll create an upstream bugzilla and put you on CC.
FWIW I'm already testing a fix.

Regards,
Erik
Erik Skultety
2018-12-06 15:52:55 UTC
Permalink
Post by Michael Taboada
If you could handle it that would be great. I can for now downgrade to my cached git 0.9.0 package to work around this. If you don't mind emailing back or somehow alerting me the bug has been fixed though, that would be helpful.
-Michael.
So, bugzilla won't let me put you on CC (I assume you don't have an account
there, so the here it is:
https://bugzilla.redhat.com/show_bug.cgi?id=1656895

Regards,
Erik

Loading...