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

[virt-tools-list] virt-manager / QEMU problem connecting to graphical console



Title: virt-manager / QEMU problem connecting to graphical console

Hi,


I have a weird and fatal problem with my virt-manager.


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"

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.

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.


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.

When I then close the window to this VM, virt-manager crashes and I have to force quit it.

All my Linux VMs are Debian Lenny (stable), running in standard text mode (what is it, 80x25?).


Now the weird part: I also have a Windows VM on this machine, and this one NEVER fails to connect!!

I can connect, reconnect, quit virt-manager, open it again, and it still works! This really baffles me.



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 ...



some technichal information:


Tried this with virt-manager version 0.5 up to version 0.8.2 under Ubuntu (latest release) AND under Fedora Core 12.

Could reproduce this every single time.


hypervisor:

Debian (Lenny volatile), kernel 2.6.26-2-amd64

qemu 0.9.1-10lenny1

kvm: 72+dfsg-5~lenny3

libvirt-bin: 0.4.6-10


client XML configuration file Linux VM:


<domain type='kvm'>

  <name>debiandns</name>

  <uuid>b65cf811-94f4-a8b0-3d7b-9b31bdb46c41</uuid>

  <memory>524288</memory>

  <currentMemory>524288</currentMemory>

  <vcpu>1</vcpu>

  <os>

    <type arch='x86_64' machine='pc'>hvm</type>

    <boot dev='hd'/>

  </os>

  <features>

    <acpi/>

    <apic/>

    <pae/>

  </features>

  <clock offset='utc'/>

  <on_poweroff>destroy</on_poweroff>

  <on_reboot>restart</on_reboot>

  <on_crash>restart</on_crash>

  <devices>

    <emulator>/usr/bin/kvm</emulator>

    <disk type='file' device='cdrom'>

      <target dev='hdc' bus='ide'/>

      <readonly/>

    </disk>

    <disk type='file' device='disk'>

      <source file='/srv/linux/debiandns.qcow2'/>

      <target dev='vda' bus='virtio'/>

    </disk>

    <interface type='bridge'>

      <mac address='54:52:00:54:b7:f0'/>

      <source bridge='br0'/>

      <model type='virtio'/>

    </interface>

    <serial type='pty'>

      <source path='/dev/pts/2'/>

      <target port='0'/>

    </serial>

    <console type='pty' tty='/dev/pts/2'>

      <source path='/dev/pts/2'/>

      <target port='0'/>

    </console>

    <input type='mouse' bus='ps2'/>

    <graphics type='vnc' port='-1' autoport='yes'/>

  </devices>

</domain>


client XML configuration file Windows VM:


<domain type='kvm'>

  <name>win2k3webr2</name>

  <uuid>7b125552-1105-5697-13a0-f01f755bd4ac</uuid>

  <memory>1048576</memory>

  <currentMemory>1048576</currentMemory>

  <vcpu>2</vcpu>

  <os>

    <type arch='x86_64' machine='pc'>hvm</type>

    <boot dev='hd'/>

  </os>

  <features>

    <acpi/>

    <apic/>

    <pae/>

  </features>

  <clock offset='localtime'/>

  <on_poweroff>destroy</on_poweroff>

  <on_reboot>restart</on_reboot>

  <on_crash>restart</on_crash>

  <devices>

    <emulator>/usr/bin/kvm</emulator>

    <disk type='file' device='disk'>

      <source file='/srv/windows/win2k3web.qcow2'/>

      <target dev='hda' bus='ide'/>

    </disk>

    <disk type='block' device='cdrom'>

      <source dev='/dev/cdrom'/>

      <target dev='hdc' bus='ide'/>

      <readonly/>

    </disk>

    <interface type='bridge'>

      <mac address='54:52:00:43:79:76'/>

      <source bridge='br0'/>

    </interface>

    <serial type='pty'>

      <target port='0'/>

    </serial>

    <console type='pty'>

      <target port='0'/>

    </console>

    <input type='tablet' bus='usb'/>

    <input type='mouse' bus='ps2'/>

    <graphics type='vnc' port='-1' autoport='yes'/>

  </devices>

</domain>


-- 

Andy


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