[lxc-users] Containers start without networking

Joris Michaux joris.michaux at france-pari.org
Wed Oct 21 14:25:34 UTC 2015


Hello,

I've just upgraded it, and no change... I'm a little bit lost... Here
some informations :

#HOST
root at myhost:~# dpkg -l lxc*
ii  lxc                     1:1.0.6-6        amd64            Linux
Containers userspace tools

#LXC
root at mylxc:/home/adminsnc# dmesg
[13112727.630519] device veth3BW7MM entered promiscuous mode
[13112727.632023] ADDRCONF(NETDEV_UP): veth3BW7MM: link is not ready
[13112727.942063] ADDRCONF(NETDEV_CHANGE): veth3BW7MM: link becomes ready
[13112727.942116] br1: port 24(veth3BW7MM) entering forwarding state
[13112727.942125] br1: port 24(veth3BW7MM) entering forwarding state
[13112736.957697] br1: port 24(veth3BW7MM) entering forwarding state
[13112738.133433] veth3BW7MM: no IPv6 routers present
[13112738.573338] eth0: no IPv6 routers present
[13112750.009150] br1: port 24(veth3BW7MM) entering forwarding state
[13112750.038349] br1: port 24(veth3BW7MM) entering forwarding state
[13112750.038357] br1: port 24(veth3BW7MM) entering forwarding state
[13112759.064814] br1: port 24(veth3BW7MM) entering forwarding state
[13112760.960398] eth0: no IPv6 routers present
[13112762.016625] br1: port 24(veth3BW7MM) entering forwarding state
[13112763.021544] br1: port 24(veth3BW7MM) entering disabled state
[13112763.025654] device veth3BW7MM left promiscuous mode
[13112763.025657] br1: port 24(veth3BW7MM) entering disabled state
[13112765.466955] device veth4WXTUM entered promiscuous mode
[13112765.467804] ADDRCONF(NETDEV_UP): veth4WXTUM: link is not ready
[13112765.503632] ADDRCONF(NETDEV_CHANGE): veth4WXTUM: link becomes ready
[13112765.503664] br1: port 24(veth4WXTUM) entering forwarding state
[13112765.503668] br1: port 24(veth4WXTUM) entering forwarding state
[13112774.517412] br1: port 24(veth4WXTUM) entering forwarding state
[13112775.669155] eth0: no IPv6 routers present
[16329189.128712] device vethVTAMO8 entered promiscuous mode
[16329189.129537] ADDRCONF(NETDEV_UP): vethVTAMO8: link is not ready
[16329189.291730] ADDRCONF(NETDEV_CHANGE): vethVTAMO8: link becomes ready
[16329189.291758] br1: port 25(vethVTAMO8) entering forwarding state
[16329189.291764] br1: port 25(vethVTAMO8) entering forwarding state
[16329198.311147] br1: port 25(vethVTAMO8) entering forwarding state
[16329199.590855] eth0: no IPv6 routers present
[16329199.766816] vethVTAMO8: no IPv6 routers present

root at mylxc:/home/adminsnc# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1e:0a:d8:33:02
          inet6 addr: fe80::21e:aff:fed8:3302/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6654 (6.4 KiB)  TX bytes:460 (460.0 B)

root at mylxc:/home/adminsnc# service networking restart
done.

root at mylxc:/home/adminsnc# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1e:0a:d8:33:02
          inet addr:10.111.0.103  Bcast:10.111.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:aff:fed8:3302/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10198 (9.9 KiB)  TX bytes:930 (930.0 B)

Regards,


On 23/09/2015 09:29, Xavier Gendre wrote:
> Hello,
> 
> I never encounter this problem with my containers. However, you should
> upgrade LXC to a more recent version to see if the problem persists.
> 
> According to the version you mention, i assume that you run LXC in a
> Debian Wheezy (oldstable). If you do not plan to upgrade to Debian
> Jessie (stable), you should use the LXC package in the Wheezy backports.
> This version is 1:1.0.6-6+deb8u1~bpo70+1 and is more up-to-date.
> 
> Friendly,
> Xavier
> 
> Le 23/09/2015 08:59, Joris Michaux a écrit :
>> Hello,
>>
>> After the first boot of my hosts, the containers are auto-starting
>> without networking. I have to lxc-stop and lxc-start (without the -d) to
>> "service networking restart" and all goes right.
>>
>> LXC version : 0.8.0~rc1-8+deb7
>>
>> Regards,
>>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


-- 
*Joris MICHAUX*
Ingénieur systèmes et réseaux
*Skype:* h4mm3r.toxyc
----
425, rue Jean Rostand
31670 Labège, France
*Tel:* +33 (0)5 82 08 07 31
www.france-pari.fr - www.sportnco.com
----
*Social:*
[facebook]
https://www.facebook.com/pages/France-Pari/
[twitter]
https://twitter.com/FrancePari
[linkedin]
http://www.linkedin.com/company/france-pari
[scoop.it]
http://www.scoop.it/t/paris-sportifs-1

Rencontrez-nous au salon EIG à berlin, stand #525* du 20 au 23 octobre
Meet us at *EIG in Berlin, stand #525*: 20-23 October


More information about the lxc-users mailing list