Debian Bug report logs -
#516482
libvirt0: qemu+ssh requires netcat-openbsd
Reported by: adrian@smop.co.uk
Date: Sat, 21 Feb 2009 20:06:01 UTC
Severity: minor
Found in version virt-manager/0.6.1-4
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#516482; Package virt-manager.
(Sat, 21 Feb 2009 20:06:03 GMT) (full text, mbox, link).
Acknowledgement sent
to adrian@smop.co.uk:
New Bug report received and forwarded. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Sat, 21 Feb 2009 20:06:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: virt-manager
Version: 0.6.1-4
Severity: minor
It's taken me many hours to track this down, not sure the best way
(well, possibly remove the dependency!).
If you use qemu+ssh to a remote system, it calls "nc -U
/var/run/libvirt/libvirt-sock".
a) it should probably call "netcat" instead (I know we keep 'nc' for
backwards compatability, but I think 'netcat' has also been adopted
everywhere now (i.e. by other distros)).
b) -U is only supported by netcat-openbsd, not netcat-traditional
(perhaps mention this in the 'details' error message?)
c) not convinced what this actually does TBH - isn't that file 'owned'
by libvirt - i.e. couldn't it just be 'cat'ted instead hence removing
this dependency?
Anyway, set to minor, just hopefully saving someone else some
frustrations!
Many thanks :-)
Adrian
--
Email: adrian@smop.co.uk -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#516482; Package virt-manager.
(Sun, 22 Feb 2009 13:03:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Guido Günther <agx@sigxcpu.org>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Sun, 22 Feb 2009 13:03:02 GMT) (full text, mbox, link).
Message #10 received at 516482@bugs.debian.org (full text, mbox, reply):
On Sat, Feb 21, 2009 at 08:03:09PM +0000, Adrian Bridgett wrote:
> Package: virt-manager
> Version: 0.6.1-4
> Severity: minor
>
> It's taken me many hours to track this down, not sure the best way
> (well, possibly remove the dependency!).
>
> If you use qemu+ssh to a remote system, it calls "nc -U
> /var/run/libvirt/libvirt-sock".
>
> a) it should probably call "netcat" instead (I know we keep 'nc' for
> backwards compatability, but I think 'netcat' has also been adopted
> everywhere now (i.e. by other distros)).
>
> b) -U is only supported by netcat-openbsd, not netcat-traditional
> (perhaps mention this in the 'details' error message?)
>
> c) not convinced what this actually does TBH - isn't that file 'owned'
> by libvirt - i.e. couldn't it just be 'cat'ted instead hence removing
> this dependency?
>
> Anyway, set to minor, just hopefully saving someone else some
> frustrations!
We do have a "Recommends: netcat-openbsd" in libvirt-bin exactly for
that so the only point left is improving the error message or am I
missing something?
-- Guido
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#516482; Package virt-manager.
(Sun, 22 Feb 2009 13:12:03 GMT) (full text, mbox, link).
Acknowledgement sent
to adrian@smop.co.uk:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Sun, 22 Feb 2009 13:12:03 GMT) (full text, mbox, link).
Message #15 received at 516482@bugs.debian.org (full text, mbox, reply):
Ah, I hadn't spotted that.
Probably just the error message in that case (I had to strace it to
figure out what was going wrong - if the error that came back from the
exec was displayed it would have been a 2min job).
Adrian
--
Email: adrian@smop.co.uk -*- GPG key available on public key servers
Debian GNU/Linux - the maintainable distribution -*- www.debian.org
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#516482; Package virt-manager.
(Mon, 16 Mar 2009 14:51:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Laurent Léonard <laurent@open-minds.org>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
Your message did not contain a Subject field. They are recommended and
useful because the title of a $gBug is determined using this field.
Please remember to include a Subject field in your messages in future.
(Mon, 16 Mar 2009 14:51:04 GMT) (full text, mbox, link).
Message #20 received at 516482@bugs.debian.org (full text, mbox, reply):
Virsh prints the error message given by nc :
$ virsh -c qemu+ssh://root@host/system
nc: invalid option -- U
nc -h for help
error: failed to connect to the hypervisor
But it could be replaced by a more human friendly error message. Same with the
generic dialog from Virt-manager about a "libvirtd" problem...
--
Laurent Léonard
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#516482; Package virt-manager.
(Tue, 17 Mar 2009 15:57:34 GMT) (full text, mbox, link).
Acknowledgement sent
to Guido Günther <agx@sigxcpu.org>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Tue, 17 Mar 2009 15:57:58 GMT) (full text, mbox, link).
Message #25 received at 516482@bugs.debian.org (full text, mbox, reply):
On Mon, Mar 16, 2009 at 03:49:02PM +0100, Laurent Léonard wrote:
> Virsh prints the error message given by nc :
> $ virsh -c qemu+ssh://root@host/system
> nc: invalid option -- U
> nc -h for help
> error: failed to connect to the hypervisor
>
> But it could be replaced by a more human friendly error message. Same with the
> generic dialog from Virt-manager about a "libvirtd" problem...
I agree that error handling could be improved a lot here. Patches are of
course welcome.
Cheers,
-- Guido
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#516482; Package virt-manager.
(Wed, 06 May 2009 13:57:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Jan Rasche <xcomm@linux-hacks.com>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Wed, 06 May 2009 13:57:02 GMT) (full text, mbox, link).
Message #30 received at 516482@bugs.debian.org (full text, mbox, reply):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi virt-manager Developers,
Just spend some hours with virt-manager from my Debian GNU/Notebook not
being able to connect to two OpenSuSE 11.1 Xen hosts.
###GUI###
virt-manager from GUI tells nothing about the real reason:
Unable to open a connection to the libvirt management daemon.
Libvirt URI is: xen+ssh://root@foobar/
Verify that:
- The 'libvirtd' daemon has been started
Unable to open connection to hypervisor URI 'xen+ssh://root@foobar/':
<class 'libvirt.libvirtError'> server closed connection
None
Maybe you need to install ssh-askpass in order to authenticate.
###Shell###
virsh # connect xen+ssh://root@foobar/
bash: nc: command not found
error: Failed to connect to the hypervisor
error: server closed connection
foobar# ln -s /usr/bin/netcat /usr/bin/nc
virsh # connect xen+ssh://root@foobar/
nc: invalid option -- 'U'
nc -h for help
error: Failed to connect to the hypervisor
error: server closed connection
Finding http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516482 through
friend Google.
foobar# zypper install netcat-openbsd
virsh # connect xen+ssh://root@foobar/
virsh # list --all
...
After all this was coming down to netcat-openbsd needed on the remote
machines. I don't think relying on such a dependency is good practice
beneath no specific error at all given when in GUI.
For my part I would raise the severity of this bug here.
Best regards, Jan
- --
- --
"Eigentlich bin ich ganz anders...
...nur komme ich so selten dazu."
* [http://en.wikipedia.org/wiki/Ödön_von_Horváth Ödön von Horváth]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoBllYACgkQZ4Vo3ep5lKTiYgCffoeu2sSgf8s1X3RISNow5XBj
I8EAoJwm9AwLJRDhe8N/oBRvQt0vflRB
=eNco
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>:
Bug#516482; Package virt-manager.
(Wed, 28 Jul 2010 04:51:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Dean Hamstead <dean.hamstead@optusnet.com.au>:
Extra info received and forwarded to list. Copy sent to Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>.
(Wed, 28 Jul 2010 04:51:04 GMT) (full text, mbox, link).
Message #35 received at 516482@bugs.debian.org (full text, mbox, reply):
in 0.8.4 i have had to swap back from netcat-openbsd to netcat-traditional
as netcat-openbsd doesnt support the '-q' option
can libvirtd query netcat first to determine the implementation?
perhaps the -q option can be added to netcat-openbsd?
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Fri Jan 12 20:50:43 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.