I am following Stephane Graber’s tutorial series and I want to limit the throughput for eth0 on one container.
The example in the tutorial is by altering the profile: https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/ (under Network I/O).
How can I do it for that container only without modifying a profile? What I’ve tried:
$ lxc config device set above-basilisk eth0 limits.ingress 25mbit
error: The device doesn't exist
It does exist though:
$ lxc config show above-basilisk --expanded
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 16.04 LTS amd64 (release) (20180703)
image.label: release
image.os: ubuntu
image.release: xenial
image.serial: "20180703"
image.version: "16.04"
volatile.base_image: f2228450779fee27020d6024af587379b8f51062c32a335327f2b028c924bfa1
volatile.eth0.hwaddr: 00:16:3e:b2:b9:78
volatile.eth0.name: eth0
volatile.idmap.base: "0"
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":65536}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":165536,"Nsid":0,"Maprange":65536}]'
volatile.last_state.power: RUNNING
devices:
eth0:
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
Why am I unable to configure it then?