To install KVM on Rocky Linux 10 or AlmaLinux 10, you need four AppStream packages and the modular libvirt daemons. The packages are qemu-kvm, libvirt, virt-install and virt-viewer, and the kernel module is already there. What breaks most installs is an older guide. The virtualization group they install doesn’t exist on these releases, bridge-utils is gone, and the monolithic libvirtd still ships but is deprecated.
This guide installs the hypervisor and checks it with virt-host-validate. It boots a guest from a cloud image in under 30 seconds, puts guests on the LAN with an nmcli bridge, and finishes in Cockpit. Every command below was run on Rocky Linux 10 and AlmaLinux 10 hosts in November 2026, with a second pass on Rocky Linux 9 and AlmaLinux 9.9. RHEL 10 takes the same commands once the host is registered.
Prerequisites
Red Hat’s floor for a virtualization host is 6 GB of disk and 2 GB of RAM for the host itself, plus whatever each guest needs on top. That is a lab number. Plan a real host around the guests: add up their memory, leave 2 to 4 GB for the host, and size the disk for every qcow2 image plus snapshot growth. Our Google Cloud lab hosts had 4 vCPUs and 16 GB of RAM each, and that was comfortable for three small guests at once.
- Rocky Linux 10, AlmaLinux 10 or RHEL 10 on x86_64 (9.x works too)
- A CPU with Intel VT-x or AMD-V, enabled in firmware
- x86-64-v3 for Rocky Linux 10 and RHEL 10 hosts
- A user with sudo rights
If the host is itself a VM (a cloud instance or a Proxmox guest), nested virtualization has to be on before any of this works. On a KVM parent, the steps are in our guide to enabling nested virtualization on KVM. Our Rocky and Alma hosts ran nested, on Google Cloud instances and on a Proxmox VM with the CPU type set to host.
Check CPU virtualization support
First confirm that the CPU exposes hardware virtualization to the OS. lscpu names the extension, and the grep counts the /proc/cpuinfo lines that carry the flag. Any number above zero is good:
lscpu | grep -i virtualization
grep -cE 'vmx|svm' /proc/cpuinfo
Our 4 vCPU Rocky Linux 10 host reported VT-x and 8 matching lines, because newer kernels print vmx in both the flags and vmx flags lines of each CPU:
Virtualization: VT-x
Virtualization type: full
8
A count of 0 means virtualization is off in the BIOS or UEFI, or that the parent hypervisor is not passing it through. Fix that before you install anything, because libvirt will still install and then fail every guest with a /dev/kvm error.
Install the KVM packages
Most guides still say dnf group install virtualization. On Rocky Linux and AlmaLinux 10 (and on the current 9.x releases), that group doesn’t exist, as you can check yourself.
sudo dnf group info virtualization
dnf answers with a warning and nothing else.
Warning: Group virtualization does not exist.
The groups that do exist are Virtualization Host (an environment group), Virtualization Hypervisor, Client, Platform and Tools. Virtualization Hypervisor holds only libvirt and qemu-kvm. So skip the groups and install the four packages Red Hat’s RHEL 10 documentation names. That gives you the hypervisor, the CLI installer and a console viewer:
sudo dnf install -y qemu-kvm libvirt virt-install virt-viewer
It’s a bigger transaction than the command suggests. On Rocky Linux 10 it installed 346 packages in 2m05s, and on AlmaLinux 10 it installed 422 in 3m38s. Weak dependencies pull in desktop portal, audio and GTK libraries for virt-viewer. On a headless host you can add --setopt=install_weak_deps=False to keep it lean, but the run above is what we tested.
Several package names from older guides changed or disappeared, and this table records what dnf info returned on each release.
| Package | Rocky 10 | AlmaLinux 10 | Rocky 9 / AlmaLinux 9 |
|---|---|---|---|
bridge-utils (brctl) | Not available | Not available | Not available |
| libguestfs-tools | Not available | Not available | Not available |
| guestfs-tools | AppStream | AppStream | AppStream |
| virt-top | AppStream | AppStream | AppStream |
| virt-manager | CRB | CRB | AppStream |
| cockpit-machines | AppStream | AppStream | AppStream |
guestfs-tools replaces libguestfs-tools and provides virt-customize, virt-sysprep and friends (the disk-mounting workflow is in our libguestfs guide). Don’t bother with bridge-utils: sudo dnf install bridge-utils ends with Error: Unable to find a match: bridge-utils. The bridge command from iproute2 and nmcli replace it.
Start the modular libvirt daemons
Since RHEL 9, libvirt runs as a set of per-driver daemons: virtqemud for guests, virtnetworkd for networks, virtstoraged for pools, and so on. Red Hat marks the old all-in-one libvirtd as deprecated and due for removal in a future major release. After the install, systemctl list-unit-files 'virt*' shows the sockets already enabled by preset, while only virtqemud.service is enabled among the services. Don’t wait for a reboot to start them. This loop enables each driver’s service and starts its three sockets in one pass:
for drv in qemu network nodedev nwfilter secret storage interface; do sudo systemctl enable virt${drv}d.service; sudo systemctl enable --now virt${drv}d{,-ro,-admin}.socket; done
Check the QEMU socket and ask virsh which hypervisor it is talking to. The socket should read active (listening), and the system URI should be qemu:///system:
systemctl status virtqemud.socket --no-pager
sudo virsh version
sudo virsh uri
On Rocky Linux 10 that came back as libvirt 12.5.0 driving QEMU 10.1.0:

We rebooted the Rocky host afterwards to make sure this survives. virtqemud, virtnetworkd, virtstoraged and virtlogd sockets all came back active, libvirtd.service stayed inactive, and the autostarted guest was running again.
Don’t enable libvirtd as well
We followed the old instructions first, to see what they do. sudo systemctl enable --now libvirtd succeeds on every release we tested, because libvirtd.service still ships in the libvirt-daemon package with preset disabled. It then runs next to the modular daemons, which is exactly the mixed state you don’t want. Backing it out is messier than it looks. Disabling libvirtd.service together with its three sockets also removed the virtlogd and virtlockd socket links:
sudo systemctl disable --now libvirtd.service libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket
systemd reports each link it removes, and the first four lines are the ones you’d miss. It also warns that the libvirtd sockets are still active as triggering units. The command still exits 0, and --now stops them.
Removed '/etc/systemd/system/sockets.target.wants/virtlockd.socket'.
Removed '/etc/systemd/system/sockets.target.wants/virtlockd-admin.socket'.
Removed '/etc/systemd/system/sockets.target.wants/virtlogd.socket'.
Removed '/etc/systemd/system/sockets.target.wants/virtlogd-admin.socket'.
Removed '/etc/systemd/system/sockets.target.wants/libvirtd.socket'.
Removed '/etc/systemd/system/sockets.target.wants/libvirtd-ro.socket'.
Removed '/etc/systemd/system/sockets.target.wants/libvirtd-admin.socket'.
Removed '/etc/systemd/system/multi-user.target.wants/libvirtd.service'.
If you’ve already enabled libvirtd on a host, disable it this way and then run the socket loop above again. On our host the loop recreated the virtlogd and virtlockd links on its own.
Failed to enable unit: Unit libvirtd.service does not exist
That unit file belongs to the libvirt-daemon package (rpm -qf /usr/lib/systemd/system/libvirtd.service prints libvirt-daemon-12.5.0-4.1.el10_3.x86_64 on Rocky Linux 10). The libvirt package requires it, so we never saw the error with the install command above. If you do see it, that package is not on the host, and you don’t need it: the modular sockets are the supported path, so run the loop and move on.
Validate the host
The KVM modules load automatically once the packages are in. Check that they loaded and that /dev/kvm exists:
lsmod | grep kvm
ls -l /dev/kvm
On an Intel host you get kvm_intel sitting on top of kvm, and a character device owned by the kvm group:
kvm_intel 520192 0
kvm 1400832 1 kvm_intel
irqbypass 12288 1 kvm
crw-rw-rw-. 1 root kvm 10, 232 Nov 22 14:19 /dev/kvm
Then run libvirt’s own host check, which covers the modules, device nodes and cgroup controllers in one go:
sudo virt-host-validate qemu
All four hosts passed every check and showed the same two warnings, which you can read past on most hosts.

