<div dir="ltr"><div>I want to manage remote libvirt , have run libvirtd in the dest host :<br></div><div><br></div><div><div>[root@dest_host ~]# ps aux | grep libvirtd </div><div>root      3293  0.0  0.1 923796  5856 ?        Sl   12:59   0:00 libvirtd --daemon</div>

</div><div><br></div><div>then I use the command in source host :<div><br></div><div> 1.   [root@source_host ~]# ssh -l root 211.87.***.97             ## login the dest host</div><div> 2.   [root@dest_host ~]# virsh -c qemu+ssh://<a href="http://127.0.0.1/system">127.0.0.1/system</a> list --all        # query vm status</div>

<div><br></div><div>output:</div><div><div> Id    Name                           State</div><div>----------------------------------------------------</div><div> -     ubuntu                         shut off</div><div> -     vdisk                          shut off</div>

</div><div><br></div><div><br></div><div>also I use the command in source host </div><div><br></div><div>  1.  [root@source_host ~]# ssh -l root 211.87.***.97    ## login the dest host</div><div>  2.  [root@dest_host ~]# virsh -c qemu+ssh://211.87.***.97/system list --all    ### query vm status</div>

<div><div><br></div><div>output:</div><div><div> Id    Name                           State</div><div>----------------------------------------------------</div><div> -     ubuntu                         shut off</div><div>

 -     vdisk                          shut off</div></div></div><div><br></div><div><br></div><div><br></div><div>however ,   in the source host , execute the command :</div><div><br></div><div>   1. [root@source_host ~]# virsh -c qemu+ssh://<a href="http://211.87.228.97/system">211.87.228.97/system</a> list --all    ### query vm status </div>

<div><br></div><div>output:</div><div><div>error: failed to connect to the hypervisor</div><div>error: no valid connection</div><div>error: End of file while reading data: : Input/output error</div></div><div><br></div><div style>

I have referred to </div><div style>   <a href="http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor#Other_errors">http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor#Other_errors</a> ,     </div>

<div style>   <a href="http://wiki.libvirt.org/page/SSHSetup">http://wiki.libvirt.org/page/SSHSetup</a> and </div><div style>   <a href="http://wiki.libvirt.org/page/SSHPolicyKitSetup">http://wiki.libvirt.org/page/SSHPolicyKitSetup</a> . </div>

<div style>All of them don't work.</div><div style><br></div><div style>how should I do ? Help .</div><div style><br></div><div style><br></div><div><br></div><div><br></div></div></div>