Date: Fri, 1 Aug 2008 17:20:38 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Redd Vinylene <reddvinylene@gmail.com> Cc: freebsd-jail@freebsd.org Subject: Re: Multiple IPs Message-ID: <20080801171343.M88849@maildrop.int.zabbadoz.net> In-Reply-To: <f1019d520808010117q3ac18173y96b4e60e7b2b1b6d@mail.gmail.com> References: <f1019d520808010105k26c8adew3f4958f8689d16ae@mail.gmail.com> <f1019d520808010117q3ac18173y96b4e60e7b2b1b6d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 1 Aug 2008, Redd Vinylene wrote: Hi, > # patch -p6 < bz_jail7-20080727-11-at146062.diff could be that it needs to be -p7 Try with patch -C -p6/7 (with -C) first and check that it does not complain. > Yeah that's more like it ;) > > On Fri, Aug 1, 2008 at 10:05 AM, Redd Vinylene <reddvinylene@gmail.com> wrote: >> Big ups to Bjoern A. Zeeb for his multiple IP patch as well as his >> friendly support service ;) >> >> I'd just like to confirm, however, if this is how it's done? >> >> # cd /usr/src >> # wget http://people.freebsd.org/~bz/bz_jail7-20080727-11-at146062.diff preferably use "fetch" as it comes with base;-) >> # patch -p6 bz_jail7-20080727-11-at146062.diff see above >> # make buildworld >> # make buildkernel KERNCONF=GENERIC >> # make installworld >> # make installkernel KERNCONF=GENERIC you do not need KERNCONF=GENERIC (that's the default) for both commands. >> # mergemaster -U >> >> Now to the jail part (this is exactly how I created the jail in the first place) >> >> # export D=/usr/jail/camel >> # mkdir -p $D >> # make world DESTDIR=$D that should be make installworld DESTDIR=$D >> # cd etc/ nope, no longer needed >> # make distribution DESTDIR=$D yes >> # mount -t devfs devfs $D/dev Rather not. Set jail_camel_devfs_enable="YES" in /etc/rc.conf (assuming the `name' of the jail will be camel). See the Jails section at the end of /etc/defaults/rc.conf for the other options. The IP addresses will need to be given as a ',' sepcarated list like: jail_camel_ip="192.0.2.1,192.0.2.17,192.0.2.255" You'll need a reboot somewhen for the new kernel etc. you can do sh /etc/rc.d/jail stop sh /etc/rc.d/jail start sh /etc/rc.d/jail stop camel sh /etc/rc.d/jail start camel ... I hope that helps. -- Bjoern A. Zeeb Stop bit received. Insert coin for new game.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080801171343.M88849>