| Summary: | Unable to connect to a display using ssh tunnelling | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Daniel Berrangé <berrange> |
| Component: | virt-viewer | Assignee: | Daniel Berrangé <berrange> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0 | CC: | acathrow, dallan, mjenner, mzhan, rwu, zpeng |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | virt-viewer-0.4.1-3.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-06 15:07:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Daniel Berrangé
2011-08-12 14:42:49 UTC
There was another issue, which hit if SSH is running on a non-standard port eg, If SSH is on port 9000 virt-viewer -c qemu+ssh://root@lettuce:9000/system rhel6x86_64 Should result in two ssh connections being opened ssh -p 9000 -l root lettuce nc -U /var/run/libvirt/libvirt-sock-ro ssh -p 9000 -l root lettuce nc localhost 5900 But we missed out the '-p 9000' part of the second connection. This is also fixed in this BZ this bug can reproduce with virt-viewer-0.4.1-1.el6
verify with virt-viewer-0.4.1-3.el6:
step:
for vnc:
default port:22
#virt-viewer -c qemu+ssh://root.4.218/system test-yp --debug
output:
.....
** (virt-viewer:1831): DEBUG: Guest (null) has a vnc display
** (virt-viewer:1831): DEBUG: Guest graphics address is localhost:5900
** (virt-viewer:1831): DEBUG: Set connect info: 10.66.4.218,localhost,5900,ssh,(null),root,0
** (virt-viewer:1831): DEBUG: Opening indirect TCP connection to display at localhost:5900
** (virt-viewer:1831): DEBUG: Setting up SSH tunnel via root.4.218
.....
the guest can open w/o error.
change ssh port to 9000
#virt--viewer -c qemu+ssh://root.6.166:9000/system XXdemo --debug
.....
** (virt-viewer:4118): DEBUG: Guest (null) has a vnc display
** (virt-viewer:4118): DEBUG: Guest graphics address is 0.0.0.0:5901
** (virt-viewer:4118): DEBUG: Set connect info: 10.66.6.166,0.0.0.0,5901,ssh,(null),root,9000
** (virt-viewer:4118): DEBUG: Opening indirect TCP connection to display at 0.0.0.0:5901
** (virt-viewer:4118): DEBUG: Setting up SSH tunnel via root.6.166:9000
.....
the guest can open w/o error.
test with spice:
default port:22
#virt-viewer -c qemu+ssh://root.6.166/system winxp --debug
.....
** (virt-viewer:5735): DEBUG: Guest (null) has a spice display
** (virt-viewer:5735): DEBUG: Guest graphics address is 0.0.0.0:5900
** (virt-viewer:5735): DEBUG: Set connect info: 10.66.6.166,0.0.0.0,5900,ssh,(null),root,0
** (virt-viewer:5735): DEBUG: Opening indirect TCP connection to display at 0.0.0.0:5900
** (virt-viewer:5735): DEBUG: Setting up SSH tunnel via root.6.166
.....
the guest can open w/o error.
ssh port:9000
#virt-viewer -c qemu+ssh://root.6.166:9000/system winxp --debug
.....
** (virt-viewer:4152): DEBUG: Guest (null) has a spice display
** (virt-viewer:4152): DEBUG: Guest graphics address is 0.0.0.0:5900
** (virt-viewer:4152): DEBUG: Set connect info: 10.66.6.166,0.0.0.0,5900,ssh,(null),root,9000
** (virt-viewer:4152): DEBUG: Opening indirect TCP connection to display at 0.0.0.0:5900
** (virt-viewer:4152): DEBUG: Setting up SSH tunnel via root.6.166:9000
.....
the guest can open w/o error.
Verification passed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2011-1614.html |