Bug 562176 - Impossible libvirt remote administration via qemu+ssh
Summary: Impossible libvirt remote administration via qemu+ssh
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nc
Version: 5.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Petr Šabata
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-05 14:36 UTC by Ziegler Karel
Modified: 2018-11-14 17:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 726174 (view as bug list)
Environment:
Last Closed: 2011-08-25 13:01:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
nc -q option patch (2.30 KB, patch)
2010-02-05 14:46 UTC, Ziegler Karel
no flags Details | Diff
autodetect nc params (2.82 KB, patch)
2010-03-13 14:57 UTC, Ziegler Karel
no flags Details | Diff

Description Ziegler Karel 2010-02-05 14:36:43 UTC
Description of problem:

From debian-based distributions (Ubuntu in my case) I can't connect to none-debian based distros with remote tunel over SSH (qemu+ssh) - virsh / virt-manager.
 
I attach patch from Ubuntu (Debian) which is applied on nc. This patch adds q option [quit after EOF on stdin and delay of secs (-1 to not quit)].


How reproducible:
Ubuntu 9.10 (10.04) as administrator desktop system.
RedHat as server system.


Steps to Reproduce:
1. From Ubuntu to RedHat (xxx.xxx.xxx.xxx)
$ virsh -c qemu+ssh://root.xxx.xxx/system

  
Actual results:
Can't connect to libvirt via virsh / virt-manager from Ubuntu.

Expected results:
Can connect to libvirt via virsh / virt-manager from Ubuntu.


Additional info:
I use Fedora and CentOS on my host machines (servers) and Ubuntu on my desktop.

Reported as bug:
for Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/517478
for CentOS: http://bugs.centos.org/view.php?id=4188

Comment 1 Jan Zeleny 2010-02-05 14:46:40 UTC
I'm setting proper flags for product management to consider inclusion in RHEL 5.6

Comment 2 Ziegler Karel 2010-02-05 14:46:47 UTC
Created attachment 389086 [details]
nc -q option patch

Comment 3 Ziegler Karel 2010-03-13 14:57:54 UTC
Created attachment 399858 [details]
autodetect nc params

This patch was written by Marc Deslauriers from Ubuntu and inspired by http://hg.fedorahosted.org/hg/virt-manager/rev/1f781890ea4a and I hope that Marc sent this patch to upstream.

Comment 9 Petr Šabata 2011-04-01 12:07:38 UTC
I don't really like the idea of adding more options not accepted upstream.
Moreover, EL5+ and Fedora netcats quit after SIGHUP so I don't really see a problem there.

If anything, libvirt shouldn't rely on such made-up option.

Could you elaborate on what's actually expected?

Comment 15 Petr Šabata 2011-08-25 13:01:31 UTC
Apparently Debian patched their client.

There's no need to add an exception to server for this; closing.


Note You need to log in before you can comment on or make changes to this bug.