Containers systemd-nspawn

=Installation= The first step is to install the package indicated in the heading of the virtualization system: Second &mdash; you will need a minimal system image suitable for container-type virtual environments (LXC, Docker, etc.), which can be taken from the repository. At the time of writing, this one looked more attractive than the others.

Deploy a previously downloaded tarball into a container (let's say the first one is called spawn-1 ): Or you can deploy directly from the Internet without downloading:

=Launch=

For example, for a container for the Hasher &mdash; content /etc/systemd/nspawn/spawn-1.nspawn : Let's start a new container, at the same time enabling it to run every time the computer boots: Let's check if everything worked: Works. Let's go local:

=Network=

Build a bridge from the host ve-<имя контейнера> in a file  (choose the address and network at your discretion, as long as it does not intersect with those already available in the system): And from the side of the container we will accept it on the interface host0 as a file : Restarting systemd-networkd first on the host, and then in the container, we will see on the host: And in a container:

=Trouble Shooting=
 * Solution: configure Polkit Policies &mdash; |Using machinectl without root permissions

Контейнеры_systemd-nspawn