The IOMMU warning only matters if you plan to pass a PCI device (a GPU or a NIC) through to a guest. On bare metal you clear it by turning on VT-d or AMD-Vi in firmware and adding intel_iommu=on to the kernel command line. The SEV/TDX warning is about confidential guests and is expected on most hardware. A FAIL on /dev/kvm is the line that actually stops you.
Let your user manage VMs without sudo
Members of the libvirt group can use the system connection, where your guests, bridges and storage pools live. Add your user and log in again so the new group applies:
sudo usermod -aG libvirt $USER
There’s a trap here. A plain virsh run as a normal user still connects to qemu:///session, a private per-user instance that cannot see the system guests. It shows an empty list and no error, and that empty list is why people think the group did not work. Point virsh at the system URI for good with an environment variable in your shell profile.
echo 'export LIBVIRT_DEFAULT_URI=qemu:///system' >> ~/.bashrc
source ~/.bashrc
virsh uri
virsh uri should now print qemu:///system. The commands below keep sudo so they work whether or not you’ve done this.
Create a VM from a cloud image
For server guests, skip the ISO and the installer. Rocky and Alma both publish GenericCloud qcow2 images with cloud-init built in, and virt-install can feed them an SSH key directly. Download the Rocky Linux 10 image into libvirt’s default image directory:
cd /var/lib/libvirt/images
sudo curl -LO https://dl.rockylinux.org/pub/rocky/10/images/x86_64/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2
For AlmaLinux the image is https://repo.almalinux.org/almalinux/10/cloud/x86_64/images/AlmaLinux-10-GenericCloud-latest.x86_64.qcow2. The Rocky file was 542 MB with a 10 GB virtual size. Instead of copying it per guest, create a 20 GB overlay that uses it as a read-only backing file:
sudo qemu-img create -f qcow2 -F qcow2 -b /var/lib/libvirt/images/Rocky-10-GenericCloud-Base.latest.x86_64.qcow2 /var/lib/libvirt/images/web01.qcow2 20G
Create an SSH key if you don’t have one (ssh-keygen -t ed25519), then import the disk as a guest. --cloud-init root-ssh-key= writes your public key into the guest on first boot. Use almalinux10, rocky9 or almalinux9 as the --os-variant for the other images; virt-install --osinfo list lists them all:
sudo virt-install --name web01 --memory 2048 --vcpus 2 --disk /var/lib/libvirt/images/web01.qcow2,bus=virtio --import --os-variant rocky10 --network network=default,model=virtio --graphics none --noautoconsole --cloud-init root-ssh-key=$HOME/.ssh/id_ed25519.pub
The guest had a DHCP address from the default NAT network 27 seconds after virt-install started, and 22 seconds on the other three hosts. virsh domifaddr shows the lease, and SSH works straight away:

Don’t worry about the “Installation may be in progress” message. With --import there’s no installer, so virt-install just returns while the guest boots. --cloud-init also takes user-data=, clouduser-ssh-key= and root-password-generate. We cover those, plus cloud-init user-data files, in the cloud-init and virt-install guide.
Install from the network with virt-install
When you want a full Anaconda install (custom partitioning, a kickstart, a minimal package set), point --location at the BaseOS tree and send the installer to the serial console:
sudo virt-install --name netinst01 --memory 2048 --vcpus 2 --disk size=20,format=qcow2 --os-variant rocky10 --network network=default --location https://download.rockylinux.org/pub/rocky/10/BaseOS/x86_64/os/ --graphics none --noautoconsole --extra-args 'console=ttyS0,115200n8 inst.text'
virt-install fetched the kernel and initrd straight from the mirror and printed WARNING Overriding memory to 3072 MiB needed for rocky10 network install. So 2 GB is not enough for Anaconda on 10, and you may as well ask for 3072 up front. Attach to the installer with sudo virsh console netinst01. For AlmaLinux use https://repo.almalinux.org/almalinux/10/BaseOS/x86_64/os/ and almalinux10. On both 10 releases the text installer opens with a question that’s new: Anaconda offers “Use graphical mode via Remote Desktop Protocol” or “Use text mode”, because text mode cannot do custom partitioning. Pick 2 for a basic install, or automate the whole thing with a kickstart file as in our Kickstart on KVM guide.
Manage guests with virsh
Day-to-day control goes through virsh. These are the commands we ran on web01, in the order you’d normally need them:
sudo virsh list --all
sudo virsh shutdown web01
sudo virsh start web01
sudo virsh autostart web01
sudo virsh snapshot-create-as web01 --name pre-update --description "before dnf update"
sudo virsh snapshot-list web01
Autostart matters more than it looks. Without it, the guests stay off after a host reboot. virsh dominfo web01 shows Autostart: enable once it’s set. The snapshot was taken while the guest ran and is stored inside the qcow2 file:
Name Creation Time State
---------------------------------------------------
pre-update 2026-11-22 14:23:21 +0000 running
An internal snapshot like this is a rollback point, not a backup, because it dies with the disk file. Removing a guest that has one takes an extra flag. Keep web01 for now, because the Cockpit section uses it. When we tore it down at the end of the run, we stopped it with sudo virsh destroy web01 and a plain sudo virsh undefine web01 --remove-all-storage refused with cannot delete inactive domain with 1 snapshots. Add --snapshots-metadata when your guest is done:
sudo virsh undefine web01 --snapshots-metadata --remove-all-storage
That removed the guest and its web01.qcow2 overlay, and left the shared GenericCloud base image in place for the next guest. The full command set is in the virsh commands cheat sheet.
Bridge guests onto the LAN
The default network NATs guests behind virbr0 on 192.168.122.0/24. That’s fine for outbound traffic, but other machines can’t reach the guests. To give guests addresses on your physical network, build a Linux bridge with nmcli. Moving the NIC that carries your SSH session onto a bridge drops the connection mid-change. So do this from the console, or use a second NIC as we did. On a host with one NIC, deleting its connection over SSH cuts the session at once. Bridging also needs a network that accepts the guests’ own MAC addresses, which bare metal and Proxmox do but most public clouds don’t, so our bridge test ran on a Proxmox VM. That AlmaLinux 10.2 host had eth0 for management and eth1 for the bridge. Find the connection that holds your bridge NIC first:
nmcli connection show
On our host eth1 was held by NetworkManager’s automatic profile, Wired connection 1. Yours may be called System eth1, cloud-init eth1 or ens19, so substitute your own name here and your NIC for eth1 below:
sudo nmcli connection delete 'Wired connection 1'
Now create the bridge, attach the NIC as its port and bring it up. The bridge takes the DHCP address the NIC used to have; set ipv4.method manual with ipv4.addresses and ipv4.gateway instead if the host needs a fixed address:
sudo nmcli connection add type bridge ifname br0 con-name br0 ipv4.method auto ipv6.method disabled bridge.stp no
sudo nmcli connection add type bridge-slave ifname eth1 master br0 con-name br0-port1
sudo nmcli connection up br0
NetworkManager replies “controller waiting for ports”, which sounds like a failure but is not. The bridge had its address about 8 seconds later. Attach a guest to it with --network bridge=br0,model=virtio in place of network=default. Our test guest, app01, was the same cloud image import with that one change:

