<div dir="ltr">Ok, I did not notice the device show -option.<br><div class="gmail_extra"><br><div class="gmail_quote">2015-08-07 0:12 GMT+03:00 Stéphane Graber <span dir="ltr"><<a href="mailto:stgraber@ubuntu.com" target="_blank">stgraber@ubuntu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Aug 06, 2015 at 11:51:23PM +0300, Jony Opipo wrote:<br>
> Hi<br>
><br>
> I'm trying to query container device settings using lxc config get, but<br>
> can't get any results.<br>
><br>
> root@ubuntu:~# lxc config show test<br>
> name: test<br>
> profiles:<br>
> - default<br>
> config:<br>
>   volatile.baseImage:<br>
> 6959b3aadeda4dafb8bdc90a1e8b0d7ca4072c8ab78346b9358a54871be250b6<br>
>   volatile.eth0.hwaddr: 00:16:3e:d5:0f:cb<br>
> devices:<br>
>   eth0:<br>
>     hwaddr: 00:16:3e:d5:0f:cb<br>
>     nictype: bridged<br>
>     parent: lxcbr0<br>
>     type: nic<br>
> ephemeral: false<br>
><br>
> root@ubuntu:~# lxc config get test devices.eth0.hwaddr<br>
> devices.eth0.hwaddr:<br>
><br>
> Do I have a syntax error or is this even possible?<br>
><br>
> Thanks<br>
<br>
</div></div>Devices aren't configuration entries. Use:<br>
<br>
    lxc config device show abc<br>
<br>
Or to pull the MAC address from the volatile config space, use:<br>
<br>
    lxc config get abc volatile.eth0.hwaddr<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Stéphane Graber<br>
Ubuntu developer<br>
<a href="http://www.ubuntu.com" rel="noreferrer" target="_blank">http://www.ubuntu.com</a><br>
</font></span><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div>