In AlmaLinux (and Red Hat Enterprise Linux, Rocky Linux, and CentOS), libvirtd defaults to the user URI. When a regular user executes virsh list, they will see only the KVM virtual machines accessible to their user and will not see those started by the system. You can change this behavior so that regular users can list and interact with virtual machines in the system URI.
- Add your regular user(s) to the
kvm,libvirt, andqemugroups. - Uncomment all lines beginning with
unix_sockin/etc/libvirt/libvirtd.conf. - Add the following to
/etc/libvirt/libvirt.conf:uri_default = "qemu:///system" - Create
/etc/profile.d/libvirt.shcontaining:export LIBVIRT_DEFAULT_URI="qemu:///system"