The guest pulled 10.0.1.143 from the LAN’s DHCP server, with the LAN router as its default gateway. One thing changes once a guest is on a bridge. Plain virsh domifaddr prints nothing, because it reads libvirt’s own DHCP leases and the LAN router handed this one out. You have two other sources to ask:
--source agentasks qemu-guest-agent inside the guest--source arpreads the host’s ARP table once traffic has flowed
The agent answered straight away from our AlmaLinux cloud image, with the right /24 prefix. ARP stayed empty until the host had traded packets with the guest (we sent a broadcast ping and then pinged the address the agent gave us), and even then it reported the prefix as /0. So use the agent where you can, or look the guest up in your router’s DHCP lease table. bridge link show replaces brctl show, which is not installed. More bridge, VLAN and libvirt network layouts are covered in Configure KVM Networking With virsh, nmcli and brctl.
Store images outside /var/lib/libvirt
Big disks usually live on a separate volume, such as /data/vms. We expected SELinux (enforcing on every host) to block a guest whose disk sat there with the generic default_t label. It did not. libvirt relabelled the file to svirt_image_t with a per-guest category on start, and ausearch -m avc found no denials. After shutdown, though, the file went back to default_t, so give the directory a permanent label anyway. Backups, restores and anything else that reads the directory then see a consistent context:
sudo mkdir -p /data/vms
sudo semanage fcontext -a -t virt_image_t '/data/vms(/.*)?'
sudo restorecon -Rv /data/vms
semanage comes from policycoreutils-python-utils, which was already installed on our hosts. The capture shows the label before, while the guest ran, and after the fcontext rule.

