Instance Config
Set
lxc config set <instance_name> <option_key>=<option_value> <option_key>=<option_value> ...
Display instance configuration
# "--expanded" 會 show profile 的 default setting
lxc config show <instance_name> --expanded
Edit
lxc config edit <instance_name>
Example
Memory
# "MiB" 係有分大小階的
lxc config set my-container limits.memory=512MiB
# The higher this is set, the least likely the instance is to be swapped to disk
limits.memory.swap.priority 0~10(max.)(default)
Autostart
lxc config set {container-name} boot.autostart {true|false}
# Default: 0. 數值愈大愈先 start
lxc config set {container-name} boot.autostart.priority integer
# N 秒後再 start 下一個 Container
lxc config set {container-name} boot.autostart.delay integer
CPU
# 0,1,2,3 / 0-3
limits.cpu
# CPU scheduling priority. 0~10(max.)(default)
limits.cpu.priority