-
Bug
-
Resolution: Fixed
-
Severe (Users)
-
None
-
None
-
None
-
New installs cannot start containers! Saw this problem on bare metal and in a VM.
-
The `/etc/sub{u,g}id` files are not created automatically at install time, and the Wiki documentation suggests to users that they need not do it themselves.
I discovered that I could not start containers with `lxc` unless I created the files `/etc/sub{u,g}id`; I put exactly the contents stated on the Wiki at https://www.funtoo.org/LXD
Next, we come to the concept of "subuid" and "subgid". Typically, a user will get one user id and one group id. Subids and subgids allow us to assign additional UIDs and GIDs to a user for their own uses. By default, LXD will allocate subuids for the root user, which is equivalent of creating the following files on the root filesystem:
Code listings follow for both files showing the contents:
`root:1000000:10000000000`
That's what is in those files on `alkaline` so I did the same on my local system and was able to start containers.
I think we need to update the documentation to reflect the reality that those files are needed; or we need to ensure that they get created with default values.
- relates to
-
FL-8551 proposed lxd improvements
- Work Queue