[PATCH] virtualbox-ose - VBoxHeadless TCPv6 port value
Maurizio Vairani
maurizio.vairani at cloverinformatica.it
Thu May 17 12:07:18 UTC 2012
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
-------------- next part --------------
--- 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)
More information about the freebsd-virtualization
mailing list