feat: initial commit
This commit is contained in:
commit
649f66fbf1
19 changed files with 512 additions and 0 deletions
33
docs/proxmox/lxc.md
Normal file
33
docs/proxmox/lxc.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# LXC
|
||||
|
||||
## Show running LXC
|
||||
|
||||
```shell
|
||||
sudo pct list
|
||||
```
|
||||
|
||||
## GPU access
|
||||
|
||||
Add the following to the config:
|
||||
|
||||
```yaml
|
||||
lxc.cgroup2.devices.allow: c 226:0 rwm
|
||||
lxc.cgroup2.devices.allow: c 226:128 rwm
|
||||
lxc.cgroup2.devices.allow: c 29:0 rwm
|
||||
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
|
||||
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
|
||||
```
|
||||
|
||||
|
||||
## Add mount point
|
||||
|
||||
Add the following to the config:
|
||||
|
||||
```shell
|
||||
mp10: /tank/media/downloads,mp=/mnt/media/downloads
|
||||
```
|
||||
|
||||
```shell
|
||||
/tank/media/downloads = on the host
|
||||
/mnt/media/downloads = in the container
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue