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
, andqemu
groups. - Uncomment all lines beginning with
unix_sock
in/etc/libvirt/libvirtd.conf
. - Add the following to
/etc/libvirt/libvirt.conf
:
uri_default = "qemu:///system" - Create
/etc/profile.d/libvirt.sh
containing:export LIBVIRT_DEFAULT_URI="qemu:///system"
- Share: