我安装了Ovirt并希望为NAT添加networking接口。 所以我需要通过virsh连接到hypervisor并添加nic。
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
在正常模式下
# 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
# 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端口
# 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.
我应该如何连接到pipe理程序?
我find了解决scheme!
问题在于“使用SASLauthentication的远程pipe理”。 我没有创buildSASL的特殊用户。 创build用户命令是
# saslpasswd2 -a libvirt USERNAME Password: Again (for verification):
就这样。
证书不匹配。 如果virsh有一个选项不检查证书的有效性,然后使用该选项。 否则,修复证书以匹配DNS名称,反之亦然,修正DNS匹配证书名称。 哪一个更合适。
虽然你可以谷歌或要求[email protected]用户名和密码,我肯定会build议不要用virsh触摸任何东西。 原因是ovirt引擎pipe理系统,向底层的vdsm和libvirt守护进程发出命令,如果直接进入libvirt,绕过引擎,所做的任何更改都不会被解决,并且可能会破坏事情。
而且,NATconfiguration并不是由ovirt本身支持的,标准的运行模式是桥接的,这是ovirt逻辑networking真正的底层。