Install Virt Manager in Debian

Student
Search for a command to run...

Student
No comments yet. Be the first to comment.
If you've ever faced the challenge of running graphical user interface (GUI) programs within a container, fear not! While it may seem like a daunting task at first, with this comprehensive guide, we'll walk through the process using Incus Container. ...

When working with containers, managing file sharing between the host system and container can often pose a challenge. However, there is an easy-to-use solution that simplifies this process using just one line of code! This blog post will guide you on...

Incus, a manager and hypervisor for system containers (LXC) and virtual machines (QEMU), is an excellent tool for managing and orchestrating your applications and services. It is a fork of LXD by the original maintainers. I found the documentation re...

Using ble.sh and Starship. Bash by itself is pretty basic. Syntax highlighting, auto-suggestion and history matching are pretty helpful features in any shell. Users might be worried about the bloat these features bring and add delay to the startup of...

The ability to run virtual machines (VMs) and docker containers is an integral part of today’s modern computing landscape. However, issues with internet connectivity inside these environments often cause significant inconvenience for users who depend...

virt-manager or Virtual Machine Manager is a frontend for managing virtual machines through libvirt. It primarily targets KVM virtual machines but is also capable of managing Xen and LXC. In this post we will focus on KVM.
All commands in this post are supposed to be run as root.
We will install libvirt, QEMU and a spice client.
apt-get --no-install-recommends install qemu-utils qemu-kvm virt-manager libvirt-clients libvirt-daemon-system virtinst bridge-utils gir1.2-spiceclientglib-2.0 gir1.2-spiceclientgtk-3.0 virt-viewer libosinfo-bin
libvirt ships with a default network profile. Here we enable it have it start automatically. This will allow the virtual machines to connect to the internet.
virsh net-start default
virsh net-autostart default
Here you will add yourself to the necessary groups to avoid running as root every time you want to run a virtual machine. Replace <user> with normal user.
adduser <user> libvirt
adduser <user> libvirt-qemu
adduser <user> kvm
Apt automatically enables and starts libvirtd.service. We do it again anyways.
systemctl enable libvirtd.service
systemctl restart libvirtd.service
Now you should be able to install and manage virtual machines through virt-manager.