User Tools

Site Tools


general:linux:systemd_nspawn_containers

To allow reading folder from host

Add file with the machines name like so: /etc/systemd/nspawn/<name>.nspawn

[Files]
Bind=/home

[Exec]
ResolvConf=copy-host
#PrivateUsers=false

#Needed when a .nspawn file is used (since bullseye https://github.com/systemd/systemd/issues/12313)
Capability=CAP_NET_ADMIN
general/linux/systemd_nspawn_containers.txt · Last modified: 2021/08/16 15:28 by