Skip to content

Instantly share code, notes, and snippets.

@ncode
Created December 6, 2011 17:57
Show Gist options
  • Save ncode/1439184 to your computer and use it in GitHub Desktop.
Save ncode/1439184 to your computer and use it in GitHub Desktop.
lxc.utsname = takkun
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.veth.pair = br0_vm0
lxc.network.hwaddr = 4a:59:43:49:79:bf
lxc.network.ipv4 = 192.168.66.2/24
lxc.network.name = eth0
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /var/lib/lxc/vm0/rootfs
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
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
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
# mounts point
lxc.mount.entry=proc /var/lib/lxc/vm0/rootfs/proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry=devpts /var/lib/lxc/vm0/rootfs/dev/pts devpts defaults 0 0
lxc.mount.entry=sysfs /var/lib/lxc/vm0/rootfs/sys sysfs defaults 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment