TV-Server TV-Karte durchreichen an LXC Problem Rechte

Schattenwelt

Member
May 19, 2019
2
0
21
37
Guten Tag ich bin neu hier und hab ein Problem beim durchreichen einen TV-Karte an meinen Container.
System:
  • 2x Intel E5620
  • Intel Server Mainboard S5500BC
  • 32GB ECC Ram
  • 2x TV-Karte DVBSky t982
im Proxmox wird es noch so erkannt
Code:
root@pve:~# ls -la /dev/dvb/adapter0
insgesamt 0
drwxr-xr-x 2 root root     140 Mai 19 17:17 .
drwxr-xr-x 4 root root      80 Mai 19 17:17 ..
crw-rw---- 1 root video 212, 8 Mai 19 17:17 ca0
crw-rw---- 1 root video 212, 0 Mai 19 17:17 demux0
crw-rw---- 1 root video 212, 1 Mai 19 17:17 dvr0
crw-rw---- 1 root video 212, 7 Mai 19 17:17 frontend0
crw-rw---- 1 root video 212, 2 Mai 19 17:17 net0

Wenn ich es an en Container durch gereicht habe aber da so
Code:
root@TV-Server:~# ls -la /dev/dvb/adapter0
total 0
drwxrwxrwx 2 nobody nogroup    120 May 19 08:03 .
drwxr-xr-x 3 nobody nogroup     60 May 19 08:03 ..
crw-rw---- 1 nobody nogroup 212, 0 May 19 08:03 demux0
crw-rw---- 1 nobody nogroup 212, 1 May 19 08:03 dvr0
crw-rw---- 1 nobody nogroup 212, 3 May 19 08:03 frontend0
crw-rw---- 1 nobody nogroup 212, 2 May 19 08:03 net0

In der Konfigurationsdatei haben ich es wie folgt geändert.
Code:
lxc.mount.entry: /dev/dvb dev/dvb none bind,optional,create=dir
lxc.cgroup.devices.allow: c 212:* rwm

Im Container läuft ein Debian mit TVHeadend und der findet keine Adapter.

Ich bekomm aber im Container dann keine rechte und kann sie auch nicht ändern.
Wie kann ich die rechte ändern oder bekomme meine Adapter ins TVHeadend?

Vielen Dank für eure Hilfe.
 
Last edited:
Hi, hab auch so ne Karte am laufen. Kann sein das du das Häckchen bei "unpriviligierter Container" nicht entfernt hast?
 
  • Like
Reactions: CoolTux
Ja du hattest recht er hat mit dem Update von 5.3-2 auf 5.4-5 alle Container zu "priviligierter Container" gemacht. Hab das jetzt in der Config wieder zurück gestellt.

Vielen Dank für die hilfe
 
Hallo zusammen,

was kann man tun wenn es trotzdem nicht im Tvh anzeigt ??

ich habe die Karte durchgeschleift und ls -la zeigt folgendes an

Bash:
root@tvh02:~# ls -la /dev/dvb/adapter0/
total 0
drwxr-xr-x 2 root root     120 Feb 11 17:55 .
drwxr-xr-x 3 root root      60 Feb 11 17:55 ..
crw-rw---- 1 root video 212, 1 Feb 11 17:55 demux0
crw-rw---- 1 root video 212, 2 Feb 11 17:55 dvr0
crw-rw---- 1 root video 212, 0 Feb 11 17:55 frontend0
crw-rw---- 1 root video 212, 3 Feb 11 17:55 net0

1676140649435.png
 
Last edited:
Ich habe nun dem Adapter Cchmod 777 erteilt und zusätzlich dem User hts der gruppe video hinzugefügt, leider erscheint der Adapter weiterhin nicht im thv.
hat einer noch eine Idee wo ich ansetzen kann ?

1676199374499.png
 
Ich hatte das gleiche Problem und hab jetzt die Lösung gefunden. (Danke an Patrick Gotthards Kommtar und dem Youtube-Video von apfelcast):
Es muss cgroup2 statt cgroup heißen:

Code:
lxc.cgroup2.devices.allow: c 212:* rwm
lxc.mount.entry: /dev/dvb dev/dvb none bind,optional,create=dir
 
  • Like
Reactions: fireon

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!