Date: Tue, 8 Jan 2008 21:47:00 +0100 From: Maciej Suszko <maciej@suszko.eu> To: freebsd-current@freebsd.org Subject: Re: jail on ZFS - "Unable to mount devfs" Message-ID: <20080108214700.a7284ccd.maciej@suszko.eu> In-Reply-To: <70f41ba20801080824y60f162b9w636e30b23e8f57ba@mail.gmail.com> References: <70f41ba20801071743o437b86ebx7956ad73250becb1@mail.gmail.com> <56088.195.50.100.20.1199787921.squirrel@www.superhero.nl> <70f41ba20801080708u4b05b37cta9315a0e0df5116f@mail.gmail.com> <20080108153816.GC45359@atarininja.org> <70f41ba20801080824y60f162b9w636e30b23e8f57ba@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
snowcrash+freebsd wrote: > hi wesley, > > > I have a jail running in a ZFS environment. > > > > wxs@ack ~ % jls > > JID IP Address Hostname Path > > 3 192.168.1.100 > > asterisk /u/jails/asterisk wxs@ack ~ % mount | > > grep "data" data on /u (zfs, NFS exported, local, noatime) > > wxs@ack ~ % mount | grep devfs > > devfs on /dev (devfs, local) > > devfs on /u/jails/asterisk/dev (devfs, local) > > wxs@ack ~ % > > here's what i have > > jls > JID IP Address Hostname Path > 1 10.0.0.200 jTEST.internal.net /j/jTEST > > mount > z on / (zfs, local) > devfs on /dev (devfs, local) > /dev/mirror/gm0s1a on /bootdir (ufs, local, soft-updates) > z/data on /data (zfs, local) > z/home on /home (zfs, local) > z/j on /j (zfs, local) > z/tmp on /tmp (zfs, local) > z/usr on /usr (zfs, local) > z/var on /var (zfs, local) > /j/jMROOT on /j/jTEST (nullfs, local, read-only) > /j/s/jTEST on /j/jTEST/s (nullfs, local) > devfs on /j/jTEST/dev (devfs, local) > > which, i think?, says the same. > > argh. confused. following too many threads with partial solutions ... > > can you share your setup-a-jail-on-a-zfs'd-host steps? Hi. I just took ordinary steps to have a working jail on ZFS: - make buildworld - make installworld DESTDIR=/path/to/jail - make distribution DESTDIR=/path/to/jail - copy/edit some config files (mainly under /path/to/jail/etc) - start jail - jexec 1 /bin/sh from /etc/rc.conf (besides enabling jail, list of jails etc.): jail_name_procfs_enable="YES" jail_name_devfs_enable="YES" That's all. -- regards, Maciej Suszko.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080108214700.a7284ccd.maciej>