From owner-freebsd-ports@FreeBSD.ORG Mon Sep 8 13:22:48 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27859106566B for ; Mon, 8 Sep 2008 13:22:48 +0000 (UTC) (envelope-from Klaus.Espenlaub@Sun.COM) Received: from gmp-eb-inf-2.sun.com (unknown [192.18.6.24]) by mx1.freebsd.org (Postfix) with ESMTP id A48F98FC0A for ; Mon, 8 Sep 2008 13:22:47 +0000 (UTC) (envelope-from Klaus.Espenlaub@Sun.COM) Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m88DMi6g003922 for ; Mon, 8 Sep 2008 13:22:44 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K6V00B01O186C00@fe-emea-10.sun.com> (original mail from Klaus.Espenlaub@Sun.COM) for freebsd-ports@freebsd.org; Mon, 08 Sep 2008 14:22:44 +0100 (BST) Received: from [192.168.1.159] ([10.196.62.159]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K6V00J0QP5ONG50@fe-emea-10.sun.com> for freebsd-ports@freebsd.org; Mon, 08 Sep 2008 14:22:36 +0100 (BST) Date: Mon, 08 Sep 2008 15:22:32 +0200 From: Klaus Espenlaub Sender: Klaus.Espenlaub@Sun.COM To: freebsd-ports@freebsd.org Message-id: <48C52718.5080807@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-15 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) Subject: Re: VirtualBox looks for FreeBSD developer X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2008 13:22:48 -0000 [third attempt - the first two were blocked by the smart freebsd.org mailserver, which rejected the mail because it couldn't get the name for the sun mail server's IP address - which looks like a DNS misconfiguration on freesbd.org. Not nice when trying to send such messages as the following.] #include Some user on the #vbox irc channel brought this topic to my attention. So don't misinterpret my response here as declaring myself the best possible contact - I'm not. I'm not on the freebsd-ports list either. The issue with getting VirtualBox working on freebsd is mainly a manpower problem. Sorry to say that, but it's the root of why there has been no substantial progress from the Sun (and previously innotek). freebsd is yet another kernel for which the VirtualBox devs would have to figure out how to safely achieve a few things normal applications don't ever need. Like dealing with physical memory, getting along with the scheduler and stuff like that. It's also true that the written documentation in VirtualBox about this area leaves something to be desired - again a manpower problem. So the only chance I personally see is for getting the freebsd port over the initial big bump is that some kernel gurus from the freebsd community help out. If someone capable and willing to look into this contacts the VirtualBox team, he'll eventually find someone on #vbox-dev who has time to explain - if time permits. We do our best to be responsive, but bear with us that many things have higher priorities. Remember, the team is located in Europe. There's the vbox-dev mailing list if it's too hard to find a time where both parties are awake. Sorry to babble so much, but I hope that this puts off the unwanted audience - serious low-level stuff needs to be done before worrying about compilation issues on particular freebsd versions. Once the mentioned hurdle is taken, keeping it working will be much less work - and the VirtualBox team probably will do most of it. Klaus > On Sat, Mar 01, 2008 at 08:04:55AM +1100, Edwin Groothuis wrote: > > On Fri, Feb 29, 2008 at 09:48:45PM +0100, Olivier Cochard-Labbe wrote: > > > I can't compile VirtualBox with your patch (I'm using a FreeBSD 7.0Release). > > > > It works with 6.3, 7.0 has the ULE scheduler which doesn't have sched_lock. > > > > Rink@ has been trying to get it work on 7.0, but... > > " Mavvie: haven't gotten it to link yet :-/" > > > > It works on 6.3, until you try to start the VM: > > > > With VBOX_SUPLIB_FAKE=fake set you get: > > VM creation failed (GVMM). VBox status code: -37 (VERR_NOT_SUPPORTED). > > > > Without it (i.e. using the "kernel" module): > > Failed to load VMMR0.r0. VBox status code: -609 (VERR_SYMBOL_NOT_FOUND). > > > > And the documentation about the kernel module as described on > > http://www.virtualbox.org/wiki/Porting_VirtualBox are lacking a bit > > of essential information. > > FYI: I've given up on it, despite the fact that it compiles and > runs on 6.3, I can't get around the problems with the kernel driver > and the lack of documentation.