FS#48228 - [qemu] Please enable virgl support
Attached to Project:
Arch Linux
Opened by Lev Cohan (lev) - Wednesday, 17 February 2016, 23:48 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 14 October 2016, 15:23 GMT
Opened by Lev Cohan (lev) - Wednesday, 17 February 2016, 23:48 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 14 October 2016, 15:23 GMT
|
Details
Now that all components needed (kernel 4.4, mesa 11.1 and
qemu 2.5) are out of testing,
please enable virgl in qemu so 3D acceleration can be used in qemu. These steps are necessary: * Add virglrenderer package https://cgit.freedesktop.org/virglrenderer/ * Built qemu with virgl and gtk3 support --enable-virglrenderer --enable-gtk --with-gtkabi=3.0 Thanks |
This task depends upon
In the mail the links to the pgp signatures are wrong!
http://www.freedesktop.org/software/virgl/virglrenderer-0.5.0.tar.bz2
http://www.freedesktop.org/software/virgl/virglrenderer-0.5.0.tar.bz2.sig
For the imminent release of qemu 2.6:
Besides gtk3, SDL2 and SPICE now also support OpenGL and virgl.
Build qemu 2.6 with
--enable-virglrenderer
--enable-gtk
--with-gtkabi=3.0
--enable-sdl
--with-sdlabi=2.0
Error starting domain: unsupported configuration: This QEMU doesn't support spice OpenGL
-spice [your-options],gl=on
@G-G: I just tried that (following http://blog.wikichoon.com/2016/05/spice-openglvirgl-acceleration-on.html) and it does not work - upon trying to start the VM, I receive this message from virt-manager: Error starting domain: unsupported configuration: This QEMU doesn't support spice OpenGL
The quick way is to use ABS (https://wiki.archlinux.org/index.php/Arch_Build_System), basically the steps are:
- Get spice with ABS, in the PKGBUILD bump up the $pkgver to the last dev release (0.13.2), build with makepkg and install as you would do with an AUR package.
- Get qemu with ABS, simply rebuild with makepkg (maybe you could increase the pkgrel, but that's not really necessary) and install.
However, the guest's Mesa 12.0.3 does not: OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
Even though it should [2] contain virgl support and I see that /usr/lib/x86_64-linux-gnu/dri/virtio_gpu_dri.so is present.
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1337290
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807774
https://www.kraxel.org/blog/tag/virgl/