<br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 3:04 PM, Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div class="h5">On 10/25/2009 10:25 AM, Jon Nordby wrote:<br>
> I get the following errors (skipping "system" yields the same):<br>
> [root@jon-laptop ~]# virsh -c qemu+ssh://<a href="http://10.0.0.2/system" target="_blank">10.0.0.2/system</a> list<br>
> error: server closed connection<br>
> error: failed to connect to the hypervisor<br>
><br>
> However, SSH and libvirtd both work on their own:<br>
> [root@jon-laptop ~]# ssh 10.0.0.2<br>
> Last login: Sun Oct 25 14:06:07 2009 from 10.0.0.143<br>
> [root@server0 ~]# virsh list<br>
> Id Name State<br>
> ----------------------------------<br>
> 21 family-server running<br>
><br>
> The connection is allowed in hosts.allow<br>
> libvirt 0.7.2 in both ends, kvm backend, Arch Linux<br>
><br>
> What could be the source of this problem? And how can I find it?<br>
><br>
<br>
</div></div>ccing libvirt-list<br>
<br>
This could be an issue of 'nc' incompatibility. Does the 'nc' command on<br>
the remote system support the -U option?<br>
<br>
If you run the virsh command with LIBVIRT_DEBUG=1 virsh ... you should<br>
see the ssh command being run. See if running the command by hand<br>
produces an error.<br>
<font color="#888888"><br>
- Cole<br>
</font></blockquote></div><br><div>Thanks, that was indeed the issue! <br clear="all"></div><div>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.</div>
<br>-- <br>Regards Jon Nordby - <a href="http://www.jonnor.com">www.jonnor.com</a><br>