Virtual Machine Manager unable to view GUI console

Bug #903307 reported by James Crow
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Fix Released
Medium
Unassigned
Oneiric
Won't Fix
Medium
Unassigned
Precise
Fix Released
Medium
Unassigned

Bug Description

I have a Dell R410 server with 11.10 amd64 (upgraded from 11.04) running KVM. I connect to the server with the graphical Virtual Machine Manager from my desktop running 11.10. I am able to connect to the console for each guest once. If I close the connection and then try to reopen, the message "Connecting to graphical console for guest" stays displayed in place of the console. If I restart libvirt-bin on the server, I can then view the console once. After each time I access the GUI console I must restart libvirt-bin to view it again.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libvirt-bin 0.9.2-4ubuntu15.1
ProcVersionSignature: Ubuntu 3.0.0-13.22-server 3.0.6
Uname: Linux 3.0.0-13-server x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Mon Dec 12 12:46:01 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_US.UTF-8
SourcePackage: libvirt
UpgradeStatus: Upgraded to oneiric on 2011-12-08 (4 days ago)

Revision history for this message
James Crow (crow-jamesm) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to report this bug.

I can reproduce this, somewhat, using remote connections. Can you verify that this happens to you connecting remotely, that is libvirt is not on the same host as virt-manager?

However, restarting libvirt on the server is not necessary (for me) - I can simply close and restart virt-manager on the client. Can you also confirm (or deny) that?

Changed in libvirt (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
James Crow (crow-jamesm) wrote :

virt-manager is on a separate host from libvirt. The server that is running libvirt does not have X or really anything beyond what is required for KVM.

I am also able to get virt-manager to reconnect if I close virt-manager. virt-manager was connecting to two KVM installations (one local, one remote) with the remote one being the only one with any running guests. I deleted the local connection and can now exit/restart virt-manager to regain access to my GUI console.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks, James. I can't tell yet whether this is a bug in libvirt or in virt-manager itself, but I can reproduce it with libvirt on precise as well.

Changed in libvirt (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Found it. vmmConsolePages.close_viewer() needs to do the following to close tunnels:

        if self.tunnels is not None:
            self.tunnels.close_all()
            self.tunnels = None

with that change, I am able to reconnect. Apparently the ssh tunnels cannot be reused.

affects: libvirt (Ubuntu) → virt-manager (Ubuntu)
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

With this debdiff applied, I can reconnect to remote vnc sessions.

tags: added: patch
Changed in virt-manager (Ubuntu Oneiric):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virt-manager - 0.9.0-1ubuntu4

---------------
virt-manager (0.9.0-1ubuntu4) precise; urgency=low

  * Force ssh tunnels to close when closing a Viewer window, so that
    reconnections will work. (LP: #903307)
 -- Serge Hallyn <email address hidden> Wed, 14 Dec 2011 12:29:44 -0600

Changed in virt-manager (Ubuntu Precise):
status: Confirmed → Fix Released
Vibhav Pant (vibhavp)
Changed in virt-manager (Ubuntu Oneiric):
assignee: nobody → Vibhav Pant (vibhavp)
Changed in virt-manager (Ubuntu Oneiric):
assignee: Vibhav Pant (vibhavp) → nobody
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in virt-manager (Ubuntu Oneiric):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.