Skip to content

Instantly share code, notes, and snippets.

@nibalizer
Created May 8, 2012 16:32
Show Gist options
  • Save nibalizer/2637023 to your computer and use it in GitHub Desktop.
Save nibalizer/2637023 to your computer and use it in GitHub Desktop.
lxc description
lxc.utsname = foo
lxc.mount = $CONTAINER_FSTAB
lxc.rootfs = $CONTAINER_ROOTFS
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = d2:19:bd:0c:29:bc
lxc.network.ipv4 = 0.0.0.0
lxc.network.name = eth0
lxc.cgroup.devices.deny = a # Deny all access to devices
lxc.cgroup.devices.allow = c 4:5 rwm # /dev/tty1
lxc.cgroup.devices.allow = c 4:6 rwm # /dev/tty2
lxc.tty = 1
#lxc.pseudo = 1024
lxc.cgroup.devices.deny = a # Deny all access to devices
lxc.cgroup.devices.allow = c 1:3 rwm # dev/null
lxc.cgroup.devices.allow = c 1:5 rwm # dev/zero
lxc.cgroup.devices.allow = c 5:1 rwm # dev/console
lxc.cgroup.devices.allow = c 5:0 rwm # dev/tty
lxc.cgroup.devices.allow = c 4:5 rwm # dev/tty5
lxc.cgroup.devices.allow = c 4:6 rwm # dev/tty6
lxc.cgroup.devices.allow = c 1:9 rwm # dev/urandom
lxc.cgroup.devices.allow = c 1:8 rwm # dev/random
lxc.cgroup.devices.allow = c 136:* rwm # dev/pts/*
lxc.cgroup.devices.allow = c 5:2 rwm # dev/pts/ptmx
# No idea what this is .. dev/bsg/0:0:0:0 ???
lxc.cgroup.devices.allow = c 254:0 rwm
lxc.mount = /media/buttery/foo.cat.pdx.edu/etc/fstab
lxc.rootfs = /media/buttery/foo.cat.pdx.edu/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment