我正在尝试在Linux文件系统的完整副本上使用systemd-nspawn:
我把我的文件系统,我的文件系统,exlcuding / opt:
cd / tar -cvpzf /opt/test/rootfs.tar --exclude=/opt/ --one-file-system /
我把它解压到/ opt / test /下:
cd /tar/test/ tar -xvf rootfs.tar
当我尝试systemd-nspawn时,出现以下错误:
root@testbox:/opt/test# systemd-nspawn -D . Spawning container test on /opt/test. Press ^] three times within 1s to kill container. Container test failed with error code 1.
有什么build议么? 或者有没有办法让我更详细地了解这个错误?
在容器内部安装systemd和dbus为我工作。