Table of Contents

LXD CLI Commands Cheet Sheat

LXD Resource control

List

lxc config set CONTAINER limits.cpus 2
lxc config set CONTAINER limits.memory 512M
lxc config device set CONTAINER root size 20GB Storage Backend must be ZFS or btrfs.
lxc config device set my-container limits.read 30MB
lxc config device set my-container limits.write 10MB
lxc config device set my-container limits.read 20Iops
lxc config device set my-container limits.write 10Iops
lxc profile device set default eth0 limits.ingress 100Mbit
lxc profile device set default eth0 limits.egress 100Mbit


Reference