-lxc.tty = 4
-lxc.pts = 1024
+# Hostname
+lxc.utsname = template
+
+# Use this root filesystem
lxc.rootfs = /var/lib/lxc/template/rootfs
+
+# Log console output
+lxc.console = /var/log/lxc/template.lxc
+
+# The number of ttys available (shouldn't be less than the getty's
+# configured in the inittab).
+lxc.tty = 4
+
+# Use private pts for the container
+lxc.pts = 256
+
+# Deny all devices, except the following
lxc.cgroup.devices.deny = a
-# /dev/null and zero
+# /dev/null
lxc.cgroup.devices.allow = c 1:3 rwm
+# /dev/zero
lxc.cgroup.devices.allow = c 1:5 rwm
-# consoles
+# /dev/console
lxc.cgroup.devices.allow = c 5:1 rwm
+# /dev/tty
lxc.cgroup.devices.allow = c 5:0 rwm
+# /dev/tty0
lxc.cgroup.devices.allow = c 4:0 rwm
+# /dev/tty1
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
+# /dev/pts/0 - /dev/pts/255
lxc.cgroup.devices.allow = c 136:* rwm
+# /dev/ptmx
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm