<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi, <br><br>I am able to connect remote xend using http but whenever I try to connect remote machine using  "virsh -c xen+ssh://root@...../ list" I found following error:<br><br>libvir: Remote error : socket closed unexpectedly<br>error: failed to connect to the hypervisor<br><br>libvirtd is running on both systems and netcat is also installed on both machines.<br><br>Debug log is:<br>node2:/home/waheed#  export LIBVIRT_DEBUG=1<br>node2:/home/waheed# virsh -c xen+ssh://root@node1/ list<br>DEBUG: libvirt.c: virInitialize (register drivers)<br>DEBUG: libvirt.c: virRegisterDriver (registering Test as driver 0)<br>DEBUG: libvirt.c: virRegisterNetworkDriver (registering Test as network driver 0)<br>DEBUG: libvirt.c: virRegisterStorageDriver (registering Test as storage driver 0)<br>DEBUG: xen_internal.c: xenHypervisorInit (Using new hypervisor call:
 30002<br>)<br>DEBUG: xen_internal.c: xenHypervisorInit (Using hypervisor call v2, sys ver6 dom ver5<br>)<br>DEBUG: libvirt.c: virRegisterDriver (registering Xen as driver 1)<br>DEBUG: libvirt.c: virRegisterDriver (registering OPENVZ as driver 2)<br>DEBUG: libvirt.c: virRegisterDriver (registering remote as driver 3)<br>DEBUG: libvirt.c: virRegisterNetworkDriver (registering remote as network driver 1)<br>DEBUG: libvirt.c: virRegisterStorageDriver (registering remote as storage driver 1)<br>DEBUG: libvirt.c: virRegisterDeviceMonitor (registering remote as device driver 0)<br>DEBUG: libvirt.c: virConnectOpenAuth (name=xen+ssh://root@node1/, auth=0xb7ed8be0, flags=0)<br>DEBUG: libvirt.c: do_open (name "xen+ssh://root@node1/" to URI components:<br>  scheme xen+ssh<br>  opaque (null)<br>  authority (null)<br>  server node1<br>  user root<br>  port 0<br>  path /<br>)<br>DEBUG: libvirt.c: do_open (trying driver 0 (Test)
 ...)<br>DEBUG: libvirt.c: do_open (driver 0 Test returned DECLINED)<br>DEBUG: libvirt.c: do_open (trying driver 1 (Xen) ...)<br>DEBUG: libvirt.c: do_open (driver 1 Xen returned DECLINED)<br>DEBUG: libvirt.c: do_open (trying driver 2 (OPENVZ) ...)<br>DEBUG: libvirt.c: do_open (driver 2 OPENVZ returned DECLINED)<br>DEBUG: libvirt.c: do_open (trying driver 3 (remote) ...)<br>DEBUG: remote_internal.c: doRemoteOpen (proceeding with name = xen:///)<br>DEBUG: util.c: virExec (ssh -p 22 -l root node1 nc -U /var/run/libvirt/libvirt-sock)<br>root@node1's password: <br>libvir: Remote error : socket closed unexpectedly<br>DEBUG: libvirt.c: do_open (driver 3 remote returned ERROR)<br>DEBUG: datatypes.c: virUnrefConnect (unref connection 0x9818de0 1)<br>DEBUG: datatypes.c: virReleaseConnect (release connection 0x9818de0)<br>error: failed to connect to the hypervisor<br><br><br>Please help me to identify
 problem.<br><br>Regards<br>Waheed<br><br><br><br><br></td></tr></table><br>