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

Jon Nordby jononor at gmail.com
Mon Oct 26 17:37:01 UTC 2009


On Mon, Oct 26, 2009 at 3:04 PM, Cole Robinson <crobinso at redhat.com> wrote:

> 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
>

Thanks, that was indeed the issue!
For the archives: the openbsd netcat implementation provides the -U option,
where as gnu netcat does not. And I had to restart the daemon after
installing the correct version for things to start working.

-- 
Regards Jon Nordby - www.jonnor.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20091026/c6e2f822/attachment-0001.htm>


More information about the libvir-list mailing list