Hi,
maybe I have an understanding issue and hopefully somebody could help to understand.
I have LXD 2.16 running on a Ubuntu 16.04.3 server. My default profile has following config:
config:
environment.http_proxy: ""
user.network_mode: ""
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: lxd
type: disk
name: default
used_by:
- /1.0/containers/haproxy
Following the instructions on https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/ I want to set the max size for the container haproxy to 10GB by entering
lxc config device set haproxy root size 10GB.
Unfortunately the response error:
The device doesn't exist
lxc config show haproxy shows me following:
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 16.04 LTS amd64 (release) (20170811)
image.label: release
image.os: ubuntu
image.release: xenial
image.serial: "20170811"
image.version: "16.04"
volatile.base_image: 0ebf21fb1fef8a9230572cd68c68383018331f3f7865ded0ef86b437e5978370
volatile.eth0.hwaddr: 00:16:3e:fe:0f:76
volatile.idmap.base: "0"
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.power: RUNNING
devices: {}
ephemeral: false
profiles:
- default
stateful: false
description: ""
So there is no device listed. I expected to find the devices eth0 and root but the array is empty. What did I understand wrong or what might be the issue?
Thanx!
Andy