How to Install Virt-Manager on Linux Systems

Virtualization technology has grown to become very important in today’s world. Developers, System Administrators, Enterprise Workloads, and others use it to run multiple systems and applications on a single machine. On Linux, KVM (Kernel-based Virtual Machine), facilitates virtualization, however, one can manage virtual machines using tools such as Virt-Manager (Virtual Machine Manager).

Virt-Manager is a GUI-based desktop application that lets users create, configure, and manage KVM, QEMU, or Xen-based virtual machines. Virtual Machine Manager, known as Virt-Manager, is a desktop-based GUI for managing and controlling virtual operating systems and virtual machines. Administrators can interact with the GUI rather than exclusively using command-line utilities like virsh for managing VMs. The tool allows administrators to create a new VM or edit an existing one’s CPU and memory allocation. They can also add or change its storage and network devices, as well as monitor the performance of the virtual machines.

🔥 TRENDING - Our #1 Selling eBook

Mastering KVM Virtualization - The Ultimate eBook

From home labs to production clouds - master KVM Host management, automating KVM administration using Terraform, Vagrant, and cloud automation. This eBook will enable you to build scalable virtual infrastructure that works whether you're learning at home or deploying enterprise solutions. Get your full copy today

Only $10 $20
Get Instant Access →

Virt-Manager is designed to simplify KVM virtualization by offering:

  • A user-friendly interface for managing local and remote virtual machines.
  • The ability to create, delete, and modify virtual machines easily.
  • Performance monitoring, including CPU, memory, disk, and network statistics.
  • Access to VM consoles via SPICE or VNC.
  • Management of virtual networks and storage pools.
  • Support for snapshots and cloning of virtual machines.

This article will show you how to install Virt-Manager on popular Linux distributions. See under this paragraph, when you are done you will have a fully operational virtualization management tool. This tool streamlines VM operations, boosting productivity during KVM-based tasks.

Installing Virt-Manager

Virt-Manager is available on the official repositories for most of the major Linux distributions and can be installed using their respective package managers:

Ubuntu & Debian:

Run the following commands to install virt-manager on Debian based Linux systems.

sudo apt update -y
sudo apt install virt-manager
RHEL, CentOS, Rocky Linux, AlmaLinux:

Installation of RHEL based systems can be done using the commands below:

sudo dnf update -y
sudo dnf install virt-manager
Arch Linux & Manjaro:

For Arch-based systems, use the commands below to install virt-manager.

sudo pacman -Syu
sudo pacman -S virt-manager
Oracle Linux:

If you have Oracle Linux, use the commands below to get virt-manager installed.

sudo yum update -y
sudo yum install virt-manager
Fedora Linux:

Installation of virt-manager is done using dnf package manager on Fedora.

sudo dnf update -y
sudo dnf install virt-manager
OpenSUSE (Leap & Tumbleweed:

For SUSE Linux machines, install virt-manager using zypper.

sudo zypper refresh
sudo zypper install virt-manager
Gentoo Linux:

On Gentoo, use emerge to install virt-manager.

sudo emerge --ask app-emulation/virt-manager

Configure and Start Virt-Manager

After installation, Virt-Manager can be launched from the terminal or system menu:

virt-manager

Ensure that the libvirtd service is running:

sudo systemctl enable --now libvirtd

If you run into any problems such as libvirt.libvirtError: Failed to connect socket to /var/run/libvirt/libvirt-sock: Permission denied, then run the following commands:

#Add your user to libvirt and kvm
sudo usermod -aG libvirt $(whoami)
sudo usermod -aG kvm $(whoami)

#Apply the changes immediately
newgrp libvirt
newgrp kvm

#Reboot system
sudo reboot

Connecting to Local KVM Host

By default, Virt-Manager connects to the local KVM host using the qemu://system URI. Just ensure that the local libvirt daemon is running on your local machine:

sudo systemctl start libvirtd

Then launch virt-manager and it should automatically detect the local hypervisor and connect to it.

Connecting to Remote KVM Host

Virt-Manager allows connections to remote KVM hosts over SSH. To enable remote management, you need to ensure that libvirt and ssh are both installed on the local and remote machines:

sudo apt install libvirt-clients ssh

Enable and start libvirtd on the remote machine:

sudo systemctl enable --now libvirtd

Then configure SSH access without a password:

Generate an SSH key pair:

ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa

Then copy your SSH key to the remote server:

sudo ssh-copy-id -i ~/.ssh/id_rsa.pub username@remote_host

Connect Virt-Manager to Remote Host

  1. Open Virt-Manager.
  2. Click File → Add Connection.
  3. Select QEMU/KVM as the hypervisor.
  4. Choose Connect to a remote host and enter qemu+ssh://user@remote_host/system.
  5. Click Connect.

Once connected, the remote host should appear in Virt-Manager’s interface, allowing you to manage its VMs.

🌍 Our KVM eBook covers all this in details and more. In the book you will learn:

  • Cockpit installation
  • Configure and Access Cockpit dashboard
  • Creating Virtual Machines using Cockpit
  • Managing Virtual Machines using Cockpit
  • Network Configurations and Management
  • Managing Storage Pools
  • Snapshot Management
  • VM Backup and Migration

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

Virtualization is an essential element of today’s IT infrastructure. Thus, it is important to manage the virtual resources efficiently to […]

Networking is also an important part of any virtualization infrastructure. Virtual networks ensure that virtual machines can communicate with one […]

Cockpit is a useful UI tool to manage Linux servers via a web-based console. Rather than being totally dependent on […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.