netcat with '-U' option for connection virt-manager to libvirt over SSH

  • Open
  • quality assurance status badge
Details
4 participants
  • Oleg Pykhalov
  • Leo Famulari
  • Ludovic Courtès
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Oleg Pykhalov
Severity
normal
O
O
Oleg Pykhalov wrote on 7 Jul 2018 01:31
(address . bug-guix@gnu.org)
87h8lchrfs.fsf@gmail.com
Hello Guix,

I try to use virt-manager for connection over SSH from Linux Mint to
GuixSD running libvirt.

Seems we need to package netcat which includes ‘-U’ option:
Toggle snippet (17 lines)
Unable to connect to libvirt qemu+ssh://natsu@secret.foo/system.

The remote host requires a version of netcat/nc which supports the -U option.

Libvirt URI is: qemu+ssh://natsu@secret.foo/system

Traceback (most recent call last):
File "/gnu/store/pakiz00asgm6cq5l4xwbwzksd0z576iq-virt-manager-1.5.1/share/virt-manager/virtManager/connection.py", line 1036, in _do_open
self._backend.open(self._do_creds_password)
File "/gnu/store/pakiz00asgm6cq5l4xwbwzksd0z576iq-virt-manager-1.5.1/share/virt-manager/virtinst/connection.py", line 144, in open
open_flags)
File "/gnu/store/xdyrp8fbcgk2cnyck4yda2wl1vql1m82-python2-libvirt-4.1.0/lib/python2.7/site-packages/libvirt.py", line 105, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: End of file while reading data: nc: invalid option -- 'U'
Try `nc --help' for more information.: Input/output error

Thanks,
Oleg.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAls/+9cACgkQckbhHGm3
lWnf+w//dqRfEkMYekO5dzjuHNs1ObdsAu2BXXRCWFwHVp6x0S8Dcd4xTH6vBa7i
SAMH2JJ554bYu1M966E0EcJG+QT8xRnb40n5NNs/TfHSLevNWH7a/PhhXABJpJoa
uU7h+Ih+PdbalBhVutbAwALcwU1JQyjaNzEYX1z2rp8STjHl1y91FPTfhyqG88HA
B5y65MhEgeGLE8xeTuLPWTT7JHJxo8tliyO4m7Ocvjm7+uogUQigGVxQSpvjAX1V
VK4Cizl4/bhPxHDdTAT9VhlL/2xXjcew/h9KJLmrWLytTY0rSDQkWrB5hvSP+MU1
q3/BPNOHhBwfInYWc8P7IT2NSXZPnSPADZqR172EH6S8qeNBxl4Qrje9ps0xdsfG
gQhvMl0v9aChGB03scEoLemx+b5l0cJ/J5wBbPk58Ta/A8af2yEdZpp1PQ+KO7Zp
/O0eJ8uV1SO+B3voDMfsUgN4l1J6AcxQpXTa0put8L/OoNufBZmjsWOx3b3yH+0V
HIkvc61yurjBr/zGyxgz0blZ6P+69CzQo4aUiz502yFAAqk///gMsdlCcxKuSBiv
grRAqEGYfTCMjQ97nRvIpqQU2LIwSezgbKnVPPCqRhMZiCyBugoD4AlOddCdE9so
1/AYmpbZLd2H+AmRgcWToTbnFJNSQC87BqA1yjpUGSUnBM6jZco=
=GtEX
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 11 Jul 2018 13:15
(name . Oleg Pykhalov)(address . go.wigust@gmail.com)(address . 32075@debbugs.gnu.org)
87a7qym3aq.fsf@gnu.org
Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> skribis:

Toggle quote (3 lines)
> libvirtError: End of file while reading data: nc: invalid option -- 'U'
> Try `nc --help' for more information.: Input/output error

There are several implementation of Netcat, and presumably libvirt
expects a different one.

Could you check which implementation you have on other distros?

