Abd*_*dus 1 linux certificate redhat kvm-virtualization virsh
我安装了 Ovirt 并想为 NAT 添加网络接口。所以我需要通过 virsh 连接到虚拟机管理程序并添加网卡。
Ovirt 安装在我的本地服务器上,主机(ovirt-engine.kvmserver.net)位于同一服务器上。
我尝试以可读模式连接没问题
# virsh -r
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh > list
Id Name State
----------------------------------------------------
10 CentOS_test running
12 CentOS_test2 running
16 Windows1 running
17 Windows2 running
Run Code Online (Sandbox Code Playgroud)
正常模式下
# virsh
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # list
Please enter your authentication name:
Please enter your password:
error: Failed to reconnect to the hypervisor
error: no valid connection
error: authentication failed: Failed to step SASL negotiation: -1 (SASL(-1): generic failure: All-whitespace username.)
Run Code Online (Sandbox Code Playgroud)
据我了解,我需要连接证书。我尝试过 https
# virsh connect https://ovirt-engine.kvmserver.net
2013-05-12 13:21:30.004+0000: 25581: info : libvirt version: 0.10.2, package: 18.el6_4.4 (CentOS BuildSystem <http://bugs.centos.org>, 2013-04-18-16:13:45, c6b7.bsys.dev.centos.org)
2013-05-12 13:21:30.004+0000: 25581: warning : virNetTLSContextCheckCertificate:1102 : Certificate check failed Certificate [session] owner does not match the hostname ovirt-engine.kvmserver.net
error: Failed to connect to the hypervisor
error: authentication failed: Failed to verify peer's certificate
Run Code Online (Sandbox Code Playgroud)
我试过80端口
# virsh connect http://ovirt-engine.kvmserver.net:80
error: Failed to connect to the hypervisor
error: authentication failed: TLS handshake failed A TLS packet with unexpected length was received.
Run Code Online (Sandbox Code Playgroud)
我应该如何连接到虚拟机管理程序?
我找到了解决方案!
问题出在“使用 SASL 身份验证的远程管理”上。我没有为 SASL 创建特殊用户。创建用户命令是
# saslpasswd2 -a libvirt USERNAME
Password:
Again (for verification):
Run Code Online (Sandbox Code Playgroud)
就这样。
| 归档时间: |
|
| 查看次数: |
17864 次 |
| 最近记录: |