private-schrijfsels-en-noti.../2024/freebsd-jail-vanilla.md

16 lines
488 B
Markdown

---
tags:
- freebsd
- homelab
---
# Manage jail manually
1. Enable at startup `/etc/rc.conf` line `jail_enable="YES"`
2. Add jail to `/etc/jail.conf
3. Create subvolume with `zfs create zpool/jails/<jailname>`
4. Download `root@pineapple:/data/jails/gitea-runner-freebsd13 # fetch https://download.freebsd.org/ftp/releases/amd64/amd64/14.1-RELEASE/base.txz -o ../14.1-base.txz`
5. `tar -xf ../dl/base-14.1-RELEASE.txz`
6.
See also https://docs.freebsd.org/en/books/handbook/jails/