本文共 1111 字,大约阅读时间需要 3 分钟。
[root@vmhost2 /]# virsh listPlease enter your authentication name: admin Please enter your password: 错误:连接到管理程序失败错误:验证失败: 验证失败[root@vmhost2 /]# saslpasswd2 -a libvirt adminPassword: 设置密码Again (for verification):再次输入密码
另一个方法,以下转载群友
ovirt节点直接使用virsh操作vm需要用户名密码[root@ovirt4 ~]# virsh list vdsm@ovirterror: unexpected data 'vdsm@ovirt'[root@ovirt4 ~]# virsh list --allPlease enter your authentication name: vdsm@ovirtPlease 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.pySASL_USERNAME = "vdsm@ovirt"
密码(shibboleth)获取
[root@ovirt3 ~]# find / -name libvirt_password /etc/pki/vdsm/keys/libvirt_password[root@ovirt3 ~]# cat /etc/pki/vdsm/keys/libvirt_passwordshibboleth #密码
转载于:https://blog.51cto.com/2833238/2064538