Red Hat Bugzilla – Bug 974126
virt-manager can't connect to VNC listening on IPv6 address [::]
Last modified: 2014-01-29 11:05:26 EST
Description of problem:
virt-manager fails to connect to a qemu-kvm guest's VNC display if the listen address is set to [::]. virt-viewer does connect. virt-manager does connect successfully if the address is 0.0.0.0.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start libvirtd with vnc_listen="::" in /etc/libvirt/qemu.conf.
2. Connect virt-manager to qemu+tcp://hostname/system and create a guest with a VNC display.
3. Try to open the guest's display from virt-manager.
virt-manager fails to show the guest's display, instead producing the error message "viewer connection to hypervisor host got refused or disconnected"
virt-manager should show the guest's VNC display.
/usr/share/virt-manager/virtManager/console.py defines the function get_conn_host(). Within that function is a condition:
if self.gaddr != "0.0.0.0":
Changing the line to the following allows virt-manager to connect properly:
if self.gaddr != "0.0.0.0" and self.gaddr != "::":
The same python script contains the hardcoded 127.0.0.1 address in various places. I have not tested but they may also cause trouble with the IPv6 loopback address [::1]. I have also not tested configuring the VNC server to bind to a specific IPv6 address.
Thanks for the report, fixed upstream now