Yes I'm working on it.@Jip-Hop this is something your script will need to account for.
Jails are not stored on the root filesystem.Yes I'm working on it.
Anyone running into this please try jlmkr.py from the develop branch if you're using the beta release of SCALE 24.04.
incus_lxd_lxc_kvm.md
on main
and – sorry – I'm speed-reading here.)Yes superseded. Still experimental though.Superseded by <https://github.com/Jip-Hop/jailmaker/blob/main/templates/incus/README.md>?
(I can't findincus_lxd_lxc_kvm.md
onmain
and – sorry – I'm speed-reading here.)
Creating jail debDocker from config template ./templates/docker-jail/config. TIP: Run `jlmkr create` without any arguments for interactive config. Or use CLI args to override the default options. For more info, run: `jlmkr create --help` Downloading the image index Downloading the rootfs ERROR: Failed to download https://images.linuxcontainers.org//images/debian/bookworm/amd64/default/20240311_05:24//rootfs.tar.xz Aborting...
yes it works with 23Noob Question.
Does jailmaker work with TrueNAS Scale 23.xx , or do i have to use the latest beta 24.x?
Following up a bit, in case someone else might find this useful. I was able to get docker and portainer up and running in a 'jail' . In order to create some useful containers within portainer, i needed to add the following SYSTEMD_NSPAWN_USERS_ARGS line to the config file for the 'jail' (via jlmkr edit <jailname>:
--capability=CAP_BLOCK_SUSPEND,CAP_MAC_ADMIN,CAP_IPC_LOCK,CAP_MAC_OVERRIDE,CAP_SYSLOG,CAP_SYS_MODULE,CAP_SYS_PACCT,CAP_SYS_RAWIO,CAP_SYS_TIME,CAP_WAKE_ALARM
I will follow up if I find any additional parameters that are required for creating other containers.
--capability=all
$ ps ax | grep nspawn 4026 ? Ss 0:00 /usr/bin/systemd-nspawn --bind-ro=/sys/module --boot \ --inaccessible=/sys/module/apparmor --quiet --keep-unit --machine=auberon \ --directory=rootfs --capability=all --property=DeviceAllow=char-drm rw --bind=/dev/dri \ --network-bridge=br0 --resolv-conf=bind-host ...
I used the jailmaker docker template. https://github.com/Jip-Hop/jailmaker/tree/main/templates/dockerFollowing up a bit, in case someone else might find this useful. I was able to get docker and portainer up and running in a 'jail' . In order to create some useful containers within portainer, i needed to add the following SYSTEMD_NSPAWN_USERS_ARGS line to the config file for the 'jail' (via jlmkr edit <jailname>:
--capability=CAP_BLOCK_SUSPEND,CAP_MAC_ADMIN,CAP_IPC_LOCK,CAP_MAC_OVERRIDE,CAP_SYSLOG,CAP_SYS_MODULE,CAP_SYS_PACCT,CAP_SYS_RAWIO,CAP_SYS_TIME,CAP_WAKE_ALARM
I will follow up if I find any additional parameters that are required for creating other containers.