Skip to content

Setting Up Virtualization on Fedora Silverblue: Layering KVM Like a Pro

Layer QEMU, libvirt, and virt-manager on Fedora Silverblue with rpm-ostree, enable libvirtd, and avoid the dnf @virtualization trap on an immutable host.

On this page
  1. Why layering makes sense for Silverblue users
  2. Step-by-step: layering the virtualization stack
  3. 1. Install the core packages
  4. 2. Reboot and activate
  5. 3. Fire up the services
  6. 4. Launch and conquer
  7. Guest ideas that match this channel
  8. Lean alternatives (when you should not layer this)
  9. Troubleshooting
  10. dnf: command not found or “cannot deploy”
  11. VM is painfully slow
  12. No network in the guest
  13. After a Silverblue upgrade, virt-manager is gone
  14. Nested virtualization
  15. And that’s it!

Hey everybody! If you’ve tried Fedora Silverblue, you know it’s sleek, immutable, and reliable
 until you run a classic sudo dnf install @virtualization and hit a wall. That works on traditional Fedora spins, but Silverblue keeps the host locked down.

Don’t sweat it. We’ll use rpm-ostree to layer in KVM, QEMU and libvirt, creating a new deployment you boot into after a quick reboot. It’s stable and rollback-ready. Let’s dive in!

CLI tools that aren’t hypervisors belong in Homebrew so you don’t reboot for gh: How to Install Homebrew on Fedora Silverblue. Appliance-style guests belong on Fedora CoreOS.

Why layering makes sense for Silverblue users

Fedora Silverblue (now on version 43 as of our last update) uses OSTree-based deployments instead of mutable RPMs. You can’t dnf on the host, so you “layer” packages instead. The @virtualization group boils down to a few key players: virt-install, libvirt, qemu-kvm, and friends.

Layering these gets you:

  • KVM hypervisor for hardware-accelerated VMs.
  • Libvirt for management.
  • Virt-manager for a slick GUI to build and tweak your virtual machines.

You also get virt-viewer for SPICE/VNC consoles and libvirt-daemon-kvm so QEMU uses KVM instead of slow TCG.

Pro tip: Check if your CPU supports virtualization first:

Terminal window
lscpu | grep Virtualization
egrep -c '(vmx|svm)' /proc/cpuinfo

If lscpu is silent and the egrep count is 0, enable VT-x / AMD-V in firmware. Nested virt inside another hypervisor is a separate setting on that hypervisor.

Podman on Silverblue runs containers, not VMs. For a build userspace, Toolbox/Distrobox is lighter. Layer KVM when you need another kernel, Windows, or CoreOS as a guest.

Step-by-step: layering the virtualization stack

Grab your terminal. You’ll need sudo access.

1. Install the core packages

This stages a new deployment without touching your current one:

Terminal window
sudo rpm-ostree install virt-install libvirt-daemon-config-network libvirt-daemon-kvm qemu-kvm virt-manager virt-viewer

It downloads the packages and resolves dependencies (like qemu-img for disk images). When it says a reboot is required, confirm:

Terminal window
rpm-ostree status

The pending deployment should list those packages. If ostree errors on a package name, Fedora renamed a subpackage. Search with rpm-ostree search virt-manager instead of guessing.

It’s a bigger layer than gcc, but virtualization is a host feature, so that’s OK. Layers should carry over after rpm-ostree upgrade. If one conflicts, check rpm-ostree status and the Silverblue docs on resetting layers, or reboot into the previous deployment.

2. Reboot and activate

Terminal window
systemctl reboot

After the reboot, verify:

Terminal window
rpm-ostree status
command -v virsh virt-manager qemu-system-x86_64

Your layered packages should show under the active (dotted) deployment, with the binaries on PATH. If virt-manager is missing, you booted the old deployment (pick the new one in grub) or the layer failed.

3. Fire up the services

Enable libvirt for system-wide VMs (or stick to user sessions for lighter security):

Terminal window
sudo systemctl enable --now libvirtd
systemctl status libvirtd --no-pager

You should see active (running). If not, check journalctl -u libvirtd -e.

Add your user to the libvirt group so virt-manager doesn’t ask for a root password on every click:

Terminal window
sudo usermod -aG libvirt "$USER"

Log out and back in (or reboot). Then:

Terminal window
groups
virsh list --all

virsh should talk to qemu:///system without sudo. If it still asks for authentication, you didn’t fully log out.

If SELinux throws a fit, check journalctl -u libvirtd and sudo ausearch -m avc -ts recent. Don’t leave setenforce 0 on. Usually the real issue is libvirtd not running or the user not in the group.

Start the default NAT network:

Terminal window
sudo virsh net-list --all
sudo virsh net-start default
sudo virsh net-autostart default

If default is missing, libvirt-daemon-config-network didn’t get layered. Recheck the layer list.

4. Launch and conquer

  • Pop open virt-manager from your app menu.
  • It should auto-detect your KVM setup. If not, go to File > Add Connection and pick QEMU/KVM.
  • Boom, create VMs and tweak networks. Prefer the CLI? Use virsh.

Check KVM is working:

Terminal window
ls /dev/kvm
virt-host-validate

/dev/kvm must exist. virt-host-validate warnings (IOMMU, secure boot, etc.) are usually fine, but FAIL on KVM is a blocker.

Silverblue’s /var is writable and /home lives under /var/home. I keep ISOs in ~/Downloads and VM disks in /var/lib/libvirt/images (system session) so permissions match libvirtd.

Guest ideas that match this channel

  • Fedora CoreOS: Beginner’s Guide to Fedora CoreOS. The virtio disk is usually /dev/vda in the installer.
  • Another Silverblue for experiments, so you don’t layer junk on your daily laptop.
  • Windows if you need it. That’s a license and virtio-win driver issue, not an ostree one.

Omarchy as a guest works, but nested GPU is hard. For bare metal, see the Omarchy nomodeset install guide.

Lean alternatives (when you should not layer this)

  • Toolbox + nested podman: enough for many admin tasks.
  • User-session libvirt (qemu:///session): disks in your home, no libvirt group. A bit more isolation, but slower VMs and harder bridging.
  • GNOME Boxes: friendlier GUI, but you may still need to layer qemu-kvm.
  • Don’t install VMware modules on Silverblue. Kernel modules and ostree don’t mix. Use mutable Fedora or Arch instead. I covered VMware on Arch and Mint.

Troubleshooting

dnf: command not found or “cannot deploy”

You used dnf install on the host. Use rpm-ostree install. dnf inside a toolbox doesn’t layer the host.

VM is painfully slow

No /dev/kvm, or you picked QEMU without KVM in virt-manager. Enable virtualization in firmware and recreate the VM with KVM.

No network in the guest

The default NAT isn’t started, or the host firewall is blocking libvirt’s virbr0. Check sudo firewall-cmd --list-all and the libvirt zone. A bridged homelab NIC needs a NetworkManager bridge, set up on purpose.

After a Silverblue upgrade, virt-manager is gone

A conflict dropped the layers. Check rpm-ostree status -v and re-layer them. Your VM disks in /var/lib/libvirt/images should still be there.

Nested virtualization

Check cat /sys/module/kvm_intel/parameters/nested (or kvm_amd). Only enable it if you need a hypervisor inside the guest. Most CoreOS guests don’t.

And that’s it!

Got questions, hit a snag, or want to share your VM stories? Drop a comment below. If you’re new to Silverblue, check out the official docs for more atomic adventures.

Happy virtualization, and may your deployments always go smoothly.

Best regards,

The Linux IT Guy