JG-mirror/LXC/Jellyfin/readme.md

56 lines
1.1 KiB
Markdown
Raw Normal View History

2024-02-05 22:24:04 +00:00
# Find Device Numbers
```
ls -l /dev/dri
```
# Find Group Numbers
```
cat /etc/group
```
2024-02-07 07:46:07 +00:00
# Add Group Numbers Values to subgid
2024-02-05 22:24:04 +00:00
Change values to map the to above ^^
```
2024-02-07 07:46:07 +00:00
nano /etc/subgid
2024-02-05 22:24:04 +00:00
```
Paste at the bottom, for example:
```
root:44:1
root:104:1
```
# Create CT Using Wizard. Edit .conf In /etc/pve/lxc
Edit your device IDs and renderD***
Ensure you match the idmap values
```
arch: amd64
cores: 2
cpulimit: 2
features: nesting=1
hostname: test-gpu-04
memory: 3000
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=BC:24:11:06:18:78,ip=dhcp,type=veth
ostype: debian
rootfs: local-lvm:vm-104-disk-0,size=20G
swap: 512
unprivileged: 1
lxc.cgroup2.devices.allow: c 226:0 rwm
2024-02-05 22:25:10 +00:00
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
2024-02-05 22:24:04 +00:00
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 44
lxc.idmap: g 44 44 1
lxc.idmap: g 45 100045 62
lxc.idmap: g 107 104 1
lxc.idmap: g 108 100108 65428
```
# Add Root to Groups
Do this on your Proxmox Host
```
usermod -aG render,video root
```
# Whatever You Want...
2024-02-07 07:46:07 +00:00
Install Docker, run apps, even change your LXC for a Linux Desktop!!!