rc.conf configured jail not getting IP addresses
woodsb02 at gmail.com
Tue Mar 31 22:44:41 UTC 2015
I think this is mentioned in Handbook section 15.3 "Creating and
A list of the jails which are enabled to start at boot time should be
added to the rc.conf(5)
jail_enable="YES" # Set to NO to disable starting of any jails
jail_list="*www*" # Space separated list of names of jails
Jail names in jail_list should contain alphanumeric characters only.
For each jail listed in jail_list, a group of rc.conf(5)
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
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.
On Wed, Apr 1, 2015 at 1:32 AM Matthew Pounsett <matt at conundrum.com> wrote:
> > On Mar 30, 2015, at 18:46, Jason Unovitch <jason.unovitch at gmail.com>
> > 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 at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe at freebsd.org"
More information about the freebsd-questions