Created
May 15, 2012 20:46
-
-
Save gleicon/2705016 to your computer and use it in GitHub Desktop.
lxc general config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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