jails
Maxim V Filimonov
che at bein.link
Sun Jun 7 15:38:36 UTC 2015
On Sunday 07 June 2015 09:55:05 Baho Utot wrote:
> I have FreeBSD 10.1 and trying to setup a jail according to the handbook:
>
>
> 15.3. Creating and Controlling Jails
>
> |#| *|setenv D/|/staorage/jails/crochet|/|*
> |#| *|mkdir -p $D|*
> |#| *|cd /usr/src|*
> |#| *|make buildworld|*
> |#| *|make installworld DESTDIR=$D|*
> |#| *|make distribution DESTDIR=$D|*
> |#| *|mount -t devfs devfs $D/dev|*
>
> cat /etc/jail.conf
> crochet {
> path = /storage/jails/crochet;
> mount.devfs;
> host.hostname = crochet;
> ip4.addr = 192.168.1.40;
> interface = re0;
> exec.start = "/bin/sh /etc/rc";
> exec.stop = "/bin/sh /etc/rc.shutdown";
> }
>
>
> jail /storage/jails/crochet crochet.bildanet.com 192.168.1.40 /bin/sh
>
> gives jail: Undefined variable.
>
> How does one manually start the jail?
>
> I would like to start the jail manually not automagically on boot
>
> I want to be "in the jail" when it starts to run crochet from there ie a
> command prompt.
>
> OK what did I do incorrectly?
>
To start a jail, type
> jail -c crochet
To be inside this jail (i.e. to start a shell inside it), type:
> jexec crochet /bin/sh
--
wbr, Maxim Filimonov <che at bein.link>
More information about the freebsd-questions
mailing list