[lxc-users] LXC Network Interfaces

Thouraya TH thouraya87 at gmail.com
Thu Dec 25 20:53:09 UTC 2014


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141225/96afddf4/attachment.html>


More information about the lxc-users mailing list