Gentoo in a systemd-nspawn chroot

Submitted by wraeth on Sun, 11/06/2017 - 15:18
There may come a time when you need to do some testing in a Gentoo environment that is not affected by, and doesn't affect, your "regular" usage. This might include testing new ebuilds or configuring services in some unusual or exotic manner; or possibly even just an isolated environment to run some program. This guide will step you through the process of getting a chroot environment set up using systemd-nspawn and configuring permissions to allow for quick access to the environment.