remotely executed netcat (nc) uses -q option which is not universally supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt |
Fix Released
|
Medium
|
|||
libvirt (CentOS) |
New
|
Unknown
|
|||
libvirt (Fedora) |
Invalid
|
Medium
|
|||
libvirt (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
virt-manager (Fedora) |
Fix Released
|
Medium
|
Bug Description
I Can't connect to none-debian based distros with remote tunel over SSH (qemu+ssh) - virsh / virt-manager.
LIBVIRT_DEBUG=1 virsh -c qemu+ssh://<email address hidden>/system:
...
debug : virExecWithHook:620 : ssh -l root xxx.xxx.xxx.xxx nc -q 0 -U /var/run/
...
As you can see nc is executed with -q option. This option isn't universally supported (at least in CentOS, Fedora, RedHat, OpenSuse), it's debian patch.
My system is (K)Ubuntu 10.04 Lucid:
libvirt - 0.7.5-5ubuntu5
netcat-openbsd - 1.89-3ubuntu1
virt-manager - 0.8.2-2ubuntu1
Patches which cause this problem:
libvirt : 0006-Terminate-
virt-manager : 0003-Make-
Solutions:
Disable these patches until the nc patch "quit-timer.patch" will be accepted by upstream or distributed into other main distributions.
Related branches
Changed in libvirt (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: karmic lucid |
tags: | added: regression-potential |
Changed in libvirt (CentOS): | |
status: | Unknown → New |
Changed in virt-manager (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Changed in libvirt (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Invalid |
Changed in libvirt: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
virsh;
$ virsh -c qemu+ssh://<email address hidden>/system
error: server closed connection
error: failed to connect to the hypervisor
virt-manager: virt-manager/ virtManager/ connection. py", line 896, in _try_open python2. 6/dist- packages/ libvirt. py", line 111, in openAuth 'virConnectOpen Auth() failed')
Unable to open connection to hypervisor URI 'qemu+ssh://<email address hidden>/system':
server closed connection
Traceback (most recent call last):
File "/usr/share/
None], flags)
File "/usr/lib/
if ret is None:raise libvirtError(
libvirtError: server closed connection
Maybe you need to install ssh-askpass in order to authenticate.