Comment 7 for bug 989452

Revision history for this message
Andreas Ntaflos (daff) wrote :

There are currently multiple bugs that deal with virt-manager/virt-viewer not being able to connect to a VNC console of a Libvirt/KVM domain, such as #837275, #995320 and this one.

The problem remains, however. On a Precise server (12.04.1) where /etc/libvirt/qemu.conf has set

vnc_listen = "0.0.0.0"
vnc_tls = 0

no VNC connection is possible with neither virt-manager, nor virt-viewer from a remote client. Virt-manager just displays the dreaded "Error: viewer connection to hypervisor host got refused or disconnected!" and virt-viewer says "Unable to connect to the graphic server 0:5916" when called like this:

virt-viewer -c qemu+tcp://kvmhost04/system domain01.example.com

Libvirt is configured to allow unencrypted TCP connections (because of bug #1001798) so regular virt-manager interaction works, just not the VNC console.

This must be a virt-manager, Libvirt or QEMU issue, because using a VNC viewer like xtightvncviewer to connect to the domain's VNC port works fine:

xtightvncviewer kvmhost04:5916

So what can we do? I see no interesting log entries anywhere that would begin to explain what is going on here.