lxc guide: mention "newuidmap: uid range [0-1) -> [100000-100001) not allowed"

Bug #1328107 reported by Chris West
24
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/.local/share/lxc/u1/rootfs to container root
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://help.ubuntu.com/lts/serverguide/lxc.html#lxc-basic-usage guide.

Changed in serverguide:
status: New → In Progress
assignee: nobody → Free Ekanayaka (free.ekanayaka)
Revision history for this message
jzacsh (jzacsh) wrote :

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://linuxcontainers.org/lxc/getting-started/ (which is what I was doing -- hence lots of time spinning my wheels).

Thanks for posting this Chris!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.