User Tools

Site Tools


general:linux:systemd_nspawn_containers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
general:linux:systemd_nspawn_containers [2024/06/14 06:23] – [Create container with debootstrap] sunkangeneral:linux:systemd_nspawn_containers [2024/10/22 10:47] (current) sunkan
Line 17: Line 17:
 ====== Create container with debootstrap ====== ====== Create container with debootstrap ======
 <code> <code>
-debootstrap --include=systemd,dbus bookworm /var/lib/machines/container_name+debootstrap --include=systemd,dbus,systemd-container bookworm /var/lib/machines/container_name
 </code> </code>
  
Line 29: Line 29:
 machinectl shell container_name machinectl shell container_name
 </code> </code>
 +
 +If started using machinectl, then enable and start systemd-networkd in the container to get the networking up and running.
 +<code>
 +systemctl --now enable systemd-networkd
 +</code>
 +
 +====== Add security updates source ======
 +Example for bookworm, also add contrib etc. if you need them.
 +<code>
 +deb http://security.debian.org/ bookworm-security main
 +</code>
 +
general/linux/systemd_nspawn_containers.1718346222.txt.gz · Last modified: 2024/06/14 06:23 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki