Red Hat Bugzilla – Bug 460358
Unable to connect to remote guest through an ssh tunnel over an existing ssh tunnel
Last modified: 2016-09-19 22:38:59 EDT
Created attachment 315130 [details]
Description of problem:
I want to connect to a kvm guest through an ssh tunnel running on a machine that I have an existing ssh tunnel to (e.g. localhost:8001). The F-9 virt-manager allows me to connect to this remote machine and view the guests, but will not let me open any of their displays via VNC.
Attached is a patch that seems to resolve this issue.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an ssh tunnel to a remote machine (ssh -L 8001:foo.com:22 bar.com)
2. Use virt-manager to open a 'Remote tunnel over SSH' connection to 'localhost:8001'
3. Try and open the display for a guest
"TCP/IP error: VNC connection to hypervisor host got refused or disconnected!"
VNC display of remote guest should appear.
Created attachment 315132 [details]
I also should note that I have only tested this patch with the specified tunnel-through-tunnel scenario -- not any of the average use cases.
Thanks for the patch! Semi-unfortunately though I think this is fixed upstream:
If you want to test the current upstream, repo is:
For now I'll move this to POST.
So it looks like virt-manager-0.6.0-3.fc10.x86_64 has this capability now, but seems to be so slow that it causes the main window to even grind to a halt as well. When connecting to my office machine over an ssh tunnel, with no other local VMs running, the virt-viewer has a 5-10 second lag to even open it's top menu. Bandwidth latency could be part of the problem, but I still experienced this lag even when in the office.
(In reply to comment #0)
> 1. Create an ssh tunnel to a remote machine (ssh -L 8001:foo.com:22 bar.com)
> 2. Use virt-manager to open a 'Remote tunnel over SSH' connection to
In /etc/ssh/ssh_config or ~/.ssh/config put:
ProxyCommand ssh bar.com nc %h %p
Then "ssh foo.com nc -U /var/run/libvirt/libvirt-sock" and "ssh foo.com nc 127.0.0.1 59xx" should just work.
virt-manager-0.6.0-0.fc9 has been submitted as an update for Fedora 9.
virt-manager-0.6.0-1.fc9 has been submitted as an update for Fedora 9.
Argh, sorry, forgot that there were more comments in this bug.
Luke, I guess if you think this is a virt-manager related issue, please file a separate bug.
virt-manager-0.6.0-1.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing-newkey update virt-manager'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-10705
virt-manager-0.6.0-1.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.