Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update getting-started.md #719

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions content/lxc/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,15 @@ Next up is `/etc/lxc/lxc-usernet` which is used to set network devices quota for

This means that "your-username" is allowed to create up to 10 veth devices connected to the lxcbr0 bridge.

Create the `~/.local/share/lxc` directory if it doesn't exist and ensure `~/.local` is executable.

mkdir -p ~/.local/share/lxc && chmod +x ~/.local ~/.local/share ~/.local/share/lxc

With that done, the last step is to create an LXC configuration file.

* Create the `~/.config/lxc` directory if it doesn't exist.
* Copy `/etc/lxc/default.conf` to `~/.config/lxc/default.conf`
* Set `lxc.apparmor.profile = lxc-container-default`
* Append the following two lines to it:
* `lxc.idmap = u 0 100000 65536`
* `lxc.idmap = g 0 100000 65536`
Expand Down