[lxc-users] lxc config get not returning results

Stéphane Graber stgraber at ubuntu.com
Thu Aug 6 21:12:30 UTC 2015


On Thu, Aug 06, 2015 at 11:51:23PM +0300, Jony Opipo wrote:
> Hi
> 
> I'm trying to query container device settings using lxc config get, but
> can't get any results.
> 
> root at ubuntu:~# lxc config show test
> name: test
> profiles:
> - default
> config:
>   volatile.baseImage:
> 6959b3aadeda4dafb8bdc90a1e8b0d7ca4072c8ab78346b9358a54871be250b6
>   volatile.eth0.hwaddr: 00:16:3e:d5:0f:cb
> devices:
>   eth0:
>     hwaddr: 00:16:3e:d5:0f:cb
>     nictype: bridged
>     parent: lxcbr0
>     type: nic
> ephemeral: false
> 
> root at ubuntu:~# lxc config get test devices.eth0.hwaddr
> devices.eth0.hwaddr:
> 
> Do I have a syntax error or is this even possible?
> 
> Thanks

Devices aren't configuration entries. Use:

    lxc config device show abc

Or to pull the MAC address from the volatile config space, use:

    lxc config get abc volatile.eth0.hwaddr


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150806/74bae877/attachment.sig>


More information about the lxc-users mailing list