[libvirt] Re: [virt-tools-list] Remote management over SSH fails to connect

Cole Robinson crobinso at redhat.com
Mon Oct 26 14:04:23 UTC 2009


On 10/25/2009 10:25 AM, Jon Nordby wrote:
> I get the following errors (skipping "system" yields the same):
> [root at jon-laptop ~]# virsh -c qemu+ssh://10.0.0.2/system list
> error: server closed connection
> error: failed to connect to the hypervisor
> 
> However, SSH and libvirtd both work on their own:
> [root at jon-laptop ~]# ssh 10.0.0.2
> Last login: Sun Oct 25 14:06:07 2009 from 10.0.0.143
> [root at server0 ~]# virsh list
> Id Name State
> ----------------------------------
> 21 family-server running
> 
> The connection is allowed in hosts.allow
> libvirt 0.7.2 in both ends, kvm backend, Arch Linux
> 
> What could be the source of this problem? And how can I find it?
> 

ccing libvirt-list

This could be an issue of 'nc' incompatibility. Does the 'nc' command on
the remote system support the -U option?

If you run the virsh command with LIBVIRT_DEBUG=1 virsh ... you should
see the ssh command being run. See if running the command by hand
produces an error.

- Cole





More information about the libvir-list mailing list