[PATCH 1/1] vmmConsolePages: cleanup: close tunnels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 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


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux