diff --git a/docs/Howtos/HowtoLXD.md b/docs/Howtos/HowtoLXD.md index 56c3f5f..d64b067 100644 --- a/docs/Howtos/HowtoLXD.md +++ b/docs/Howtos/HowtoLXD.md @@ -6,9 +6,19 @@ $ lxc info $ lxc config edit $ lxc config show $ lxc exec bash +# Some limits $ lxc config set limits.memory 512MB $ lxc config set limits.cpu 2 +$ lxc config set limits.cpu.allowance 50% +$ lxc config set limits.memory.swap false +$ lxc config device set root limits.read 30MB +$ lxc config device set root.limits.write 10MB +$ lxc config device set root limits.read 20Iops +$ lxc config device set root limits.write 10Iops $ lxc config device set root size 20GB +$ lxc config device override root size=20GB +$ lxc profile device set default eth0 limits.ingress 100Mbit +$ lxc profile device set default eth0 limits.egress 100Mbit $ lxc launch images:debian/11 $ lxc config set environment.LC_ALL=en_US.UTF-8 $ lxc list