Dear list members,
the latest libvncserver has IPv6 enabled by default. VirtualBox uses this library for VNC headless connection without specify the tcp6 port value. Running two or more virtual machines, all are trying to use the same tpc6 port 5900, the default value. Connecting with a VNC viewer to a virtual machine, different from the first started, it crashes with a core dump, probably due a bug in the FreeBSD libvncserver implementation. This simple patch set the tcp6 port value to the same value as tcp4 port avoiding the crash.


Regards,
Maurizio


--- src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp.orig     2012-04-26 
18:58:42.000000000 +0200
+++ src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp  2012-05-16 
15:32:46.651165568 +0200
@@ -89,7 +89,7 @@
     vncServer = rfbGetScreen(0, NULL, mWidth, mHeight, 8, 3, 1);
     vncServer->screenData = (void*)this;
     if (mVncPort)
-        vncServer->port = mVncPort;
+        vncServer->port = vncServer->ipv6port = mVncPort;
     char *pszDesktopName;
     rc = RTStrAPrintf(&pszDesktopName, "%s - VirtualBox", pszName);
     if (rc >= 0)

_______________________________________________
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to