π Note:
This guide targets Arch Linux, but is applicable to most Arch-based systems.
GUI is required (forvirt-manager).
β οΈ Requirements:
- Internet connection
sudoprivileges- Hardware virtualization enabled in BIOS (VT-x for Intel / AMD-V for AMD)
sudo pacman -S --needed qemu-base virt-manager virt-viewer dnsmasq vde2 bridge-utils \
openbsd-netcat ebtables iptables-nft libvirt swtpm ovmfqemu-baseβ Core QEMU (no unnecessary extras likeqemu-arch-extra)libvirtβ Required for managing virtualization backendsvirt-managerβ GUI interface for managing VMsvirt-viewerβ Lightweight remote viewer for VMsdnsmasqβ Provides DHCP for NAT-based networkingvde2,bridge-utilsβ Enable advanced networking setups (bridged/tap)openbsd-netcatβ Used for port forwarding in some setupsiptables-nftβ Recommended for systems usingiptableswithnftablesbackend (default on Arch)swtpmβ Software TPM module (needed for Windows 11)ovmfβ UEFI firmware for VMs (also required for Windows 11)
Optional:
Addvirt-installif you prefer scripting VM setups via CLI.
sudo systemctl enable --now libvirtd.serviceThis ensures the virtualization backend starts on boot.
sudo usermod -aG libvirt $(whoami)This gives your user access to manage VMs.
You'll need to log out and log back in (or reboot) for this to take effect.
To apply group permissions immediately, reboot:
rebootOr just restart the libvirtd service:
sudo systemctl restart libvirtdvirsh list --all # See available VMs
virsh start <vm-name> # Start a specific VM
virshrequires root or libvirt group access.
remote-viewer spice://localhost:5900 -fAdjust port if using multiple VMs or custom display settings.
lscpu | grep VirtualizationYou should see:
VT-x(Intel)AMD-V(AMD)
If nothing appears, enable virtualization in BIOS/UEFI.
systemctl status libvirtd.serviceRun via app launcher or:
virt-managerFrom here, you can:
- Create VMs from ISO images
- Use UEFI firmware (via
OVMF) - Attach TPM device for Win11
- Allocate CPU, RAM, storage
- Use bridged/NAT networking
-
You can install Windows 11 by:
- Enabling UEFI (OVMF)
- Attaching TPM (
swtpm) - Allocating at least 4 GB RAM + 2 CPUs
-
Create disk images using
qemu-imgif needed:
qemu-img create -f qcow2 ~/vm_images/win11.qcow2 50G- For better disk performance, enable VirtIO drivers (especially for Windows guests).
You now have a complete KVM/QEMU virtualization setup with virt-manager on Arch Linux.