[lxc-users] lxc info - how to show connected network interface
Ron Kelley
rkelleyrtp at gmail.com
Wed Apr 26 18:41:56 UTC 2017
Thanks Stéphane - really appreciate the fast reply!
-Ron
> On Apr 26, 2017, at 2:40 PM, Stéphane Graber <stgraber at ubuntu.com> wrote:
>
> Ah yeah, you can do that or even "lxc config device list" if all you
> want to do is validate the LXD config rather than what's actually in the
> container's namespace.
>
> On Wed, Apr 26, 2017 at 02:35:10PM -0400, Ron Kelley wrote:
>> As soon as I get “send” I found the command: lxc config show <container_name>
>>
>> Sorry for the noise…
>>
>>
>>
>>> On Apr 26, 2017, at 2:33 PM, Ron Kelley <rkelleyrtp at gmail.com> wrote:
>>>
>>> Running LXD 2.12 on a couple of Ubuntu 17.04 servers with a local “manager” node and a remote worker node. I started a remote CentOS 6 container on the worker node then attached a network via "lxc network attach eth1 LXD-Server-01:centos6-testing” (the default profile does not have a network interface configured). To verify the new interface was attached properly, I ran "lxc info --verbose LXD-Server-01:centos6-testing” but the network details are not listed. Here is the output:
>>>
>>> ---------------------------------------------------
>>> Name: centos6-testing
>>> Remote: https://10.1.2.3:8443
>>> Architecture: x86_64
>>> Created: 2017/04/26 18:12 UTC
>>> Status: Running
>>> Type: persistent
>>> Profiles: default
>>> Pid: 1878
>>> Ips:
>>> lo: inet 127.0.0.1
>>> lo: inet6 ::1
>>> Resources:
>>> Processes: 6
>>> CPU usage:
>>> CPU usage (in seconds): 0
>>> Memory usage:
>>> Memory (current): 13.57MB
>>> Memory (peak): 14.88MB
>>> Network usage:
>>> eth0:
>>> Bytes received: 0B
>>> Bytes sent: 0B
>>> Packets received: 0
>>> Packets sent: 0
>>> lo:
>>> Bytes received: 0B
>>> Bytes sent: 0B
>>> Packets received: 0
>>> Packets sent: 0
>>> ---------------------------------------------------
>>>
>>> Is there any way to verify which network is currently attached to the container?
>>>
>>> Thanks.
>>>
>>> -Ron
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>
> --
> 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
More information about the lxc-users
mailing list