Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2012 14:07:13 +0200
From:      Maurizio Vairani <maurizio.vairani@cloverinformatica.it>
To:        freebsd-virtualization@freebsd.org
Subject:   [PATCH] virtualbox-ose - VBoxHeadless TCPv6 port value
Message-ID:  <4FB4E9F1.3010001@cloverinformatica.it>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070901000201090805040904
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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



--------------070901000201090805040904
Content-Type: text/plain;
	name="patch-src-VBox-Frontends-VBoxHeadless-FramebufferVNC.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename*0="patch-src-VBox-Frontends-VBoxHeadless-FramebufferVNC.cpp"

--- 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)


--------------070901000201090805040904--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FB4E9F1.3010001>