Next, register the directory as a storage pool so virsh and Cockpit can create volumes in it. Define it, start it and mark it to start with the host:
sudo virsh pool-define-as vmstore dir --target /data/vms
sudo virsh pool-start vmstore
sudo virsh pool-autostart vmstore
On our host the first command failed, because we had already created a guest with its disk in /data/vms and virt-install had registered the directory as a pool on its own:
error: Failed to define pool vmstore
error: operation failed: Storage source conflict with pool: 'vms'
virt-install names these automatic pools after the last path component, so it called this one vms. Only if you see that conflict, either keep the name or remove the automatic pool (this does not touch the files) and then rerun the three commands above:
sudo virsh pool-destroy vms
sudo virsh pool-undefine vms
sudo virsh pool-list --all then shows vmstore active with autostart set to yes. On our host it sat next to images and boot, two more pools virt-install had created on its own for the directories it was handed.
Check the firewall
libvirt brings its own firewalld zone, so NAT guests need no rules from you. virbr0 sits in the libvirt zone, which allows DHCP, DNS, SSH and TFTP from guests to the host and ends with a catch-all reject rule. Guest traffic out to the internet worked with firewalld running on both 10 hosts. Check which zones are active:
sudo firewall-cmd --get-active-zones
Our AlmaLinux 10 host showed the libvirt zone alongside the default public zone, and you should see the same pair.
libvirt
interfaces: virbr0
public (default)
interfaces: eth0
Bridged guests are on the LAN, so their firewall is their own and the host’s zones don’t filter them. The one port you may need to open on the host is Cockpit’s 9090. AlmaLinux 10’s public zone already allows it (ALREADY_ENABLED: cockpit), but run the command anyway, because other zones and images differ:
sudo firewall-cmd --permanent --add-service=cockpit
sudo firewall-cmd --reload
On a minimal or cloud image without firewalld, install it with sudo dnf install -y firewalld and enable it before you open ports. Our AlmaLinux 10 cloud host did not have it, and the libvirt zone appeared as soon as firewalld started.
Manage VMs from Cockpit
Red Hat deprecated virt-manager in RHEL 10 and names the web console as its replacement. On both 10 releases virt-manager moved from AppStream to CRB, which ships disabled on our Rocky host: dnf info virt-manager found nothing until sudo dnf config-manager --set-enabled crb, and then showed 5.1.0 from crb. Stock AlmaLinux 10 also ships CRB disabled and takes the same command. RHEL enables its CodeReady Builder repository through subscription-manager instead, and we didn’t check virt-manager there. You can still install it this way for a desktop host, but Cockpit with the Machines plugin is the GUI to standardise on.
Install Cockpit and the Machines plugin, then start the socket:
sudo dnf install -y cockpit cockpit-machines
sudo systemctl enable --now cockpit.socket
Cockpit is socket-activated, so sudo ss -tlnp | grep 9090 shows systemd, not a cockpit process, holding the port. Browse to https://10.0.1.50:9090 (your host’s address) and log in with your Linux account. Virtual machines in the left menu lists every guest on the system connection. Because our user was added to the libvirt group earlier, web01 showed up even under Limited access:

Create VM opens the wizard. The useful option is easy to miss: set Installation type to Cloud base image and point it at a GenericCloud qcow2 on the host. The Automation tab then takes the user, password and SSH key that --cloud-init handled on the command line:

- 1Installation type
- 2Automation
Clicking a guest’s name opens its page: CPU, memory, the Autostart switch (already on for web01 from the virsh step) and a console. Guests created with --graphics none have no display, so switch the console to Serial:

The overview also confirms the CPU mode: 2 vCPUs, host passthrough, the virt-install default on these hosts. The rest of the Machines plugin (disks, networks, snapshots and migration from the browser) is walked through in Manage KVM Virtual Machines with the Cockpit Web Console.
Compare the 10 and 9 releases
The same commands ran unchanged on all four releases, so an AlmaLinux KVM host and a Rocky one are built the same way, and the guests booted to an address in 22 to 27 seconds everywhere. The differences are in versions and in where virt-manager lives:
| Rocky 10 | AlmaLinux 10 | Rocky 9 | AlmaLinux 9 | |
|---|---|---|---|---|
| Host release tested | 10.2 | 10.3 | 9.8 | 9.9 |
| qemu-kvm | 10.1.0 | 10.1.0 | 10.1.0 | 10.1.0 |
| libvirt | 12.5.0 | 12.5.0 | 11.10.0 | 11.10.0 |
| Packages installed | 346 | 422 | 353 | 388 |
| Install time | 2m05s | 3m38s | 2m28s | 3m13s |
| Guest boot to IP | 27 s | 22 s | 22 s | 22 s |
| virt-manager | CRB | CRB | AppStream | AppStream |
The Rocky 10 host was on 10.2 because that is what the cloud image shipped, but its packages came from the 10.3 repositories (el10_3 builds), so the versions match AlmaLinux. On a 10.x host, run sudo dnf update before installing.
Harden the host before real workloads
A lab host can stop here. A host that will run real guests needs a few more decisions, and none of them take long:
- Modular sockets only,
libvirtddisabled - The libvirt group kept to admins (it’s root-equivalent)
- SELinux left enforcing, image paths labelled
virt_image_t - Autostart on every guest that must survive a reboot
- Backups that copy the disk off the host, not just snapshots
Our verdict after four hosts: the only real changes on 10 are the dead group name, the deprecated libvirtd and virt-manager’s move to CRB, and each takes one line to work around. Cloud images with --cloud-init are the fastest way to get server guests, and Cockpit covers the GUI. When the guest count grows past what you want to click through, define them in code with Terraform on KVM. For the same setup on other distributions, see Install KVM/QEMU on Ubuntu 26.04 LTS Server or the Fedora KVM guide, and Red Hat’s RHEL 10 virtualization host documentation for the upstream reference.