From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 14 19:50:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C1071065670 for ; Mon, 14 May 2012 19:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 454FE8FC0A for ; Mon, 14 May 2012 19:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4EJo2vT048403 for ; Mon, 14 May 2012 19:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4EJo2Dw048402; Mon, 14 May 2012 19:50:02 GMT (envelope-from gnats) Resent-Date: Mon, 14 May 2012 19:50:02 GMT Resent-Message-Id: <201205141950.q4EJo2Dw048402@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gary Palmer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 731DD106566B for ; Mon, 14 May 2012 19:47:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8058FC08 for ; Mon, 14 May 2012 19:47:22 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4EJlM6W059932 for ; Mon, 14 May 2012 19:47:22 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q4EJlMEg059931; Mon, 14 May 2012 19:47:22 GMT (envelope-from nobody) Message-Id: <201205141947.q4EJlMEg059931@red.freebsd.org> Date: Mon, 14 May 2012 19:47:22 GMT From: Gary Palmer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/167891: emulators/virtualbox-ose: bus error with more than one headless VM X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 19:50:02 -0000 >Number: 167891 >Category: ports >Synopsis: emulators/virtualbox-ose: bus error with more than one headless VM >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 14 19:50:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Gary Palmer >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD xxx 9.0-RELEASE FreeBSD 9.0-RELEASE #5: Tue May 1 00:40:42 BST 2012 root@xxx:/usr/obj/usr/src/sys/MICRO amd64 >Description: If the default VNC port is already used when you start a second VM with VBoxHeadless -n -m then when you connect with a VNC client the VBoxHeadless bus errors. There was a warning about the IPv6 port already being in use. Patching virualbox to set the TCP port number for IPv4 and IPv6 appears to have resolved the issue >How-To-Repeat: have something listening on TCP 5900 on IPv6 start a VM via VBoxHeadless -n -m 5901 connect vncviewer to port 5901 >Fix: see attached patch libvncserver has an autoprobe mode which should detect the first free VNC server port. it may be worth turning that feature on if -m isn't specified. Patch attached with submission follows: --- src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp.orig 2012-05-12 19:50:26.807639833 +0100 +++ src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp 2012-05-12 19:50:38.568636058 +0100 @@ -89,7 +89,10 @@ vncServer = rfbGetScreen(0, NULL, mWidth, mHeight, 8, 3, 1); vncServer->screenData = (void*)this; if (mVncPort) + { vncServer->port = mVncPort; + vncServer->ipv6port = mVncPort; + } char *pszDesktopName; rc = RTStrAPrintf(&pszDesktopName, "%s - VirtualBox", pszName); if (rc >= 0) >Release-Note: >Audit-Trail: >Unformatted: