Follow-up to Bug #1300369: Server guide misleading/incorrect
Bug #1571135 reported by
paranoya
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server Guide |
Fix Released
|
Medium
|
Doug Smythies |
Bug Description
Following the instructions in the server guide for basic unprivileged usage for LXC containers I get the following error message:
newuidmap: uid range [0-1) -> [100000-100001) not allowed
error mapping child
setgid: Invalid argument
lxc-create: lxccontainer.c: do_create_
lxc-create: lxc_create.c: main: 316 Error creating container u1
The guide states "The example below assumes that your mapped user and group id ranges are 100000-165536." Unfortunately it is nowhere explained, how to do that mapping.
System is Ubuntu Server 16.04.
Related branches
Changed in serverguide: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
Changed in serverguide: | |
status: | In Progress → Fix Committed |
Changed in serverguide: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Is this a problem with the documentation or a problem with the default mapped user and group ranges?
In 14.04 the default user range is 100000:65536.
In 16.04 the default user range seems to be 165536:65536
14.04:
doug@serv-tt:~$ cat /etc/subgid
doug:100000:65536
doug@serv-tt:~$ cat /etc/subuid
doug:100000:65536
16.04:
doug@serv64-dev:~$ cat /etc/subuid
lxd:100000:65536
root:100000:65536
doug:165536:65536
doug@serv64-dev:~$ cat /etc/subgid
lxd:100000:65536
root:100000:65536
doug:165536:65536
When creating ~/.config/ lxc/default. conf, if I use the appropriate range, then the lxc-create step works fine.