Bug 562176

Summary: Impossible libvirt remote administration via qemu+ssh
Product: Red Hat Enterprise Linux 5 Reporter: Ziegler Karel <ziegleka>
Component: ncAssignee: Petr Šabata <psabata>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4CC: ohudlick, rmitchel, rvokal, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 726174 (view as bug list) Environment:
Last Closed: 2011-08-25 13:01:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
nc -q option patch
none
autodetect nc params none

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.