(no title)
letters90 | 1 year ago
A debian aarch64 vm on kvm starting a systemd-nspawn for an unpacked raspberry pi 3 iso.
It works way too well judging by how ridiculous it was.
Still saved me a few days instead of setting things up myself.
I actually liked how easy it is to spin up nspawn as a systemd service
[Unit]
Description=Raspberry Image Machine
After=multi-user.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/systemd-nspawn -D /mnt/ /sbin/init
[Install]
WantedBy=multi-user.target
vaylian|1 year ago
See man 5 systemd.nspawn
And many command like systemctl and journalctl accept the -M parameter, which allows you to query systemd units inside your nspawn-containers from the host.
edit: The article actually explains all of these things in more detail.
i_v|1 year ago
Vilian|1 year ago
Imustaskforhelp|1 year ago
I am wondering though? Is there something like systemd-nspawn that doesn't require root?
vlowrian|1 year ago
derobert|1 year ago
Until then, I'm not sure if there is anything lightweight. If you don't need lightweight, there is Podman.
1oooqooq|1 year ago
docker and the rootless nonsense is just root daemons and suid.
...would never have believed marketing lies would reach linux tools if anyone told me this before 2018.