Want KVM/QEMU version 5 for Ubuntu 20.04

A few weeks ago KVM/QEMU version 5 came out. However, it's not bundled in the 5.4 kernel of Ubuntu 20.04 LTS as far as I know. I would like to set up a new virtualization host using Ubuntu 20.04 and KVM/QEMU 5.

Is there a simple way to accomplish this? I don't want to use 4.2.x since I think it has a networking bug.


Solution 1:

Newer versions - qemu 5.0, libvirt 6.6, virtmanager 3.0, are available for Ubuntu 20.04:

  • https://launchpad.net/~jacob/+archive/ubuntu/virtualisation?field.series_filter=focal

You can also search the ppa repos for qemu.

Solution 2:

qemu 5.0-5 was accepted into Debian Unstable on May 13. 2020.

This means that it will be merged into Ubuntu 20.10 (not 20.04) sometime during the next few months.

  • You can try pulling the 5.0 package from Debian and see if it will run in Ubuntu 20.04. It might, it might not.

  • After the package is imported, you can run 5.0 in the pre-release version of Ubuntu 20.10. It's pre-release, so you are agreeing to be a tester. Note that we don't provide support here for 20.10 until after it's released.

Solution 3:

You can use the canonical-server backports repository:

sudo add-apt-repository ppa:canonical-server/server-backports