Skip to content

Instantly share code, notes, and snippets.

@NULLx76
Last active January 11, 2021 17:37
Show Gist options
  • Save NULLx76/f7e661f2f26e01c402b06533b7ffc29e to your computer and use it in GitHub Desktop.
Save NULLx76/f7e661f2f26e01c402b06533b7ffc29e to your computer and use it in GitHub Desktop.
Fix systemd in LXC

Step 1

create config dir for systemd-networkd:

mkdir -p /etc/systemd/system/systemd-networkd.service.d/

Step 2

Add the following content to /etc/systemd/system/systemd-networkd.service.d/override.conf

[Service]
BindReadOnlyPaths= /sys /proc

Step 3

Reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment