Page MenuHomeFreeBSD

D57771.id.diff
No OneTemporary

D57771.id.diff

diff --git a/documentation/content/en/books/handbook/jails/_index.adoc b/documentation/content/en/books/handbook/jails/_index.adoc
--- a/documentation/content/en/books/handbook/jails/_index.adoc
+++ b/documentation/content/en/books/handbook/jails/_index.adoc
@@ -818,6 +818,13 @@
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 @@
# 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 @@
[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]
....

File Metadata

Mime Type
text/plain
Expires
Sun, Jul 19, 7:18 AM (9 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34286469
Default Alt Text
D57771.id.diff (1 KB)

Event Timeline