[lxc-users] "reboot" commands shuts container down

Fırat KÜÇÜK firatkucuk at gmail.com
Fri Jun 12 12:44:06 UTC 2015


This is my config:

lxc.include                      = /usr/share/lxc/config/ubuntu.common.conf
lxc.rootfs                       = /var/lib/lxc/my-container/rootfs
lxc.utsname                      = my-container
lxc.arch                         = amd64
lxc.network.type                 = veth
lxc.network.veth.pair            = veth-my-cont
lxc.network.link                 = br0
lxc.network.flags                = up
lxc.network.hwaddr               = 00:16:3e:b7:9e:4e
lxc.start.auto                   = 1
lxc.cgroup.memory.limit_in_bytes = 512M
lxc.cgroup.cpu.shares            = 50


and this is the log:

      lxc-start 1434112920.249 ERROR    lxc_conf -
conf.c:instantiate_veth:2631 - failed to create veth pair (veth-my-cont and
veth911AGG): File exists
      lxc-start 1434112920.270 ERROR    lxc_conf -
conf.c:lxc_create_network:2943 - failed to create netdev
      lxc-start 1434112920.270 ERROR    lxc_start - start.c:lxc_spawn:914 -
failed to create the network
      lxc-start 1434112920.270 ERROR    lxc_start -
start.c:__lxc_start:1164 - failed to spawn 'my-container'


2015-06-12 15:40 GMT+03:00 Fırat KÜÇÜK <firatkucuk at gmail.com>:

> I tried. The problem is persistent veth name as you sad.
>
> 2015-06-12 15:12 GMT+03:00 Fırat KÜÇÜK <firatkucuk at gmail.com>:
>
>>
>> Version:
>> 1.1.2-0ubuntu3~ubuntu14.04.1~ppa1
>>
>> DISTRIB_ID=Ubuntu
>> DISTRIB_RELEASE=14.04
>> DISTRIB_CODENAME=trusty
>> DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
>>
>> Yes i persistent veth name. But no duplicate one.
>>
>>
>>
>>
>> 2015-06-12 12:16 GMT+03:00 Fajar A. Nugraha <list at fajar.net>:
>>
>>> On Fri, Jun 12, 2015 at 3:57 PM, Fırat KÜÇÜK <firatkucuk at gmail.com>
>>> wrote:
>>> >
>>> > Hi,
>>> >
>>> > when i reboot the container it shuts down. What should i do?
>>>
>>> (1) which versions (lxc, os, etc)?
>>>
>>> IIRC some old version has that bug. 1.1.x should be OK
>>>
>>> (2) Did you use persistent veth name (lxc.network.veth.pair)? If yes,
>>> there should be a log somewhere (e.g. /var/log/lxc) mentioning
>>> duplicate names. Does this happen to you?
>>>
>>> --
>>> Fajar
>>> _______________________________________________
>>> lxc-users mailing list
>>> lxc-users at lists.linuxcontainers.org
>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>>
>>
>>
>> --
>> FIRAT KÜÇÜK
>>
>
>
>
> --
> FIRAT KÜÇÜK
>



-- 
FIRAT KÜÇÜK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150612/f1c9e734/attachment.html>


More information about the lxc-users mailing list