在KVM宿主机查询虚拟机时virsh list --all 查询时提示:
Please enter your authentication name:
…
error: failed to connect to the hypervisor
error: authentication failed: Failed to start SASL negotiation: -1…
不输入就报错验证失败
解决:
修改服务配置文件
vi /etc/libvirt/libvirtd.conf
auth_unix_rw=“none”
重启服务
systemctl restart libvirtd