Date: Wed, 30 Apr 2008 05:36:20 -0400 From: Jeffrey Smith <jeffrey.smith@futurecis.com> To: Jeremie Le Hen <jeremie@le-hen.org> Cc: freebsd-jail@freebsd.org Subject: Re: freebsd-update on jails Message-ID: <1209548180.45013.7.camel@mrwizard.futurecis.com> In-Reply-To: <20080429220832.GB2836@obiwan.tataz.chchile.org> References: <1208720979.2082.13.camel@mrwizard.futurecis.com> <20080429220832.GB2836@obiwan.tataz.chchile.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2008-04-30 at 00:08 +0200, Jeremie Le Hen wrote: > Hi Jeffrey, > > On Sun, Apr 20, 2008 at 03:49:39PM -0400, Jeffrey Smith wrote: > > I previously posted a howto to use zfs to manage jails. The first > > Could you remind us the URL of this howto please? > > Thanks. > Regards, I posted it here to this list, looking for recommendations. The only update I have for it is that freebsd-update doesn't work as ZFS doesn't yet support chflags. Other than that I am very happy with this setup. Can't wait for ZFS to mature to the point for this to work flawlessly. Here it is again ZFS Jails #zpool create pool #zfs create -o mountpoint=jails pool/jails #zfs create pool/jails/jailbase #mkdir -p /jails/7.0-RELEASE/base /jails/7.0-RELEASE/man pages #cd /jails/7.0-RELEASE/base NOTE: Files can also be copied from Disc1 cdrom #ftp ftp.freebsd.org:/pub/FreeBSD/releases/amd64/7.0-RELEASE/base/ ftp>mget * ftp>cd ../manpages ftp>lcd ../manpages ftp>mget * ftp>exit #export DESTDIR=/jails/jailbase #sh install.sh #cd ../manpages #sh install.sh #export DESTDIR=ˇˇ #mkdir -p /jails/jailbase/usr/ports #mount_nullfs /usr/ports /jails/jailbase/usr/ports #touch /jails/jailbase/etc/fstab #cp /etc/resolv.conf /jails/jailbase/etc #vi /etc/rc.conf # # Jail Defaults # jail_enable=ˇYESˇ jail_set_hostname_allow=ˇNOˇ jail_interface=ˇbge0ˇ jail_devfs_enable=ˇYESˇ jail_list=ˇjailbaseˇ # # jailbase.example.org # jail_jailbase_hostname=ˇjailbase.example.orgˇ jail_jailbase_ip=ˇ192.168.0.50ˇ jail_jailbase_rootdir=ˇ/jails/jailbaseˇ :wq #/etc/rc.d/jail start #jls #jexec 1 tcsh #set autolist NOTE: freebsd-update does not work, as ZFS does not support chflags. looking for a work around Install ports or package that all jails will require, such as bash and vim-lite #exit Back to host #zfs snapshot pool/jails/jailbase@YYYYMMDD# #zfs clone pool/jails/jailbase@YYYYMMDD# pool/jails/ns #zfs clone pool/jails/jailbase@YYYYMMDD# pool/jails/mail #zfs clone pool/jails/jailbase@YYYYMMDD# pool/jails/www #vi /etc/rc.conf ...snip... jail_list=ˇjailroot ns mail wwwˇ ...snip... # # ns.example.org # jail_ns_hostname=ˇns.example.orgˇ jail_ns_ip=ˇ192.168.0.51ˇ jail_ns_rootdir=ˇ/jails/nsˇ # # mail.example.org # jail_mail_hostname=ˇmail.example.orgˇ jail_mail_ip=ˇ192.168.0.52ˇ jail_ns_rootdir=ˇ/jails/mailˇ # # www.example.org # jail_www_hostname=ˇwww.example.orgˇ jail_www_ip=ˇ192.168.0.53ˇ jail_www_rootdir=ˇ/jails/wwwˇ :wq #/etc/rc.d/jail start #jls
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1209548180.45013.7.camel>