[Pkg-libvirt-maintainers] Bug#614291: Bug#614291: Unable to establish qemu+ssh connection

Luca Capello luca at pca.it
Sat Mar 5 14:54:02 UTC 2011


found 614291 0.8.4-8
tags 614291 + patch
thanks

Hi there!

NB, this could be considered a duplicate of #453627 ;-)

On Sun, 20 Feb 2011 22:28:53 +0100, Michael Biebl wrote:
> Am 20.02.2011 22:23, schrieb Michael Biebl:
>> Am 20.02.2011 22:13, schrieb Guido Günther:
>> 
>>> You're using netcat-openbsd? 
>> 
>> Server or Client?

Server: netcat-traditional
Client: netcat-openbsd and netcat-traditional, /bin/nc pointing to
        /bin/nc.openbsd (auto priority 50 over 10)

> Nevermind. I just checked the KVM server and netcat-openbsd was not installed.
> Installing it solved the problem.

Here as well, simply installing netcat-openbsd on the server solved the
problem.
     
However, this is because netcat-openbsd has a higher alternative
priority than netcat-traditional, which means that if you manually
manage nc alternative and set it to netcat-traditional, the problem is
still there.  Read below for a possible solution.

> I can't reproduce anymore, why netcat-openbsd was removed when dist-upgrading
> from lenny to squeeze.

I have never had netcat-openbsd on the server and installing libvirt-bin
did not bring it in.

> That said, would it be possible to provide a more meaningful error message in
> virt-manager?
> I would have never guessed that to be a problem of a missing netcat-openbsd.

While I agree, at the same time the error message is quite clear, at
least at the beginning, while at the end, where it asks to check if
libvirtd is running, the message is simply useless.

The bug seems in libvirt-bin (at least 0.8.3-5), not virt-manager, since
setting the nc alternative to netcat-traditional on the client still
lets virt-manager connect to the server.

So, I see two solutions, beside the fact that libvirt-bin should depend
on netcat-openbsd:

1) libvirt-bin calls /bin/nc.openbsd, not elegant, but it avoids any
   problem in an automatic way

2) libvirt-bin still calls /bin/nc, but the need for netcat-openbsd
   should be documented at least in the README.Debian, something like

--8<---------------cut here---------------start------------->8---
--- !home!luca!README.Debian.~1~	2011-03-05 15:47:44.000000000 +0100
+++ /home/luca/README.Debian	2011-03-05 15:51:26.000000000 +0100
@@ -16,6 +16,18 @@
 libvirtd to access xen with unprivileged users and add the users to the
 "libvirt" group (see "Access Control" below).
 
+SSH connections to the server
+=============================
+
+If you want to connect to the libvirt server via SSH, you need to
+install netcat-openbsd on the server and configure the nc alternative
+to use it.  This is done automatically when netcat-openbsd is
+installed if you do not have previously modified the nc alternative.
+Please see the following bug reports for a complete explanation:
+
+  <http://bugs.debian.org/453627>
+  <http://bugs.debian.org/614291>
+
 Debugging
 =========
 Use LIBVIRT_DEBUG=1 to enable libvirt's debugging output, e.g.:
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20110305/b8f2fe35/attachment.pgp>


More information about the Pkg-libvirt-maintainers mailing list