Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 627328

Summary: app-emulation/lxc-2.0.8 unable to start containers
Product: Gentoo Linux Reporter: alexander haensch <alexander.haensch>
Component: Current packagesAssignee: Virgil Dupras (RETIRED) <vdupras>
Status: RESOLVED WORKSFORME    
Severity: normal CC: dlan, hwoarang, jstein, stasibear, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description alexander haensch 2017-08-08 14:35:37 UTC
with app-emulation/lxc-2.0.8 i get
lxc-start: start.c: lxc_spawn: 1182 Failed to set up id mapping.

with app-emulation/lxc-2.0.7 everything works fine.
Comment 1 Mitch Harder 2017-08-13 21:43:21 UTC
I was also getting a similar error with version 2.0.8.

I found a work-around here:

https://github.com/lxc/lxc/issues/1555#issuecomment-301254419

Upstream seems to indicate we are installing newuidmap and newgidmap with incorrect permissions.

Lxc 2.0.8 works fine after I run:

sudo chmod 04755 /usr/bin/newuidmap
sudo chmod 04755 /usr/bin/newgidmap
Comment 2 Virgil Dupras (RETIRED) gentoo-dev 2018-09-09 18:21:39 UTC
Do you still have the same problems in newer LXC versions? Things have been working fine here and newuidmap/newgidmap have 4711 perms on my system.