Skip to content

Instantly share code, notes, and snippets.

@gleicon
Created May 15, 2012 20:46
Show Gist options
  • Save gleicon/2705016 to your computer and use it in GitHub Desktop.
Save gleicon/2705016 to your computer and use it in GitHub Desktop.
lxc general config
apt-get install lxc
lxc-create -n meh -t debian (takes some time)
echo "none /sys/fs/cgroup/ cgroup rw,cpuset,cpu,cpuacct,memory,devices,freezer 0 2" >> /etc/fstab
mount -a
lxc-start -n meh -d
lxc-list -n meh
lxc-cgroup -n meh cpu.shares
lxc-cgroup -n meh memory.limit_in_bytes
lxc-info -n meh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment