<div dir="ltr"><div>This is my config:<br><br><span style="font-family:monospace,monospace">lxc.include                      = /usr/share/lxc/config/ubuntu.common.conf<br>lxc.rootfs                       = /var/lib/lxc/my-container/rootfs<br>lxc.utsname                      = my-container<br>lxc.arch                         = amd64<br>lxc.network.type                 = veth<br>lxc.network.veth.pair            = veth-my-cont<br>lxc.network.link                 = br0<br>lxc.network.flags                = up<br>lxc.network.hwaddr               = 00:16:3e:b7:9e:4e<br>lxc.start.auto                   = 1<br>lxc.cgroup.memory.limit_in_bytes = 512M<br>lxc.cgroup.cpu.shares            = 50</span><br><br><br></div>and this is the log:<br><br>      lxc-start 1434112920.249 ERROR    lxc_conf - conf.c:instantiate_veth:2631 - failed to create veth pair (veth-my-cont and veth911AGG): File exists<br>      lxc-start 1434112920.270 ERROR    lxc_conf - conf.c:lxc_create_network:2943 - failed to create netdev<br>      lxc-start 1434112920.270 ERROR    lxc_start - start.c:lxc_spawn:914 - failed to create the network<br>      lxc-start 1434112920.270 ERROR    lxc_start - start.c:__lxc_start:1164 - failed to spawn 'my-container'<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-12 15:40 GMT+03:00 Fırat KÜÇÜK <span dir="ltr"><<a href="mailto:firatkucuk@gmail.com" target="_blank">firatkucuk@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I tried. The problem is persistent veth name as you sad.<br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2015-06-12 15:12 GMT+03:00 Fırat KÜÇÜK <span dir="ltr"><<a href="mailto:firatkucuk@gmail.com" target="_blank">firatkucuk@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br>Version:<br>1.1.2-0ubuntu3~ubuntu14.04.1~ppa1<br><br></div>DISTRIB_ID=Ubuntu<br>DISTRIB_RELEASE=14.04<br>DISTRIB_CODENAME=trusty<br>DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"<br><br></div>Yes i persistent veth name. But no duplicate one.<br><br><br><div><div><br></div></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-06-12 12:16 GMT+03:00 Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Fri, Jun 12, 2015 at 3:57 PM, Fırat KÜÇÜK <<a href="mailto:firatkucuk@gmail.com" target="_blank">firatkucuk@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> when i reboot the container it shuts down. What should i do?<br>
<br>
</span>(1) which versions (lxc, os, etc)?<br>
<br>
IIRC some old version has that bug. 1.1.x should be OK<br>
<br>
(2) Did you use persistent veth name (lxc.network.veth.pair)? If yes,<br>
there should be a log somewhere (e.g. /var/log/lxc) mentioning<br>
duplicate names. Does this happen to you?<br>
<span><font color="#888888"><br>
--<br>
Fajar<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">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></font></span></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br><div>FIRAT KÜÇÜK</div>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>FIRAT KÜÇÜK</div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">FIRAT KÜÇÜK</div>
</div>