KVM Install

Install

Install:

sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

If you are working on a desktop computer you might want to install a GUI tool to manage virtual machines:

sudo apt install virt-manager

Add your user name to the libvirt and kvm groups:

sudo adduser `id -un` libvirt
sudo adduser `id -un` kvm

Tip

logout and login so your user becomes an effective member of kvm and libvirt user groups.

Test (no need for sudo because members of the kvm/libvirt groups can run virtual machines):

virsh list --all

Id Name                 State
-----------------------------

Note

If you get an error message, then there is a problem which needs to be fixed.

Guest

Follow the KVM Guest instructions for creating a guest…