TrueNAS SCALE can create persistent Linux ‘jails’ with systemd-nspawn. These containers are very similar to Jails from TrueNAS CORE or LXC, LXD and Incus containers on Linux. Jailmaker helps with the following:
Setting up the jail so it won’t be lost when you update SCALE
Choosing a distro (Debian 12 strongly recommended, but Ubuntu, Arch Linux or Rocky Linux seem good choices too)
Optional: configuring the jail so you can run Docker inside it
Optional: GPU passthrough (including nvidia GPU with the drivers bind mounted from the host)
I’m not aware of compatibility issues with Apps. Users have reported jailmaker and Apps working fine side by side. I only use jailmaker so I have no experience with using the two simultaneously.
Most users may not hit any issues. We just have to put a precaution there so that users know to pay attention and don’t try to reserve same ports in both, over commit resources, that kind of thing.
--bind-ro=/dev/sda works, but if i run the smartctl command, i get Read Device Identity failed: Permission denied
root@smart-test:~# smartctl -a /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.74-production+truenas] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
Probable ATA device behind a SAT layer
Try an additional '-d ata' or '-d sat' argument.
smartctl -d ata -a /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.74-production+truenas] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: Permission denied
I have problem with jailmaker on freshly installed 24.04 RC1 with root account disabled (recommended option during installation). Documentation on TrueNAS website and github page says Jailmaker installation and operation has to be done with root account, i had to append sudo with every command until ‘jailmaker create’. Sudo doesn’t work, su -c ‘jailmaker create’ doesn’t work. How do i proceed? Do i need to enable root account?
iX says root account will eventually be disabled permanently in future, how will people use Jailmaker when that happen?
It seems to me Jailmaker is rootful containalization, but is it still possible for me to have unprivileged LXC or rootless Podman within privileged LXC?
To rule out it has anything to do with the jlmkr alias I recommend you to run ./jlmkr.py create directly from the jailmaker directory. In case you’re not already root, you’d probably have to put sudo in front.