Add IPv6 support for VNC in VMs
There is no IPv6 support for VNC, only IPv4 works.
Steps to reproduce:
(IPv4 Address of the FreeNAS server):5901 - Works in TigerVNC and in Remote Desktop Viewer
(IPv6 Address of the FreeNAS server):5901 - Does not work in TigerVNC and in Remote Desktop Viewer
IPv6 is configured on my server and I can access the server configuration GUI from the IPv6 address and I can also ping the server with ping6
- Screenshot of working GUI open in the browser
- Screenshot of working IPv4 connection to VNC in TigerVNC
- Screenshot of not working IPv6 connection error to VNC in TigerVNC
PING 2a00:ADDRESS HIDDEN:27e4(2a00:ADDRESS HIDDEN:27e4) 56 data bytes
64 bytes from 2a00:ADDRESS HIDDEN:27e4: icmp_seq=1 ttl=64 time=0.177 ms
64 bytes from 2a00:ADDRESS HIDDEN:27e4: icmp_seq=2 ttl=64 time=0.164 ms
64 bytes from 2a00:ADDRESS HIDDEN:27e4: icmp_seq=3 ttl=64 time=0.136 ms
64 bytes from 2a00:ADDRESS HIDDEN:27e4: icmp_seq=4 ttl=64 time=0.169 ms
--- 2a00:ADDRESS HIDDEN:27e4 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3106ms
rtt min/avg/max/mdev = 0.136/0.161/0.177/0.020 ms
#3 Updated by Marcelo Araujo about 1 year ago
- Status changed from Unscreened to Screened
- Target version set to 11.2-BETA1
Dru Lavigne wrote:
Marcelo: I thought this feature is coming in 11.1 but could not find the ticket. PLease close as duplicate with the ticket # if there already is one.
Unfortunately bhyve RFB implementation doesn't support IPv6, however the new libhyve-remote supports IPv6 by default.
I'm working trying to integrate libhyve-remote first on FreeBSD upstream, in case I can't make it ready on FreeBSD for FreeNAS 11.2-RELEASE, I have a plan B to have it on FreeNAS targeting 11.2-RELEASE.
I came across this bug recently when searching to see if anyone other than myself was in need of IPv6 support for bhyve vnc consoles or had implemented it elsewhere. I've been running a patched version of bhyve for some time that implements this feature and recently submitted a patch on the FreeBSD bug tracker. The patch hasn't been committed yet presumably because of the 12-RELEASE activities going on, but hopefully it will land in FreeBSD soon and IPv6 VNC console support will not need to be implemented on you project using a wrapper lib.