lxc-start fails due to insufficient permission for creating netdev
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Invalid
|
High
|
Unassigned |
Bug Description
After installing an lxc with `sudo lxc-create -n Ubuntu-12.04.5-i386 -t /usr/share/
lxc-start: conf.c: instanciate_veth: 2817 failed to attach 'vethY1J1I1' to the bridge 'lxcbr0' : Operation not permitted
lxc-start: conf.c: lxc_create_network: 3100 failed to create netdev
lxc-start: start.c: lxc_spawn: 829 failed to create the network
lxc-start: start.c: __lxc_start: 1087 failed to spawn 'Ubuntu-
lxc-start: lxc_start.c: main: 337 The container failed to start.
lxc-start: lxc_start.c: main: 341 Additional information can be obtained by setting the --logfile and --logpriority options.
It should be possible to start the container right away after installation of the apt package and handle eventually necessary setup tasks (of permissions, etc.) in `debconf`.
Currently it's necessary to comment out all `lxc.network.*` entries in the container configuration file.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: lxc 1.1.0~alpha2-
ProcVersionSign
Uname: Linux 3.17.7-
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 1 14:31:03 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-12-28 (4 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
SourcePackage: lxc
UpgradeStatus: Upgraded to utopic on 2014-12-28 (4 days ago)
defaults.conf:
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx
upstart.
Thanks for taking the time to report this bug. Certainly as root you should be able to attach devices to lxcbr0.
Could you please
1. show the result of 'ifconfig -a' and 'brctl show'
2. do 'sudo lxc-start -n Ubuntu-12.04.5-i386 -f -l trace -o lxc.debug' and attach lxc.debug here
3. try:
sudo lxc-create -t download -n p1 -- -d ubuntu -r trusty -a i386
sudo lxc-start -n p1
and let us know whether that succeeds.