<div dir="ltr">Hi,<div><br></div><div>do the bridges br0 and br1 exist? lxc will not create them for you. If you just want to use the default bridge (lxcbr0), omit "lxc.network.link" from your containers' configs.</div><div><br></div><div>Regards,</div><div><br></div><div>BB</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 25, 2014 at 9:53 PM, Thouraya TH <span dir="ltr"><<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,<br>I have done these configurations:<br><br>root@localhost:/etc/lxc# vim default.conf <br>root@localhost:/etc/lxc# <br><br>lxc.network.type = veth<br>lxc.network.link = lxcbr0<br>lxc.network.flags = up<br>lxc.network.hwaddr = 00:16:3e:xx:xx:xx<br><br></div>// i have added <br><div><b>lxc.network.type = veth<br> <a href="http://lxc.network.name" target="_blank">lxc.network.name</a> = eth0<br> lxc.network.link = br0<br> lxc.network.ipv4 = <a href="http://10.0.3.138/24" target="_blank">10.0.3.138/24</a><br> lxc.network.flags = up<br><br> lxc.network.type = veth<br> lxc.network.link = br1<br> lxc.network.ipv4 = <a href="http://192.168.0.63/24" target="_blank">192.168.0.63/24</a><br> <a href="http://lxc.network.name" target="_blank">lxc.network.name</a> = eth1<br> lxc.network.flags = up</b><br><br>root@localhost:/etc/lxc# sudo lxc-start -n worker --logfile=log.txt<br>lxc-start: lxc_start.c: main: 345 The container failed to start.<br>lxc-start: lxc_start.c: main: 347 To get more details, run the container in foreground mode.<br>lxc-start: lxc_start.c: main: 349 Additional information can be obtained by setting the --logfile and --logpriority options.<br><br><b> log.txt:</b><br><br> lxc-start 1419540138.173 ERROR lxc_conf - conf.c:instantiate_veth:2855 - failed to attach 'veth88XYO7' to the bridge 'br0': Operation not permitted<br> lxc-start 1419540138.199 ERROR lxc_conf - conf.c:lxc_create_network:3138 - failed to create netdev<br> lxc-start 1419540138.199 ERROR lxc_start - start.c:lxc_spawn:829 - failed to create the network<br> lxc-start 1419540138.199 ERROR lxc_start - start.c:__lxc_start:1088 - failed to spawn 'worker'<br> lxc-start 1419540143.205 ERROR lxc_start_ui - lxc_start.c:main:345 - The container failed to start.<br> lxc-start 1419540143.205 ERROR lxc_start_ui - lxc_start.c:main:347 - To get more details, run the container in foreground mode.<br> lxc-start 1419540143.205 ERROR lxc_start_ui - lxc_start.c:main:349 - Additional information can be obtained by setting the --logfile and --logpriority options<br><br></div><div>Have you an idea please ?<br></div><div>Thanks a lot. <br></div><div>Best Regards. <br></div></div>
<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" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>