Compile & Install virt-manager 1.4 on Ubuntu 16.04 and Linux Mint 18

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:

Screenshot from 2016-08-14 23-28-11

Sources:

These instructions work perfectly on Linux Mint 18 as well.

Enjoy!

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Linux, Ubuntu and tagged , , , , , . Bookmark the permalink.

3 Responses to Compile & Install virt-manager 1.4 on Ubuntu 16.04 and Linux Mint 18

  1. Damon Hill says:

    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.

    Like

  2. jawwig says:

    yes, 16.04 too to get 1.4.1

    Like

  3. jawwig says:

    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

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s