Unable to connect to libvirt qemu+ssh://root@centos/system. 无法 recv 数据:ssh: Could not resolve hostname centos: Name or service not known: Connection reset by peer Verify that the 'libvirtd' daemon is running on the remote host. Libvirt URI is: qemu+ssh://root@centos/system Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open self._backend.open(self._do_creds_password) File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open open_flags) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 104, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: 无法 recv 数据:ssh: Could not resolve hostname centos: Name or service not known: Connection reset by peer
时间: 2024-04-26 22:21:11 浏览: 260
这个错误提示意味着你的 libvirt 无法连接到远程主机 centos,可能是因为它无法解析主机名导致的。你需要确保远程主机 centos 的 IP 地址和主机名都正确,并且 libvirtd 守护进程在远程主机上运行。你可以尝试使用 ping 命令来测试远程主机的可访问性,以及在远程主机上运行 systemctl start libvirtd 命令来启动 libvirtd 守护进程。此外,你还需要确保你的 libvirt 安装正确,并且你有足够的权限来连接到远程主机。如果问题仍然存在,请提供更多详细信息,以便更好地理解问题所在。
阅读全文