| 1 |
# This derives from the global common config |
| 2 |
lxc.include = @LXCTEMPLATECONFIG@/common.conf |
| 3 |
|
| 4 |
# Gentoo common default configuration |
| 5 |
# This is the most feature-full container configuration |
| 6 |
# But security is not the goal. |
| 7 |
# Looking for more security, see gentoo.moresecure.conf |
| 8 |
|
| 9 |
# Doesn't support consoles in /dev/lxc/ |
| 10 |
lxc.tty.dir = |
| 11 |
|
| 12 |
# Extra cgroup device access |
| 13 |
## rtc |
| 14 |
lxc.cgroup2.devices.allow = c 254:0 rm |
| 15 |
## tun |
| 16 |
lxc.cgroup2.devices.allow = c 10:200 rwm |
| 17 |
## hpet |
| 18 |
lxc.cgroup2.devices.allow = c 10:228 rwm |
| 19 |
## kvm |
| 20 |
lxc.cgroup2.devices.allow = c 10:232 rwm |
| 21 |
## To use loop devices, copy the following line to the container's |
| 22 |
## configuration file (uncommented). |
| 23 |
#lxc.cgroup2.devices.allow = b 7:* rwm |
| 24 |
|
| 25 |
# /dev/shm needs to be mounted as tmpfs. It's needed by python (bug #496328) |
| 26 |
# and possibly other packages. |
| 27 |
lxc.mount.entry = none dev/shm tmpfs rw,nosuid,nodev,create=dir |