From owner-freebsd-ports@FreeBSD.ORG Fri Oct 22 19:57:22 2010 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 9A5421065674 for ; Fri, 22 Oct 2010 19:57:22 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 65BFE8FC1A for ; Fri, 22 Oct 2010 19:57:22 +0000 (UTC) Received: from pd2ml2so-ssvc.prod.shaw.ca ([10.0.141.134]) by pd3mo1so-svcs.prod.shaw.ca with ESMTP; 22 Oct 2010 13:42:19 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=I0jFHxriRJwyplOnjK2nOSNCO7GacXBAI5CCNqI8fuI= c=1 sm=1 a=wAGQQ9Az6v0A:10 a=BLceEmwcHowA:10 a=xA7i7079zcQA:10 a=kj9zAlcOel0A:10 a=+J+gTUrb/Bhkr9chPx4Sww==:17 a=BWvPGDcYAAAA:8 a=6I5d2MoRAAAA:8 a=l1TFk46zTQf9Zf_-m0YA:9 a=aEkxyMYFlR9LcclERzQA:7 a=iU0tVXigyZ9YvXpKS6CRqDlQw94A:4 a=CjuIK1q_8ugA:10 a=V7tsTZBp22UA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO spqr.komquats.com) ([24.68.75.245]) by pd2ml2so-dmz.prod.shaw.ca with ESMTP; 22 Oct 2010 13:42:19 -0600 Received: from cwsys.cwsent.com (cwsys [10.1.1.1]) by spqr.komquats.com (Postfix) with ESMTP id 4B36246EC5; Fri, 22 Oct 2010 12:42:19 -0700 (PDT) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.14.4/8.14.4) with ESMTP id o9MJgJnb003712; Fri, 22 Oct 2010 12:42:19 -0700 (PDT) (envelope-from Cy.Schubert@komquats.com) Message-Id: <201010221942.o9MJgJnb003712@cwsys.cwsent.com> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: freebsd-ports@freebsd.org, freebsd-fs@freebsd.lrg Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 22 Oct 2010 12:42:19 -0700 Sender: Cy.Schubert@komquats.com Cc: Subject: VirtualBox and nullfs X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Cy Schubert List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 19:57:22 -0000 This is a heads-up for those who might configure their systems in this way. First some background. I normally build ports in a jail, then copy them ($LOCALBASE, package databases, etc) to the various systems in my infrastructure -- it's all scripted (differences in config files are maintained through symlinks). So far so good. The previous time I performed a port upgrade I placed /usr/local and friends onto ZFS. This time in a subdirectory of /usr, using nullfs (and in some cases NFS) to make the final mounts. An example would be /usr/local would be a nullfs mount from /usr/pkg/local and /var/db/pkg would be mounted from /usr/pkg/var/db/pkg. So far so good, everything worked, until... The problem began when I tried to run VirtualBox. It came back with a sysctl failure. Executing it from it's actual location resolved that issue but I still could not run any VMs. Ultimately I removed the nullfs mounts and moved /usr/pkg/local back to /usr/local and VirtualBox worked again. If /usr/local is mounted from a ZFS filesystem, it works. (Not sure about NFS but I suspect it might work too,) However if /usr/local is mounted using a nullfs mount VirtualBox fails to run properly. I don't know why yet. Hopefully if anyone has the same configuration this email should be of assistance. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org e**(i*pi)+1=0