Linux containers with systemd-nspawn

When I needed specific linux distribution on a modern linux host, I used to
utilize
schroot.
More robust solution would be to use
LXC. However the same
page suggests
systemd-nspawn as an
alternative. So I tried it the other day when needed to prepare CentOS 7 for
my work.

Setup is easy: just obtain root file system tree. Needed to work around
inaccessible /tmp/.X11-unix within the container — bound directory
explicitly from non-tmpfs. Created launch script to launch the system
conveniently: