From owner-freebsd-questions@FreeBSD.ORG Sun Dec 27 17:48:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0257B10656A7 for ; Sun, 27 Dec 2009 17:48:22 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-pz0-f185.google.com (mail-pz0-f185.google.com [209.85.222.185]) by mx1.freebsd.org (Postfix) with ESMTP id CFDB78FC08 for ; Sun, 27 Dec 2009 17:48:21 +0000 (UTC) Received: by pzk15 with SMTP id 15so6716489pzk.3 for ; Sun, 27 Dec 2009 09:48:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=/A9eeb7cVhF6ll9R350+MEla4W2IaS07dSZKdINUKcw=; b=tyiUfFcaNS7u6UmpqC38BJVhdqnu2++DQEpOEEkw1WIcR5BMbUVvS/B8DshMPx+MON mQZxrNZWu4PV2RH91NWo/1lSHWEo2zFN+5RPM7DcoTH5dW1l5yLW9BGPbrcDHyDeum2P U0SqKrfSMQsFUxtYAasycvn5cQ0wj6DnIvtKA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ev5yg83Vrx7wZXTO+ump+Y5HEptruVr4tGPmpG88mV4jKwNm2Exue2n9A8Y4Ps1Dah C18J+5Pe2+p1ejyvLX11ENrNmGpF0XFUvM47uN9f+t86+ZazHTkyF0FXe8JSSMrwQMKs Gx3w54FMFZN2dZqw2bXD19ExH0h+AlApVfLQY= MIME-Version: 1.0 Received: by 10.114.188.31 with SMTP id l31mr9842668waf.201.1261936098903; Sun, 27 Dec 2009 09:48:18 -0800 (PST) In-Reply-To: <4B37630D.5050806@posteurs.com> References: <4B37630D.5050806@posteurs.com> Date: Sun, 27 Dec 2009 10:48:18 -0700 Message-ID: From: Tim Judd To: Guy Marcenac Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Jails setup with binary packages only X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 17:48:22 -0000 On 12/27/09, Guy Marcenac wrote: > I would like to use a freebsd system with binary packages only. I want > to heavily use the jail concept. All the documentation about jails > implies the use of buildworld into the jails. > > In order to avoid any compilation time, I installed a minimal base > system for the host and I nullfs mounted read-only every system > directory (bin, sbin, etc) into my jails. Then, in order to be able to > install additional software inside the jails, I unionfs mounted > read-write empty directories ontop of the nullfs read-only system > directories. > > So I only have to freebsd-update the host and then freebsd-update each > jail in order to keep updated. > > What about this kind of setup ? do I miss something ? A binary jail install with packages is fine. I don't know why it was documented to do it from source other than the possibilities that it jails were a technology only achievable by updating your source files and installing (when jails were new). Now that it's gone through a release cycle, I've done several binary jails, with binary packages. To get a system up quickly, I often do a binary jail install with binary packages, and then run ports and a build to keep it maintained. Of course if I need an option not default in a port, it gets done by ports. Binary jail install, freebsd-update, pkg_add portaudit, rehash && portaudit -Fa Now it's a basic setup, things like timezone (in the jail) and other odds-and-ends. enjoy, --Tim