rc.conf configured jail not getting IP addresses

Ben Woods woodsb02 at gmail.com
Tue Mar 31 22:44:41 UTC 2015


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 at conundrum.com> wrote:

>
> > On Mar 30, 2015, at 18:46, Jason Unovitch <jason.unovitch at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list