meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ubiquiti:controller:lxc [2021/03/20 22:13] – niziak | ubiquiti:controller:lxc [2021/03/20 22:37] (current) – niziak | ||
|---|---|---|---|
| Line 125: | Line 125: | ||
| ... | ... | ||
| </ | </ | ||
| + | |||
| + | Solution for unprivileged containers: | ||
| + | <code bash> | ||
| + | systemd-run --user --scope -p " | ||
| + | </ | ||
| + | |||
| Reason: [[https:// | Reason: [[https:// | ||
| Problem solved in LXC v4.0.2-1~1. | Problem solved in LXC v4.0.2-1~1. | ||
| - | |||
| Solution: <code bash> | Solution: <code bash> | ||
| + | |||
| + | |||
| Workaround 1: Add to container config: | Workaround 1: Add to container config: | ||
| Line 141: | Line 148: | ||
| lxc.init.cmd = /sbin/init systemd.unified_cgroup_hierarchy | lxc.init.cmd = /sbin/init systemd.unified_cgroup_hierarchy | ||
| + | |||
| Line 148: | Line 156: | ||
| Set kernel commandline option: systemd.unified_cgroup_hierarchy=0 to retain the old default and lxc-start start container. | Set kernel commandline option: systemd.unified_cgroup_hierarchy=0 to retain the old default and lxc-start start container. | ||
| + | Workaround 3: | ||
| + | <code bash> | ||
| + | mount -o remount,rw / | ||
| + | mkdir / | ||
| + | mount -t cgroup devices -o devices / | ||
| + | mount -o remount,ro / | ||
| + | </ | ||