<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>virt-manager / QEMU problem connecting to graphical console</title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Arial';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-size: 8pt;
 font-style: italic;
 color: #c0c0c0;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Hi,</p>
<p><br></p>
<p>I have a weird and fatal problem with my virt-manager.</p>
<p><br></p>
<p>Whenever I connect to one of my currently running Linux VMs on my (remote) QEMU machine, virt-manager hangs at "connecting to graphical console for guest"</p>
<p>If I connect to a machine which has just started up, all works just fine. If I close the connection to that machine and then reconnect, all works fine.</p>
<p>But as soon as I quit virt-manager, restart virt-manager, and reconnect to the host, it gives me this problem. Rebooting and then starting virt-manager again also does not solve the issue.</p>
<p><br></p>
<p>When I click "Open" on a VM, it DOES asks me for the SSH password (using SSH+VNC tunnel), accepts it and then just hangs.</p>
<p>When I then close the window to this VM, virt-manager crashes and I have to force quit it.</p>
<p>All my Linux VMs are Debian Lenny (stable), running in standard text mode (what is it, 80x25?).</p>
<p><br></p>
<p>Now the weird part: I also have a Windows VM on this machine, and this one NEVER fails to connect!!</p>
<p>I can connect, reconnect, quit virt-manager, open it again, and it still works! This really baffles me.</p>
<p><br></p>
<p><br></p>
<p>Help would be appreciated solving this issue, because as it is I can not take over my Linux VMs while they're running, and that's kind of the whole point ...</p>
<p><br></p>
<p><br></p>
<p>some technichal information:</p>
<p><br></p>
<p>Tried this with virt-manager version 0.5 up to version 0.8.2 under Ubuntu (latest release) AND under Fedora Core 12.</p>
<p>Could reproduce this every single time.</p>
<p><br></p>
<p>hypervisor:</p>
<p>Debian (Lenny volatile), kernel 2.6.26-2-amd64</p>
<p>qemu 0.9.1-10lenny1</p>
<p>kvm: 72+dfsg-5~lenny3</p>
<p>libvirt-bin: 0.4.6-10</p>
<p><br></p>
<p>client XML configuration file Linux VM:</p>
<p><br></p>
<p><domain type='kvm'></p>
<p>  <name>debiandns</name></p>
<p>  <uuid>b65cf811-94f4-a8b0-3d7b-9b31bdb46c41</uuid></p>
<p>  <memory>524288</memory></p>
<p>  <currentMemory>524288</currentMemory></p>
<p>  <vcpu>1</vcpu></p>
<p>  <os></p>
<p>    <type arch='x86_64' machine='pc'>hvm</type></p>
<p>    <boot dev='hd'/></p>
<p>  </os></p>
<p>  <features></p>
<p>    <acpi/></p>
<p>    <apic/></p>
<p>    <pae/></p>
<p>  </features></p>
<p>  <clock offset='utc'/></p>
<p>  <on_poweroff>destroy</on_poweroff></p>
<p>  <on_reboot>restart</on_reboot></p>
<p>  <on_crash>restart</on_crash></p>
<p>  <devices></p>
<p>    <emulator>/usr/bin/kvm</emulator></p>
<p>    <disk type='file' device='cdrom'></p>
<p>      <target dev='hdc' bus='ide'/></p>
<p>      <readonly/></p>
<p>    </disk></p>
<p>    <disk type='file' device='disk'></p>
<p>      <source file='/srv/linux/debiandns.qcow2'/></p>
<p>      <target dev='vda' bus='virtio'/></p>
<p>    </disk></p>
<p>    <interface type='bridge'></p>
<p>      <mac address='54:52:00:54:b7:f0'/></p>
<p>      <source bridge='br0'/></p>
<p>      <model type='virtio'/></p>
<p>    </interface></p>
<p>    <serial type='pty'></p>
<p>      <source path='/dev/pts/2'/></p>
<p>      <target port='0'/></p>
<p>    </serial></p>
<p>    <console type='pty' tty='/dev/pts/2'></p>
<p>      <source path='/dev/pts/2'/></p>
<p>      <target port='0'/></p>
<p>    </console></p>
<p>    <input type='mouse' bus='ps2'/></p>
<p>    <graphics type='vnc' port='-1' autoport='yes'/></p>
<p>  </devices></p>
<p></domain></p>
<p><br></p>
<p>client XML configuration file Windows VM:</p>
<p><br></p>
<p><domain type='kvm'></p>
<p>  <name>win2k3webr2</name></p>
<p>  <uuid>7b125552-1105-5697-13a0-f01f755bd4ac</uuid></p>
<p>  <memory>1048576</memory></p>
<p>  <currentMemory>1048576</currentMemory></p>
<p>  <vcpu>2</vcpu></p>
<p>  <os></p>
<p>    <type arch='x86_64' machine='pc'>hvm</type></p>
<p>    <boot dev='hd'/></p>
<p>  </os></p>
<p>  <features></p>
<p>    <acpi/></p>
<p>    <apic/></p>
<p>    <pae/></p>
<p>  </features></p>
<p>  <clock offset='localtime'/></p>
<p>  <on_poweroff>destroy</on_poweroff></p>
<p>  <on_reboot>restart</on_reboot></p>
<p>  <on_crash>restart</on_crash></p>
<p>  <devices></p>
<p>    <emulator>/usr/bin/kvm</emulator></p>
<p>    <disk type='file' device='disk'></p>
<p>      <source file='/srv/windows/win2k3web.qcow2'/></p>
<p>      <target dev='hda' bus='ide'/></p>
<p>    </disk></p>
<p>    <disk type='block' device='cdrom'></p>
<p>      <source dev='/dev/cdrom'/></p>
<p>      <target dev='hdc' bus='ide'/></p>
<p>      <readonly/></p>
<p>    </disk></p>
<p>    <interface type='bridge'></p>
<p>      <mac address='54:52:00:43:79:76'/></p>
<p>      <source bridge='br0'/></p>
<p>    </interface></p>
<p>    <serial type='pty'></p>
<p>      <target port='0'/></p>
<p>    </serial></p>
<p>    <console type='pty'></p>
<p>      <target port='0'/></p>
<p>    </console></p>
<p>    <input type='tablet' bus='usb'/></p>
<p>    <input type='mouse' bus='ps2'/></p>
<p>    <graphics type='vnc' port='-1' autoport='yes'/></p>
<p>  </devices></p>
<p></domain></p>
<p><br></p>
<p><span class=rvts6>-- </span></p>
<p><span class=rvts6>Andy</span></p>

</body></html>