From owner-freebsd-jail@FreeBSD.ORG Mon Dec 7 11:59:03 2009 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D71E1065670 for ; Mon, 7 Dec 2009 11:59:03 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 0CA7C8FC14 for ; Mon, 7 Dec 2009 11:59:02 +0000 (UTC) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 5B6A519E023; Mon, 7 Dec 2009 12:39:13 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 31C4019E019; Mon, 7 Dec 2009 12:39:11 +0100 (CET) Message-ID: <4B1CE95E.9060702@quip.cz> Date: Mon, 07 Dec 2009 12:39:10 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.4) Gecko/20091017 SeaMonkey/2.0 MIME-Version: 1.0 To: Alexander Petrovsky References: <2ec071a80912070104i6a7a38e3labc33ee3b494cef5@mail.gmail.com> In-Reply-To: <2ec071a80912070104i6a7a38e3labc33ee3b494cef5@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: jail@freebsd.org Subject: Re: ezjail with vimage X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 11:59:03 -0000 Alexander Petrovsky wrote: > Hello! > I want merge all my jails (ezjail framework) working under freebsd 7.2 to > freebsd 8.0 with support vimage. Ezjail don't support jail_NAME_flags="" > > Whether, I can simply change the line in /usr/local/etc/rc.d/ezjail: > > # Pass control to jail script which does the actual work > [ "${ezjail_pass}" ]&& sh /etc/rc.d/jail one${action%crypto} ${ezjail_pass} > > and add some parametres like: > > "jail -c vnet name=*vnet1* host.hostname=*vnet1.example.net* path=/ persist" You can add what ever variables you want in to /usr/local/etc/ezjail/vnet1_example_net It will be exported to /etc/rc.d/jail, so you can use: export jail_vnet1_example_net_flags="my special flags here" Or you can try to set it in /etc/rc.conf. Ezjail is not so special as it looks. Miroslav Lachman