Update 'debian10-LXC.md'
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user