Archived
1
0

Update 'debian10-LXC.md'

This commit is contained in:
2021-05-27 11:31:25 +00:00
parent a534ee4a1e
commit 5d1b933448

View File

@@ -3,15 +3,17 @@
Install packages and add unprivileged user Install packages and add unprivileged user
``` ```
apt install lxc libvirt0 libpam-cgfs bridge-utils uidmap apt install lxc libvirt0 libpam-cgfs bridge-utils uidmap
useradd -r lxcuser useradd lxcuser
cat /etc/s*id|grep lxcuser cat /etc/s*id|grep lxcuser
``` ```
Put the following in /etc/default/lxc-net Put the following in /etc/default/lxc-net
``` ```
USE_LXC_BRIDGE="true" USE_LXC_BRIDGE="true"
```
#### /etc/lxc/default.conf Put the following in /etc/lxc/default.conf
```
lxc.idmap = u 0 <Replace with output of cat> <Replace with output of cat> lxc.idmap = u 0 <Replace with output of cat> <Replace with output of cat>
lxc.idmap = g 0 <Replace with output of cat> <Replace with output of cat> lxc.idmap = g 0 <Replace with output of cat> <Replace with output of cat>
lxc.mount.auto = proc:mixed sys:ro cgroup:mixed lxc.mount.auto = proc:mixed sys:ro cgroup:mixed