freebsd:jails
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| freebsd:jails [2020/10/01 01:38] – sleepy | freebsd:jails [2025/07/07 23:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 89: | Line 89: | ||
| }</ | }</ | ||
| * add entry to **/ | * add entry to **/ | ||
| - | |||
| ---- | ---- | ||
| + | ====== Updating jails ====== | ||
| + | ===== using source ===== | ||
| + | assuming you have already built and installed world and kernel. Stop the running jail(s) first. | ||
| + | < | ||
| + | make installworld DESTDIR=/ | ||
| + | mergemaster -iFU -D /jails/path | ||
| + | </ | ||
| + | ==== jails_update.sh ==== | ||
| + | Script to automate the updates, just make sure to update the jails paths. | ||
| + | <code bash jails_update.sh> | ||
| + | jails="/ | ||
| + | cd /usr/src | ||
| + | |||
| + | for jail in $jails | ||
| + | do | ||
| + | make installworld DESTDIR=$jail | ||
| + | mergemaster -iFU -D $jail | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | ===== using freebsd-update binaries ===== | ||
| + | <code bash> | ||
| + | freebsd-update -b /jails/path fetch | ||
| + | freebsd-update -b /jails/path install | ||
| + | </ | ||
| + | ---- | ||
| ====== To Do ====== | ====== To Do ====== | ||
| - | * create ZFS dataset with 20% reserve quota | + | * create ZFS dataset with 20% reserve quota <code bash>zfs create -o quota=300G -o mountpoint=/ |
| - | * **zfs create -o quota=300G -o mountpoint=/ | + | |
| + | echo $jail</ | ||
| + | | ||
| + | * need to create alias for jail ip on hosts network interface during jail creation. | ||
| + | * using '' | ||
| + | * permanent using '' | ||
freebsd/jails.1601516285.txt.gz · Last modified: (external edit)
