How to use systemd-nspawn

Sometimes you may want to do something in isolation from your usual user account. For example, you might want to run an LLM harness without giving it access to basically everything on your system. At the same time, the setup needs to be practical enough that you can actually get some work done. One way to achieve this is to use systemd-nspawn . Preparing the environment Link to heading The…