By nspawn you mean systemd-nspawn?[1]

[1] https://wiki.archlinux.org/title/Systemd-nspawn