| 1 |
# This derives from the global common config |
| 2 |
lxc.include = @LXCTEMPLATECONFIG@/common.conf |
| 3 |
|
| 4 |
# Doesn't support consoles in /dev/lxc/ |
| 5 |
lxc.tty.dir = |
| 6 |
|
| 7 |
# When using LXC with apparmor, the container will be confined by default. |
| 8 |
# If you wish for it to instead run unconfined, copy the following line |
| 9 |
# (uncommented) to the container's configuration file. |
| 10 |
#lxc.apparmor.profile = unconfined |
| 11 |
|
| 12 |
# If you wish to allow mounting block filesystems, then use the following |
| 13 |
# line instead, and make sure to grant access to the block device and/or loop |
| 14 |
# devices below in lxc.cgroup2.devices.allow. |
| 15 |
#lxc.apparmor.profile = lxc-container-default-with-mounting |
| 16 |
|
| 17 |
# Extra cgroup device access |
| 18 |
## rtc |
| 19 |
lxc.cgroup2.devices.allow = c 254:0 rm |
| 20 |
## tun |
| 21 |
lxc.cgroup2.devices.allow = c 10:200 rwm |
| 22 |
## hpet |
| 23 |
lxc.cgroup2.devices.allow = c 10:228 rwm |
| 24 |
## kvm |
| 25 |
lxc.cgroup2.devices.allow = c 10:232 rwm |
| 26 |
## To use loop devices, copy the following line to the container's |
| 27 |
## configuration file (uncommented). |
| 28 |
#lxc.cgroup2.devices.allow = b 7:* rwm |