From owner-freebsd-questions@FreeBSD.ORG Tue Mar 31 22:44:41 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 09B6C195 for ; Tue, 31 Mar 2015 22:44:41 +0000 (UTC) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) (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 BFEF13A6 for ; Tue, 31 Mar 2015 22:44:40 +0000 (UTC) Received: by iedfl3 with SMTP id fl3so32625410ied.1 for ; Tue, 31 Mar 2015 15:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=EqxClVWAnJQe2DlJd402Tq3+yBjy1lb0Gb+sa0e/aYQ=; b=pPq9pidKeCh4QiL5Y3oRp+JQ9Zm39CSoGgxhRokjIs32Fj1f2VS9CHZ094XmS2BNs8 IrkTGWebFPCz3Ve8gv6baS63+v63vpSl+ralBIuIZKhpnzpRumcHGtWgxaLp+jspKlWI m7vySan5biH8JhiuocJZsGf73Wi6Z4ASTY62xVk6bZX50hBgs9kjdTpHvIBdH1UmmflF 1KNbRgWDzMTDAe6CZh7uAyhijOh2fXdP0plo5xjf9JMampJyqMmHYYbwFyBZZL6WvG9Z v7I6fvHV6D8X8fuL+vl9+4eujEWyWv7rdvzHDzJAxeSS3/miFu1yeDTYGSc6hJZX6cw5 XZXQ== X-Received: by 10.42.67.19 with SMTP id r19mr45518077ici.30.1427841880198; Tue, 31 Mar 2015 15:44:40 -0700 (PDT) MIME-Version: 1.0 References: <760A9E00-EA43-4DF1-8259-376D1987B2D5@conundrum.com> In-Reply-To: From: Ben Woods Date: Tue, 31 Mar 2015 22:44:39 +0000 Message-ID: Subject: Re: rc.conf configured jail not getting IP addresses To: Matthew Pounsett , Jason Unovitch Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2015 22:44:41 -0000 I think this is mentioned in Handbook section 15.3 "Creating and Controlling Jails": https://www.freebsd.org/doc/en/books/handbook/jails-build.html QUOTE: 1. A list of the jails which are enabled to start at boot time should be added to the rc.conf(5) file: jail_enable="YES" # Set to NO to disable starting of any jails jail_list="*www*" # Space separated list of names of jails Note: Jail names in jail_list should contain alphanumeric characters only. 2. For each jail listed in jail_list, a group of rc.conf(5) settings, which describe the particular jail, should be added: jail_*www*_rootdir="/usr/jail/www" # jail's root directory jail_*www*_hostname="*www*.example.org" # jail's hostname jail_*www*_ip="192.168.0.10" # jail's IP address jail_*www*_devfs_enable="YES" # mount devfs in the jail The default startup of jails configured in rc.conf(5) , will run the /etc/rc script of the jail, which assumes the jail is a complete virtual system. For service jails, the default startup command of the jail should be changed, by setting thejail_*jailname*_exec_start option appropriately. Note: For a full list of available options, please see the rc.conf(5) manual page. Regards, Ben On Wed, Apr 1, 2015 at 1:32 AM Matthew Pounsett wrote: > > > On Mar 30, 2015, at 18:46, Jason Unovitch > wrote: > > > > > > Actually, I'm not seeing it in the Handbook or man pages but I only > > took a quick look. You either need to assign your addresses in > > advance using the ifconfig_igb0_alias syntax shown in rc.conf(5) or > > have them assigned at jail start time with this syntax. > > > > jail_test_ip="igb0|67.xxx.xxx.xxx,igb0:2001:xxxx::xxxx" > > > > It looks like this |
format is shown a little bit > > later on in the Handbook. > > https://www.freebsd.org/doc/en/books/handbook/jails-ezjail.html > > Yeah, it looks like the handbook fails to mention that you're required to > do one of these two things. I guess ezjail was handling that for me before. > > Thanks for the pointer! > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" >