From owner-freebsd-virtualization@FreeBSD.ORG Thu Nov 7 12:26:43 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 52F47E59 for ; Thu, 7 Nov 2013 12:26:43 +0000 (UTC) (envelope-from krn@krn.dk) Received: from fjotte.krn.dk (fjotte.krn.dk [62.242.64.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E3B6C2A54 for ; Thu, 7 Nov 2013 12:26:42 +0000 (UTC) Received: from [127.0.0.1] (ip199.tdu.dk [62.242.64.199] (may be forged)) (authenticated bits=0) by fjotte.krn.dk (8.13.6/8.13.6) with ESMTP id rA7CQAx8013601; Thu, 7 Nov 2013 13:26:10 +0100 (CET) (envelope-from krn@krn.dk) Message-ID: <527B86E2.5020907@krn.dk> Date: Thu, 07 Nov 2013 13:26:10 +0100 From: Kristen Nielsen User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: FreeBSD 9.1-Rel: Jail-rc startup of vnet jails with new configuration syntax Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2013 12:26:43 -0000 Hi freebsd-virtualization list I am trying to figure out how to start configured jails within FreeBSD 9.1Release at boot time. I am using new C-style jail configuration syntax in /etc/jail.conf. all jail starts successfully when i do a jail -c from the commandline. I am trying to configure jails to start at boot time using the features in the /etc/rc.conf file. in /etc/rc.conf at base host i have jail_enable="YES" jail_list=" jail1 jail2 jail3 " and no more jail related lines, evereything else is placed into the jail configuration (C-style) file. running "service jail start": Configuring jails:. Starting jails:/etc/rc.d/jail: ERROR: jail: No hostname has been defined for jail1 Looking into the /etc/rc.d/jail script it seems it expects that the /etc/rc.conf contains old style jail configuration statement like jail__hostname="jail1" etc. I have looked at the patch at: http://wiki.polymorf.fr/index.php/Howto:FreeBSD_jail_vnet but it also uses the old style (rc.config) jail configuration format, but with extended number of parameters. The patch is dated before the 9-1 release where the C-style jail configuration syntax was taken into use. is there a patch for /etc/rc.d/jail script that make it handles the new style jail configuration file format (the C-style format). or am I doing this the wrong way. If you can point me into the right direction it will be very helpfull. Whishlist It would be great with something like a /etc/jail.d/ setup where each jail configuration file is contained in a separate file, the format is the same as the /etc/jail.conf, the latter fil just holds configurations for all jails. Both files with the C-style syntax. Regards Kristen Nielsen, Denmark. krn@krn.dk