Skip to content

Commit

Permalink
Fix missing subuid and subgid procedure (#2365)
Browse files Browse the repository at this point in the history
Fix the command for installing the copr repo
  • Loading branch information
sspencerwire authored Sep 15, 2024
1 parent b0255b0 commit 007d168
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions docs/books/incus_server/30-appendix_a.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Install other repositories:

```bash
sudo dnf config-manager --enable crb
sudo copr enable neil/incus
sudo dnf copr enable neil/incus
```

Install some needed packages:
Expand All @@ -53,7 +53,7 @@ sudo dnf install incus incus-tools
sudo systemctl enable incus
```

Reboot your notebook or workstation
Reboot your notebook or workstation before continuing.

## Incus initialization

Expand Down Expand Up @@ -126,6 +126,27 @@ sudo usermod -a -G incus-admin [username]

where [username] is your user on the system.

## Setting `subuid` and `subgid` values for `root`

You need to set both the value of the root user's `subuid` and `subgid` (the range of subordinate user and group id's). This value should be:

```bash
root:1000000:1000000000
```

To do this, edit the `/etc/subuid` and add that line. When completed, your file will be:

```bash
root:1000000:1000000000
```

Edit the `/etc/subgid` file and add that line again. Your file will look something like this:

```bash
incusadmin:100000:65536
root:1000000:1000000000
```

At this point, you have made a bunch of changes. Before you go any further, reboot your machine.

## Verifying the install
Expand Down

0 comments on commit 007d168

Please sign in to comment.