I noticed a strange behavior on one machine using Debian that I can't reproduce on another machine running Ubuntu. When listing virsh
networks as an ordinary user, it shows an empty list:
~$ virsh net-list --all Name State Autostart Persistent ----------------------------------------------------------
When running the same command with sudo
, it shows the default connection:
~$ sudo virsh net-list --all Name State Autostart Persistent ---------------------------------------------------------- default active no yes
The permissions on the files themselves seem to be set correctly:
~$ ls -l /etc/libvirt/qemu/networks total 8 drwxr-xr-x 2 root root 4096 Jul 1 18:19 autostart -rw-r--r-- 1 root root 228 Jul 1 18:19 default.xml
The user belongs to kvm
and libvirtd
groups.
What is happening? Why can't I list the networks as an ordinary user?