Skip to content

Instantly share code, notes, and snippets.

@recampbell
Created January 7, 2011 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recampbell/ef745c03d5502e601b2b to your computer and use it in GitHub Desktop.
Save recampbell/ef745c03d5502e601b2b to your computer and use it in GitHub Desktop.
lxc.conf
lxc.utsname = default
lxc.tty = 4
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = virbr0
lxc.network.name = eth0
lxc.network.ipv4 = 192.168.122.2
lxc.network.mtu = 1500
lxc.rootfs = /var/lib/lxc/rootfs/default
lxc.mount = /var/lib/lxc/default/mount.conf
lxc.mount.entry = /tmp/foo /var/lib/lxc/rootfs/default/mnt/master2 none bind 0 0
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
# /dev/pts/* - pts namespaces are "coming soon"
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment