[lxc-users] lxc config get not returning results

Jony Opipo reversecipher at gmail.com
Fri Aug 7 08:13:16 UTC 2015


Ok, I did not notice the device show -option.

2015-08-07 0:12 GMT+03:00 Stéphane Graber <stgraber at ubuntu.com>:

> 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
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150807/a33c2dc4/attachment.html>


More information about the lxc-users mailing list