[Pkg-libvirt-maintainers] Bug#519979: killing nc on the remote side

Mario Witt mario at synquad.nl
Sun Mar 29 15:34:53 UTC 2009


Hi,

after opening the remote console to the VM and doing a "ps aux" on the  
host you'll see something like this:

root     12022  0.4  0.0  63860  3016 ?        Ss   17:18   0:00 sshd:  
root at notty
root     12027  0.0  0.0  11436   780 ?        Ss   17:18   0:00 nc  
127.0.0.1 5900

Now, when after closing the console window virt-manager freezes, kill  
the nc process manually and all will be well again.

I think this is the relevant part in virt-manager's source (details.py):

     def close_tunnel(self):
         if self.vncTunnel is None:
             return

         logging.debug("Shutting down tunnel PID %d FD %d" %  
(self.vncTunnel[1], self.vncTunnel[0].fileno()))
         self.vncTunnel[0].close()
         os.waitpid(self.vncTunnel[1], 0)
         self.vncTunnel = None

I'm not a coder myself so I don't know how to fix this. I just hope  
this might help someone.

Mario Witt






More information about the Pkg-libvirt-maintainers mailing list