TIA,
Ludo’.
L
L
Leo Famulari wrote on 11 Jul 2018 18:10
(name . Ludovic Courtès)(address . ludo@gnu.org)
20180711161006.GA23892@jasmine.lan
On Wed, Jul 11, 2018 at 01:15:25PM +0200, Ludovic Courtès wrote:
Toggle quote (12 lines)
> Hi Oleg,
>
> Oleg Pykhalov <go.wigust@gmail.com> skribis:
>
> > libvirtError: End of file while reading data: nc: invalid option -- 'U'
> > Try `nc --help' for more information.: Input/output error
>
> There are several implementation of Netcat, and presumably libvirt
> expects a different one.
>
> Could you check which implementation you have on other distros?

Besides the 'netcat' package, there are netcat implementations that
offer the '-U' option provided by the nmap and LibreSSL packages.
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAltGK9oACgkQJkb6MLrK
fwgyeQ/+On/sbUP9miM2BKGiGqvpENzajZDHAeAzjlllS0GbwUwY+eCRJzO0Mqvt
MmUcg+qL3i2KooRlR/Ll51oMofkZW5tKoC7+rqUp1H/1at/nQKsgwxjMw39Iqv9T
9IEhhW6gz5goYsNzi5vGHkJybHrqN5FuoLluzLnv/ngj8A5Ka7qR8IXokjg+PERp
BYNtTTSz1o1zFSi0XVS6Vz5TpPHBozMAGBv8zldcLnukdsvuTwaYZE73nNqtRsfm
LUCjYMsWS6DCBca9gd6gn5U0pk7S8CVDUSkKEqkdPdOelyUl3Fthiiax0kPLpRrE
4o//9RGAY68dABDoQJTV0W4OgViey0iNk3RoeDzrbtM8JNThG+z4qPjeYkmF6Ave
c7Vs5RZvjssHN7DGCq6bowkYLyxi4yCfm4zDTbSCayg71aDrsSr6xYN/lhMic8mi
rVTc5yZ44gREnbXmcC3PwT6U1kaiKh2/hyf2PHMEDLtnRm3yDtlH90PckFhfxVyQ
Z2ZWIw/PTwg7GlyrS2NHlK7eyFbL7azSD5K8/GPsZ3jQ6HOflAh8AG9C67qc0jmh
1V0NVKMRjnB9LN5XFMJVxDh/YS8BBU8KfKpA094sOIlJ5FCvTKoFFo57R+0uTHH8
dEqD566CihzJ5WYHHLminLs8IjDNoZTQE5Bvdpd2kuNFvJUt0UU=
=TsIi
-----END PGP SIGNATURE-----


M
M
Maxim Cournoyer wrote on 30 Dec 2023 05:16
(name . Oleg Pykhalov)(address . go.wigust@gmail.com)
87y1dcqq86.fsf@gmail.com
Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> writes:

Toggle quote (24 lines)
> Hello Guix,
>
> I try to use virt-manager for connection over SSH from Linux Mint to
> GuixSD running libvirt.
>
> Seems we need to package netcat which includes ‘-U’ option:
> --8<---------------cut here---------------start------------->8--- Unable
> Unable to connect to libvirt qemu+ssh://natsu@secret.foo/system.
>
> The remote host requires a version of netcat/nc which supports the -U option.
>
> Libvirt URI is: qemu+ssh://natsu@secret.foo/system
>
> Traceback (most recent call last):
> File "/gnu/store/pakiz00asgm6cq5l4xwbwzksd0z576iq-virt-manager-1.5.1/share/virt-manager/virtManager/connection.py", line 1036, in _do_open
> self._backend.open(self._do_creds_password)
> File "/gnu/store/pakiz00asgm6cq5l4xwbwzksd0z576iq-virt-manager-1.5.1/share/virt-manager/virtinst/connection.py", line 144, in open
> open_flags)
> File "/gnu/store/xdyrp8fbcgk2cnyck4yda2wl1vql1m82-python2-libvirt-4.1.0/lib/python2.7/site-packages/libvirt.py", line 105, in openAuth
> if ret is None:raise libvirtError('virConnectOpenAuth() failed')
> libvirtError: End of file while reading data: nc: invalid option -- 'U'
> Try `nc --help' for more information.: Input/output error
> --8<---------------cut here---------------end--------------->8---

I'm missing reproduction steps; is this still a problem with our current
libvirt and virt-manager packages?

--
Thanks,
Maxim
?