cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:container:lxd:resource-control.html



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




middleware/container/lxd/resource-control.html.txt · Last modified: 2020/03/25 by admin

Page Tools