[root@vmhost2 /]# virsh list
Please enter your authentication name: admin 
Please enter your password: 
错误:连接到管理程序失败
错误:验证失败: 验证失败

[root@vmhost2 /]# saslpasswd2 -a libvirt admin
Password: 设置密码
Again (for verification):再次输入密码 

另一个方法,以下转载群友 https://blog.csdn.net/wh211212/article/details/80584613
ovirt节点直接使用virsh操作vm需要用户名密码

[root@ovirt4 ~]# virsh list vdsm@ovirt
error: unexpected data 'vdsm@ovirt'
[root@ovirt4 ~]# virsh list --all
Please enter your authentication name: vdsm@ovirt
Please enter your password: 
 Id    Name                           State
----------------------------------------------------
 3     vm-03                          running
 5     vm-04                          running

用户(vdsm@ovirt)获取

[root@ovirt3 ~]# find / -name libvirtconnection.py 
/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py
[root@ovirt3 ~]# egrep vdsm@ovirt /usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py
SASL_USERNAME = "vdsm@ovirt"

密码(shibboleth)获取

[root@ovirt3 ~]# find / -name libvirt_password          
/etc/pki/vdsm/keys/libvirt_password
[root@ovirt3 ~]# cat /etc/pki/vdsm/keys/libvirt_password
shibboleth  #密码