Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11987

[documentation] Fix Wiki page about LXD, text about /etc/sub{u,g}id necessity

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Severe (Users) 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.

            cuantar cuantar
            cuantar cuantar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: