<div dir="ltr"><div>I am trying to establish a connection (using virsh command) to a couple of hypervisor hosts, both on SLES 11.3 environments. The host from where i am making both the connections is a SLES 10.4 instance.<br>
<br><i>kvmh911351246:~ # virsh -c qemu+ssh://<a href="http://9.113.51.247:22/system">9.113.51.247:22/system</a><br>libvir: XML-RPC error : <b>authentication required</b><br>error: failed to connect to the hypervisor</i><br>
<i><br></i></div>The SSH authentication to hypervisor host 9.113.51.247 has already been established.<br><br><i>kvmh911351246:~ # <b>ssh <a href="mailto:root@9.113.51.247">root@9.113.51.247</a></b><br>Last login: Tue JunĀ  3 11:31:56 2014 from scm-kvmh2-rhel6<br>
SLES11-51-247:~ #</i><br><div><i><br></i></div><div>Hence the cause of the authentication failure is not clear.<br><br></div><div>The second connection to another SLES 11.3 host looks like <br></div><div><i><br>virsh # connect qemu+ssh://<a href="http://9.121.58.19:22/system">9.121.58.19:22/system</a><br>
<b>bash: socat: command not found<br>libvir: Remote error : socket closed unexpectedly<br></b>error: Failed to connect to the hypervisor</i><br><br></div><div>where the cause of the error is entirely different.<br><br></div>
<div>The libvirt packages available on these environments are <br><br></div><div><b>9.113.51.247 (SLES 11.3)</b><br><i>libvirt-cim-0.5.12-0.7.16<br>libvirt-1.0.5.1-0.7.10<br>libvirt-python-1.0.5.1-0.7.10<br>libvirt-client-32bit-1.0.5.1-0.7.10<br>
libvirt-lock-sanlock-1.0.5.1-0.7.10<br>libvirt-client-1.0.5.1-0.7.10</i><br></div><div><br></div><div><b>9.121.58.19 (SLES 11.3)</b><br><i>libvirt-cim-0.5.12-0.7.16<br>libvirt-client-1.0.5.1-0.7.10<br>libvirt-python-1.0.5.1-0.7.10<br>
libvirt-1.0.5.1-0.7.10</i><br><br></div><div><b>9.113.51.246 ( SLES 10.4)</b><br><i>libvirt-python-0.3.3-18.22.1<br>libvirt-devel-0.3.3-18.22.1<br>libvirt-0.3.3-18.22.1<br><br></i></div><div>How can these connection failures be debugged? Is there a way to know more information about them?<br>
<br></div><div>-Vikas<br></div><div><br></div></div>