[virt-tools-list] [PATCH 1/1] vmmConsolePages: cleanup: close tunnels
Serge Hallyn
serge.hallyn at canonical.com
Wed Dec 14 19:38:29 UTC 2011
Connect to a remote host with virt-manager (qemu+ssh://localhost/system
will suffice). Open a vnc connection to a VM. Close it, and re-open
it. Re-open will hang. Tested both on fedora 16 and ubuntu.
The ssh tunnels do not appear to be re-usable. So close the tunnels
when the viewer is closed.
With this patch, re-opening vnc viewers works like a charm.
Signed-off-by: Serge Hallyn <serge.hallyn at canonical.com>
---
src/virtManager/console.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/virtManager/console.py b/src/virtManager/console.py
index 559bb31..f96718e 100644
--- a/src/virtManager/console.py
+++ b/src/virtManager/console.py
@@ -853,6 +853,9 @@ class vmmConsolePages(vmmGObjectUI):
v.cleanup()
self.viewer_connected = False
self.leave_fullscreen()
+ if self.tunnels is not None:
+ self.tunnels.close_all()
+ self.tunnels = None
def update_widget_states(self, vm, status_ignore):
runable = vm.is_runable()
--
1.7.5.4
More information about the virt-tools-list
mailing list