aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--documentation/content/en/books/handbook/jails/_index.adoc13
1 files changed, 10 insertions, 3 deletions
diff --git a/documentation/content/en/books/handbook/jails/_index.adoc b/documentation/content/en/books/handbook/jails/_index.adoc
index f3e6eef17f..49f38720b2 100644
--- a/documentation/content/en/books/handbook/jails/_index.adoc
+++ b/documentation/content/en/books/handbook/jails/_index.adoc
@@ -818,6 +818,13 @@ The next step will be to create a jail as indicated above, for example in
crossref:jails[creating-thin-jail-openzfs-snapshots, Creating a Thin Jail Using OpenZFS Snapshots], but *without* performing the configuration.
FreeBSD Linux jails require a specific configuration that will be detailed below.
+Create an empty [.filename]#/etc/jail.conf# to prevent failures when trying to stop the jail:
+
+[source,shell]
+....
+# touch /etc/jail.conf
+....
+
Once the jail has been created as explained above, execute the following command to perform required configuration for the jail and start it:
[source,shell]
@@ -825,7 +832,7 @@ Once the jail has been created as explained above, execute the following command
# jail -cm \
name=ubuntu \
host.hostname="ubuntu.example.com" \
- path="/usr/local/jails/ubuntu" \
+ path="/usr/local/jails/containers/ubuntu" \
interface="em0" \
ip4.addr="192.168.1.150" \
exec.start="/bin/sh /etc/rc" \
@@ -848,10 +855,10 @@ Execute the following command to access the FreeBSD Linux jail:
[source,shell]
....
-# jexec -u root ubuntu
+# jexec -u root ubuntu sh
....
-Inside the jail, execute the following commands to install package:sysutils/debootstrap[] and prepare the Ubuntu environment:
+Inside the jail, execute the following commands to install man:pkg[7] and package:sysutils/debootstrap[] to prepare the Ubuntu environment:
[source,shell]
....