Date: Tue, 31 Mar 2015 22:44:39 +0000 From: Ben Woods <woodsb02@gmail.com> To: Matthew Pounsett <matt@conundrum.com>, Jason Unovitch <jason.unovitch@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: rc.conf configured jail not getting IP addresses Message-ID: <CAOc73CDVVxHrz1HrjROB9fEVVhwxcXuW_6Bjq3Ai2DS7x4qzCw@mail.gmail.com> In-Reply-To: <CA5212B9-ECFB-43EE-8905-473939375EB4@conundrum.com> References: <760A9E00-EA43-4DF1-8259-376D1987B2D5@conundrum.com> <CABW2x9pOjmZLJaosWW=WJJcm9nTS==M%2BDfpzhNxXbtt%2BQbLWjg@mail.gmail.com> <CA5212B9-ECFB-43EE-8905-473939375EB4@conundrum.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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) <http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=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) <http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=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) <http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=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) <http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5> manual page. Regards, Ben On Wed, Apr 1, 2015 at 1:32 AM Matthew Pounsett <matt@conundrum.com> wrote: > > > On Mar 30, 2015, at 18:46, Jason Unovitch <jason.unovitch@gmail.com> > 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 <interface>|<address> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CDVVxHrz1HrjROB9fEVVhwxcXuW_6Bjq3Ai2DS7x4qzCw>