The latest virt-manager supports configuring VMs for OpenGL passthrough for 3D acceleration in virtual machines plus a SPICE console that can make good use of that, which I have been waiting A LOOONG TIME for!
Unfortunately, the default package on the latest Ubuntu stable release is 1.3, and I couldn’t find any available PPA or pre-compiled packages for it, so I had to compile it myself.
Here is what I have done (I have installed QEMU & KVM as well):
sudo apt-get build-dep virt-manager sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils python-libvirt libgtk-3-dev libvirt-glib-1.0 gir1.2-gtk-vnc-2.0 gir1.2-spice-client-gtk-3.0 libosinfo-1.0 python-ipaddr gir1.2-vte-2.91 python-libxml2 python-requests libvirt-glib-1.0-dev wget https://virt-manager.org/download/sources/virt-manager/virt-manager-1.4.0.tar.gz tar -xvzf virt-manager-1.4.0.tar.gz cd virt-manager-1.4.0/ sudo python setup.py install
Don’t forget to log out and then back in, since your user have been added to the libvirtd group.
And there you go:
Sources:
- https://help.ubuntu.com/community/KVM/Installation
- http://ask.xmodulo.com/compile-virt-manager-debian-ubuntu.html
These instructions work perfectly on Linux Mint 18 as well.
I’m using Linux Mint 18.1. I had to install also the intltool package, before compiling virt-manager 1.4.0. (sudo apt install intltool)
Regards.
LikeLike
yes, 16.04 too to get 1.4.1
LikeLike
however, due to this error using the embedded Spice viewer:
Error connecting to graphical console:
internal error: unable to execute QEMU command ‘getfd’: No file descriptor supplied via SCM_RIGHTS
I had to append this:
# allow connect with openGraphicsFD to work
unix (send, receive) type=stream addr=none peer=(label=/usr/sbin/libvirtd),
to the end of:
/etc/apparmor.d/abstractions/libvirt-qemu
then do a:
sudo systemctl reload apparmor
LikeLike