[lxc-users] LXC Network Interfaces

BB eeg5auquaephoo5j at gmail.com
Fri Dec 26 10:07:35 UTC 2014


Hi,

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.

Regards,

BB

On Thu, Dec 25, 2014 at 9:53 PM, Thouraya TH <thouraya87 at gmail.com> wrote:

> Hello,
> I have done these configurations:
>
> root at localhost:/etc/lxc# vim default.conf
> root at localhost:/etc/lxc#
>
> lxc.network.type = veth
> lxc.network.link = lxcbr0
> lxc.network.flags = up
> lxc.network.hwaddr = 00:16:3e:xx:xx:xx
>
> // i have added
>
>
>
>
>
>
>
>
>
>
> *lxc.network.type = veth lxc.network.name <http://lxc.network.name> =
> eth0 lxc.network.link = br0 lxc.network.ipv4 = 10.0.3.138/24
> <http://10.0.3.138/24> lxc.network.flags = up lxc.network.type =
> veth lxc.network.link = br1 lxc.network.ipv4 = 192.168.0.63/24
> <http://192.168.0.63/24> lxc.network.name <http://lxc.network.name> =
> eth1 lxc.network.flags = up*
>
> root at localhost:/etc/lxc# sudo lxc-start -n worker --logfile=log.txt
> lxc-start: lxc_start.c: main: 345 The container failed to start.
> lxc-start: lxc_start.c: main: 347 To get more details, run the container
> in foreground mode.
> lxc-start: lxc_start.c: main: 349 Additional information can be obtained
> by setting the --logfile and --logpriority options.
>
> *  log.txt:*
>
>   lxc-start 1419540138.173 ERROR    lxc_conf -
> conf.c:instantiate_veth:2855 - failed to attach 'veth88XYO7' to the bridge
> 'br0': Operation not permitted
>       lxc-start 1419540138.199 ERROR    lxc_conf -
> conf.c:lxc_create_network:3138 - failed to create netdev
>       lxc-start 1419540138.199 ERROR    lxc_start - start.c:lxc_spawn:829
> - failed to create the network
>       lxc-start 1419540138.199 ERROR    lxc_start -
> start.c:__lxc_start:1088 - failed to spawn 'worker'
>       lxc-start 1419540143.205 ERROR    lxc_start_ui -
> lxc_start.c:main:345 - The container failed to start.
>       lxc-start 1419540143.205 ERROR    lxc_start_ui -
> lxc_start.c:main:347 - To get more details, run the container in foreground
> mode.
>       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
>
> Have you an idea please ?
> Thanks a lot.
> Best Regards.
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141226/194f5a8c/attachment.html>


More information about the lxc-users mailing list