Problem getting device list from lxc config device show

lxc command line is having problem showing container information"

Name: matrix-server
Location: lxd-clutser-main
Remote: unix://
Architecture: x86_64
Created: 2018/12/06 06:50 UTC
Status: Running
Type: persistent
Profiles: default
Pid: 4849
  eth0:	inet
  eth0:	inet6	fd68:a08:802:8:216:3eff:fef6:dc91
  eth0:	inet6	fe80::216:3eff:fef6:dc91
  lo:	inet
  lo:	inet6	::1
  Processes: 47
  CPU usage:
    CPU usage (in seconds): 23585
  Memory usage:
    Memory (current): 1.10GB
    Memory (peak): 1.15GB
  Network usage:
      Bytes received: 185.51MB
      Bytes sent: 15.44MB
      Packets received: 409323
      Packets sent: 154270
      Bytes received: 307.91kB
      Bytes sent: 307.91kB
      Packets received: 3890
      Packets sent: 3890
      Bytes received: 0B
      Bytes sent: 0B
      Packets received: 0
      Packets sent: 0

But when I do lxc config device info it shows empty string:

ubuntu@lxd-cluster-main:~$ lxc config device show matrix-server

Not sure whats the problem.

The problem is that you’re inheriting those devices from a profile so they’re not directly part of the container’s configuration. Look at lxc config show --expanded matrix-server which will show you the entire configuration with all the bits inherited from profiles.

1 Like