[root@localhost ~]# mkdir /centos_chroot
[root@localhost ~]# mkdir -p /centos_chroot/var/lib/rpm
[root@localhost ~]# rpm --rebuilddb --root=/centos_chroot/
[root@localhost ~]# wget http://mirror.centos.org/centos-7/7.2.1511/os/x86_64/Packages/centos-release-7-2.1511.el7.centos.2.10.x86_64.rpm
[root@localhost ~]# rpm -i --root=/centos_chroot --nodeps centos-release-7-2.1511.el7.centos.2.10.x86_64.rpm
[root@localhost ~]# yum --installroot=/centos_chroot groups install -y -q 'Minimal Install'
[root@localhost ~]# chroot /centos_chroot passwd root
[root@localhost ~]# systemd-nspawn -D /centos_chroot -b
CentOS Linux 7 (Core)
Kernel 3.10.0-327.3.1.el7.x86_64 on an x86_64
centos_chroot login: root
Password:
[root@centos_chroot ~]#
[root@localhost ~]# machinectl poweroff centos_chroot