Skip to content

Instantly share code, notes, and snippets.

@gegehprast
Last active May 7, 2025 15:21
Show Gist options
  • Save gegehprast/9b212cc84dd209ede2680b5fecdffc4a to your computer and use it in GitHub Desktop.
Save gegehprast/9b212cc84dd209ede2680b5fecdffc4a to your computer and use it in GitHub Desktop.
Virt-Manager QEMU/KVM on CachyOS (Arch-based distros)
# Install requirements
paru -S qemu-full qemu-emulators-full libvirt virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat
# Enable libvirtd
sudo systemctl enable libvirtd
sudo systemctl start libvirtd
# Add user to libvirt group
sudo usermod -aG libvirt $(whoami)
newgrp libvirt
# Just checking the virtual network
sudo EDITOR=vim virsh net-edit default
# Start and configure autostart for the default network
sudo virsh net-start default
sudo virsh net-autostart default
# Configure firewall_backend on libvirt network config
sudo vim /etc/libvirt/network.conf
# Edit this config, (iptables, nftables, etc)
firewall_backend = "iptables"
# Might be useful
sudo systemctl restart libvirtd
# Start VMM
virt-manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment