jails Build jail template without /usr/src

Hi,

I've been enjoying jails and now I have more jails to come. Recently, I had to face the headache of upgrading jails manually one by one. So I'd like to up my game by following the handbook to create jail template Chapter 16. Jails | FreeBSD Documentation Portal so I could have better way to update multiple jails in future.

First step is to install world:
1669078166790.png

However, my /usr/src folder is empty, possible that when installing host, I didn't check into [ ] src checkbox since I'd like to have as small as possible footprint of host. So make installworld is not understood. I have few questions:
1. Is there a different way to get make installworld work without /usr/src?
2. If I must have /usr/src, what should I do now to get it given host OS is already installed?
3. Would you guys have any other recommendations for similar situation (multiple jails upgrade/update)?

Thanks much,
 
You can download the sources here or git clone -b releng/13.1 https://git.freebsd.org/src.git /usr/src.

You can also use bsdinstall(8) bsdinstall jail /path/to/jail.

sysutils/ezjail is an option too but I think you still need the sources. It's in the handbook too.

Thanks, I'm building template, not yet create jail, bsdinstall seems to already starting to install/create jail (I might be wrong)


If you don't want to install sources and buildworld you can simply download and extract base.txz to the folder you're setting the jail up in. Download it from https://download.freebsd.org/releases/amd64/13.1-RELEASE/

tar -xvf base.txz -C /the/path/to/my jail
I think this is exactly what I need. Thanks much.
 
Back
Top