On Running systemd-nspawn Containers (2022)
benjamintoll.com
On Running systemd-nspawn Containers (2022)
1–10 of 59 posts
Re: On Running systemd-nspawn Containers (2022)
#2Re: On Running systemd-nspawn Containers (2022)
#3A 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.targetRe: On Running systemd-nspawn Containers (2022)
#4I used nspawn to get a system running in the most ridiculous way. 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…
I am wondering though? Is there something like systemd-nspawn that doesn't require root?
Re: On Running systemd-nspawn Containers (2022)
#5I used nspawn to get a system running in the most ridiculous way. 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…
Re: On Running systemd-nspawn Containers (2022)
#6I used nspawn to get a system running in the most ridiculous way. 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…
hmm this is very interesting. I am wondering though? Is there something like systemd-nspawn that doesn't require root?
Until then, I'm not sure if there is anything lightweight. If you don't need lightweight, there is Podman.
Re: On Running systemd-nspawn Containers (2022)
#7Re: On Running systemd-nspawn Containers (2022)
#8> Hopefully, this article has disabused some of that notion.
If that was the goal, it seems terribly complicated when compared with podman.
Re: On Running systemd-nspawn Containers (2022)
#9Surprisingly simple and low footprint solution and genuinely pleasant to work with, since it is very similiar to managing a Systemd service.
Re: On Running systemd-nspawn Containers (2022)
#10I used nspawn to get a system running in the most ridiculous way. 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…
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.