lxc: Reorder and better document template container configuration.
[matthijs/servers/tika.git] / var / lib / lxc / template / config
1 # Hostname
2 lxc.utsname = template
3
4 # Use this root filesystem
5 lxc.rootfs = /var/lib/lxc/template/rootfs
6
7 # Log console output
8 lxc.console = /var/log/lxc/template.lxc
9
10 # The number of ttys available (shouldn't be less than the getty's
11 # configured in the inittab).
12 lxc.tty = 4
13
14 # Use private pts for the container
15 lxc.pts = 256
16
17 # Deny all devices, except the following
18 lxc.cgroup.devices.deny = a
19 # /dev/null
20 lxc.cgroup.devices.allow = c 1:3 rwm
21 # /dev/zero
22 lxc.cgroup.devices.allow = c 1:5 rwm
23 # /dev/console
24 lxc.cgroup.devices.allow = c 5:1 rwm
25 # /dev/tty
26 lxc.cgroup.devices.allow = c 5:0 rwm
27 # /dev/tty0
28 lxc.cgroup.devices.allow = c 4:0 rwm
29 # /dev/tty1
30 lxc.cgroup.devices.allow = c 4:1 rwm
31 # /dev/{,u}random
32 lxc.cgroup.devices.allow = c 1:9 rwm
33 lxc.cgroup.devices.allow = c 1:8 rwm
34 # /dev/pts/0 - /dev/pts/255
35 lxc.cgroup.devices.allow = c 136:* rwm
36 # /dev/ptmx
37 lxc.cgroup.devices.allow = c 5:2 rwm
38 # rtc
39 lxc.cgroup.devices.allow = c 254:0 rwm
40
41 # mounts point
42 lxc.mount.entry=proc /var/lib/lxc/template/rootfs/proc proc nodev,noexec,nosuid 0 0
43 lxc.mount.entry=sysfs /var/lib/lxc/template/rootfs/sys sysfs defaults  0 0