lxc guide: mention "newuidmap: uid range [0-1) -> [100000-100001) not allowed"
Bug #1328107 reported by
Chris West
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server Guide |
In Progress
|
Undecided
|
Free Ekanayaka |
Bug Description
If you ignore most of the text in the LXC guide, and just run the commands, you get the error:
newuidmap: uid range [0-1) -> [100000-100001) not allowed
error mapping child
setgid: Invalid argument
lxc_container: Error chowning /home/faux/
lxc_container: Error creating backing store type (none) for u1
lxc_container: Error creating container u1
It may be worth mentioning this somewhere, perhaps in a bug report on the bug tracker, referring to the "user namespaces" subsection of the https:/
Changed in serverguide: | |
status: | New → In Progress |
assignee: | nobody → Free Ekanayaka (free.ekanayaka) |
To post a comment you must log in.
This report came up in a google search just as I was giving up; just to make it clear for the next person who find this bug:
"If a user was created on an earlier [than 14.04] release [of Ubuntu]" then you'll have trouble. The fix referred to under that "user namespaces" subsection is:
sudo usermod -v 100000-200000 -w 100000-200000 YOURUSER
where YOURUSER is a user that's been around since pre-14.04 days.
This bug report is particularly helpful if, like me, you weren't using the *ubuntu* guide linked above, but the upstream guide: https:/ /linuxcontainer s.org/lxc/ getting- started/ (which is what I was doing -- hence lots of time spinning my wheels).
Thanks for posting this Chris!