Date: Mon, 25 Aug 2014 11:20:51 -0400 From: Fbsd8 <fbsd8@a1poweruser.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: "hosts" file for jails (ezjail) Message-ID: <53FB5453.6080708@a1poweruser.com> In-Reply-To: <20140825114658.1ebfaa1c@X220.alogt.com> References: <53FA92E1.7000300@gmail.com> <20140825114658.1ebfaa1c@X220.alogt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Erich Dollansky wrote: > Hi, > > On Sun, 24 Aug 2014 21:35:29 -0400 > Stephen Cook <sclists@gmail.com> wrote: > >> Is there a way to get a bunch of jails (I'm using ezjail) to share >> the same hosts file, preferably one stored somewhere on the host OS? >> I tried putting a symlink in the "flavour" template but when a jail >> is created with that the symlink within the jail pointed to itself >> and gave me some sort of recursive error when I tried to "cat" it. >> >> I'd like to be able to update the file when I add a new jail, and >> have the others able to connect to it by whatever stupid name I give >> it, without editing all those different hosts files. But I suspect >> the whole point of jails being kept separate from the host filesystem >> might be in my way. >> >> Any advice is welcome! Thanks! >> > what you want is against the idea of jails. What you can do, creates in > the root filesystem the hosts file and write a script which copies it > then into the jails. > > Erich This is a an error in the handbook. This is NOT required by ezjail or jail(8). The author has made a great mistake in publishing this mis-leading information. You may safely disregard all comments made in the new handbook jail ezjail section about the jails /etc/hosts file.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53FB5453.6080708>