From owner-freebsd-virtualization@FreeBSD.ORG Thu May 17 12:07:18 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AADC81065677 for ; Thu, 17 May 2012 12:07:18 +0000 (UTC) (envelope-from maurizio.vairani@cloverinformatica.it) Received: from smtplq04.aruba.it (smtplq-out12.aruba.it [62.149.158.32]) by mx1.freebsd.org (Postfix) with SMTP id 0A4B98FC0C for ; Thu, 17 May 2012 12:07:17 +0000 (UTC) Received: (qmail 28571 invoked by uid 89); 17 May 2012 12:07:14 -0000 Received: from unknown (HELO smtp4.aruba.it) (62.149.158.224) by smtplq04.aruba.it with SMTP; 17 May 2012 12:07:14 -0000 Received: (qmail 9560 invoked by uid 89); 17 May 2012 12:07:14 -0000 Received: from unknown (HELO clover.dyndns.biz) (info@cloverinformatica.it@151.55.85.84) by smtp4.ad.aruba.it with SMTP; 17 May 2012 12:07:14 -0000 Received: from [192.168.0.185] ([192.168.0.185]) by clover.dyndns.biz ; Thu, 17 May 2012 14:07:13 +0200 Message-ID: <4FB4E9F1.3010001@cloverinformatica.it> Date: Thu, 17 May 2012 14:07:13 +0200 From: Maurizio Vairani User-Agent: Mozilla/5.0 (Windows NT 4.0; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Content-Type: multipart/mixed; boundary="------------070901000201090805040904" X-Spam-Rating: smtp4.ad.aruba.it 1.6.2 0/1000/N X-Spam-Rating: smtplq04.aruba.it 1.6.2 0/1000/N Subject: [PATCH] virtualbox-ose - VBoxHeadless TCPv6 port value X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 12:07:18 -0000 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--