From owner-freebsd-questions@freebsd.org Sat Aug 29 12:44:14 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E7D69C5002 for ; Sat, 29 Aug 2015 12:44:14 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 406C41FBD for ; Sat, 29 Aug 2015 12:44:14 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by ioej130 with SMTP id j130so36197113ioe.3 for ; Sat, 29 Aug 2015 05:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=hMFIryxkawD/lRuRiJIaqCvR7Nv5m3Yxrby4aZZ7oB8=; b=rrC4U1zqJ2hp87bVREV7rRScgAxkwbFYeXCvvb7UQjKATzyM5IXLUVT7eHGnUzVXUQ EiWDBd46rDJNiV0Gy15w/fYYHvmM3wwPvsAmxxFH1+8LWKImVkovJMnYSprCkNj6XTv2 Lyrn+3FBJzJyoIBS3Zxm6pE0/6/Av3M4KNtx1CYHAaoG60KsOob/LfXslT84ltg5YnA/ l2h2mHweikZFxfKpi9N4DIMeIyyc5UQJI169XbyzU/cLkuqbdCTHYKbNnSkn/JjOqi0C aHa2132kMK2TFzEcf2pomP6ZzLPCb/Y1l+tRPkix6JcKkbGw3cbNS9LN+98SVQGITAZv HlwA== X-Received: by 10.107.136.69 with SMTP id k66mr18276900iod.111.1440852253534; Sat, 29 Aug 2015 05:44:13 -0700 (PDT) Received: from [10.0.10.5] (cpe-76-190-244-6.neo.res.rr.com. [76.190.244.6]) by smtp.googlemail.com with ESMTPSA id n6sm5405429igv.17.2015.08.29.05.44.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 29 Aug 2015 05:44:12 -0700 (PDT) Message-ID: <55E1A91D.7020108@gmail.com> Date: Sat, 29 Aug 2015 08:44:13 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Vijay Rajah CC: freebsd-questions@freebsd.org Subject: Re: adding packages during jails creation References: <55DFE9B3.9010003@rvijay.me> <1422065A4E115F409E22C1EC9EDAFBA4222B9E85@sofdc01exc02.postbank.bg> <55DFFFCF.7000102@rvijay.me> <55E19F72.6090804@rvijay.me> In-Reply-To: <55E19F72.6090804@rvijay.me> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2015 12:44:14 -0000 Vijay Rajah wrote: > Ben, > > Looks interesting.. did not get a chance to read the docs completely. > > Do you know if I can switch over my existing jails from ezjail to > iocage? > > -Thanks > Vijay > > On 28/08/15 3:35 pm, Ben Woods wrote: >> On Friday, August 28, 2015, Vijay Rajah wrote: >>> My question is how can I automate installation of ports, instead of me >>> manually installing these packages on every Jail? >>> >>> -Thanks >>> Vijay >>> >> Hi Vijay, >> >> If you use iocage for jail management instead of ezjail, you can use its >> pkglist keyword to automatically install a list of packages in a file as >> the jail is created. >> >> Documented here: >> https://iocage.readthedocs.org/en/latest/advanced-use.html#automatic-package-installation >> >> >> Hope that helps, >> -Ben >> >> If I remember correctly iocage jails are based on zfs and the methodology employed is totally different that the one used in ezjail zfs jails. You may want to check out qjail, it also has option to auto install pkg's listed in a flat file as well as a few other methods to accomplish the same thing and is UFS based. No mater which jail tool you use, changing from one to another is going to require a complete re-creation of your jail(8) environment.