[[Systemd Machined]] = Run ephemeral container = {{{sh systemd-nspawn --ephemeral --directory /var/lib/templates/${name} }}} == Debian == === Create new debian container === {{{ debootstrap --include=systemd-container bullseye /var/lib/machines/ systemd-nspawn -M apt install systemd-container }}} https://puppet.com/docs/puppet/7/install_puppet.html#install_puppet == Copy existing container == {{{ systemd-nspawn --template=EXISTING_OS_TREE -D /var/lib/machines/NEW_MACHINE }}} == Setting up container == == Food for thought == overlayfs doesn't work with containers, due to something with UID/GID shift btrfs subvolumes should be used for templates, since those enable COW.