首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Virsh无法连接到ovirt管理程序

Virsh无法连接到ovirt管理程序
EN

Server Fault用户
提问于 2013-05-12 23:11:57
回答 4查看 16.9K关注 0票数 1

我安装了Ovirt,并希望为NAT添加网络接口。因此,我需要通过virsh连接到hypervisor并添加nic。

安装在我的本地服务器上的Ovirt主机(ovirt.kvmserver.net)位于同一台服务器上。

我试着用可读的方式连接是可以的。

代码语言:javascript
复制
 # 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

正常模式

代码语言:javascript
复制
# 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.)

据我所知,我需要连接证书。我试了一下https

代码语言:javascript
复制
# 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

我试过80端口

代码语言:javascript
复制
# 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.

我应该如何连接到系统管理程序?

EN

回答 4

Server Fault用户

回答已采纳

发布于 2013-05-13 19:09:00

我找到解决办法了!

问题在于“使用SASL身份验证进行远程管理”。我没有为SASL创建特殊的用户。创建用户命令是

代码语言:javascript
复制
# saslpasswd2 -a libvirt USERNAME
Password:
Again (for verification):

就这样。

票数 5
EN

Server Fault用户

发布于 2021-06-28 09:56:49

您也可以尝试这个(找到这里 )

代码语言:javascript
复制
 virsh -c qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf
票数 1
EN

Server Fault用户

发布于 2013-05-13 02:24:03

证书不匹配。如果virsh有不检查cert有效性的选项,则使用该选项。否则,将证书与dns名称匹配,反之亦然,将dns与证书名称匹配。以较适当者为准。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/507151

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档