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.
On Wed, Dec 05, 2018 at 01:17:36PM -0800, Michael Taboada wrote:> 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
On Thu, Dec 06, 2018 at 05:55:54AM -0800, Michael Taboada wrote:> Hi, > Yes. Qemu is version 3.0.0-4, and output is below: > > ls -l /dev/dri: > > 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
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. On Thu, Dec 06, 2018 at 03:27:10PM +0100, Erik Skultety wrote:>On Thu, Dec 06, 2018 at 05:55:54AM -0800, Michael Taboada wrote: >> Hi, >> Yes. Qemu is version 3.0.0-4, and output is below: >> >> ls -l /dev/dri: >> >> 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