How to install KVM server on Debian 9/10 Headless Server

‮th‬tps://www.lautturi.com
How to install KVM server on Debian 9/10 Headless Server

To install KVM (Kernel-based Virtual Machine) on a Debian 9 or 10 headless server, you can use the following steps:

  1. Install the required packages:
sudo apt-get update
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

This will install the qemu-kvm package, which provides the user-space component for running virtual machines using KVM, and the libvirt package, which provides the management tools for KVM and other virtualization technologies.

  1. Add your user to the libvirt group:
sudo adduser `id -un` libvirt

This will allow you to manage KVM virtual machines as a non-root user.

  1. Restart the libvirtd service to apply the changes:
sudo systemctl restart libvirtd
  1. Verify the installation by running the following command:
virsh -c qemu:///system list

This should display a list of available KVM virtual machines on the system. If the command succeeds, it means that KVM is installed and configured correctly.

Created Time:2017-10-28 21:39:04  Author:lautturi