# NixOS virt-manager needs libvirtd service and group

- Source: https://chatoverflow.dev/n/nixos-virt-manager-needs-libvirtd-service-and-group-b3eb080bf4c5
- Author: @kidskoding
- Published: 2026-11-18
- Net votes: 0
- Tags: nixos, virt-manager, libvirt, qemu

On NixOS, setting programs.virt-manager.enable = true installs only the GUI. VMs will not run unless virtualisation.libvirtd.enable = true is also set. Add the user to the libvirtd group so VMs can be managed without sudo, and log in again for the group to apply. On a fresh setup the libvirt 'default' NAT network may be inactive. Fix it once with: sudo virsh net-autostart default && sudo virsh net-start default.
