TBS6909 on Proxmox

Helio Mendonça

Active Member
Apr 10, 2019
73
6
28
I need to use a DVB-S2 card (TBS6909) on Proxmox.
In fact all I need is to use a TVHeadend app to stream some satellite TV channels inside my network.

It seems that the use in a VM is more tricky since it needs to be on a separate IOMMU group (someting that in my case does not happens as you can see here).
So I started playing with CT instead of VM.

For that I create a CT using Ubuntu-16.04 template and initially I did not saw any of the DVB adapters inside the container but after editing the /etc/pve/lxc/1xx.conf with the following lines (as suggested here and here) :
Code:
lxc.cgroup.devices.allow = c 212:* rwm
lxc.mount.entry = /dev/dvb dev/dvb none bind,optional,create=dir
I can see now the adapters:
Code:
root@tv:~/media_build# ls /dev/dvb
adapter0  adapter1  adapter2  adapter3  adapter4  adapter5  adapter6  adapter7

Unfortunately TVHeadend still do not show those adapters: :(
upload_2019-5-12_14-27-32.png
Note that if list the dvb devices in the pve host I get:
Code:
root@pve:~# lsdvb

                lsdvb: Simple utility to list PCI/PCIe DVB devices
                Version: 0.0.4
                Copyright (C) Manu Abraham

TBSECP3 driver (544:6178 6909:1) on PCI Domain:0 Bus:9 Device:0 Function:0
        DEVICE:0 ADAPTER:4 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
        DEVICE:0 ADAPTER:2 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
        DEVICE:0 ADAPTER:7 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
        DEVICE:0 ADAPTER:0 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
        DEVICE:0 ADAPTER:5 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
        DEVICE:0 ADAPTER:3 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
        DEVICE:0 ADAPTER:1 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
        DEVICE:0 ADAPTER:6 FRONTEND:0 (TurboSight TBS 6909 DVB-S/S2 )
                 FE_QPSK Fmin=300MHz Fmax=2350MHz
While if I do the same inside the container, I get:
Code:
root@tv:~/media_build# lsdvb

                lsdvb: Simple utility to list PCI/PCIe DVB devices
                Version: 0.0.4
                Copyright (C) Manu Abraham

TBSECP3 driver (544:6178 6909:1) on PCI Domain:0 Bus:9 Device:0 Function:0
        DEVICE:0 ADAPTER:4 ERROR: Open frontend0 failed

Any help please?

PS - In Proxmox I have always have huge doubts on what to do in the host and what to do in the VM/CT!!!
For instance, in the case of a container, the compilation of the TBS6009 driver should be done in the host or in the CT?
Since I need to include in the container conf file the "lxc.mount.entry = /dev/dvb" and I only get the "/dev/dvb" once the installation of the driver is performed in the pve host, it seems to me that it has to be done in the host machine, right?
 
Last edited:
Can this problem be a question of permissions?

If I list the adapters in the host I get:
Code:
root@pve:~# ls -la /dev/dvb
total 0
drwxr-xr-x 10 root root  200 May 12 13:32 .
drwxr-xr-x 21 root root 4680 May 12 13:32 ..
drwxr-xr-x  2 root root  120 May 12 13:32 adapter0
drwxr-xr-x  2 root root  120 May 12 13:32 adapter1
drwxr-xr-x  2 root root  120 May 12 13:32 adapter2
drwxr-xr-x  2 root root  120 May 12 13:32 adapter3
drwxr-xr-x  2 root root  120 May 12 13:32 adapter4
drwxr-xr-x  2 root root  120 May 12 13:32 adapter5
drwxr-xr-x  2 root root  120 May 12 13:32 adapter6
drwxr-xr-x  2 root root  120 May 12 13:32 adapter7

Bit in the CT, I get:
Code:
root@tv:~# ls -la /dev/dvb
total 0
drwxr-xr-x 10 nobody nogroup 200 May 12 13:32 .
drwxr-xr-x  7 root   root    480 May 12 14:02 ..
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter0
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter1
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter2
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter3
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter4
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter5
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter6
drwxr-xr-x  2 nobody nogroup 120 May 12 13:32 adapter7
 
After contacting nicolai (the author of the YouTube video I already mentioned) he gave me the solution!
It is probably obvious to the majority of people here but for me was the key!
I need to create a privileged container!
With that the adapters already appear in the TvHeadend:
upload_2019-5-12_16-31-0.png
 
How did you install drivers on proxmox host ?, I'm struggling from few hours... but with no succed.
I have TBS6902
 
How did you install drivers on proxmox host ?, I'm struggling from few hours... but with no succed.
I have TBS6902

I started editing mxl58x.conf to choose the mode:
Code:
nano /etc/modprobe.d/mxl58x.conf
options mxl58x mode=1
reboot

And then the right version of pve-headers:
Code:
apt-cache search pve-headers
apt install pve-headers-$(uname -r)

Finally downloaded and installed the drivers:
Code:
wget http://www.tbsdtv.com/download/document/linux/media_build-2019-04-15.tar.bz2
rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
tar jxvf media_build-2019-04-15.tar.bz2
cd media_build 
./install.sh 

reboot

After a reboot the final result was the following:
Code:
root@pve:~# dmesg | grep frontend
[   33.286869] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 0 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...
[   33.408993] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 1 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...
[   33.532632] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 2 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...
[   33.656702] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 3 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...
[   33.780999] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 4 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...
[   33.904987] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 5 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...
[   34.028999] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 6 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...
[   34.153004] TBSECP3 driver 0000:0a:00.0: DVB: registering adapter 7 frontend 0 (TurboSight TBS 6909 DVB-S/S2 )...

Regards
 
  • Like
Reactions: KenyBDG
I've created this file and also I Installed drivers, but unfortunately, no succeed

but I've noticed sth like this:

Code:
pve-headers-4.15.18-9-pve - The Proxmox PVE Kernel Headers
pve-headers-4.15.3-1-pve - The Proxmox PVE Kernel Headers
pve-headers-4.15 - Latest Proxmox VE Kernel Headers
pve-headers - Default Proxmox VE Kernel Headers
root@proxmox:~# apt install pve-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-headers-5.0.15-1-pve
E: Couldn't find any package by glob 'pve-headers-5.0.15-1-pve'
E: Couldn't find any package by regex 'pve-headers-5.0.15-1-pve'
root@proxmox:~#
 
I've created this file and also I Installed drivers, but unfortunately, no succeed

but I've noticed sth like this:

Code:
pve-headers-4.15.18-9-pve - The Proxmox PVE Kernel Headers
pve-headers-4.15.3-1-pve - The Proxmox PVE Kernel Headers
pve-headers-4.15 - Latest Proxmox VE Kernel Headers
pve-headers - Default Proxmox VE Kernel Headers
root@proxmox:~# apt install pve-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pve-headers-5.0.15-1-pve
E: Couldn't find any package by glob 'pve-headers-5.0.15-1-pve'
E: Couldn't find any package by regex 'pve-headers-5.0.15-1-pve'
root@proxmox:~#

The line "apt install pve-headers-$(uname -r)" will install the version of pve-headers according your kernel version.
See this for that.

Regards

PS - You own me a couple of "Likes"! :D
 
  • Like
Reactions: KenyBDG
Succeed !

Code:
root@pve:~# dmesg | grep frontend
[    4.060457] TBSECP3 driver 0000:03:00.0: DVB: registering adapter 0 frontend 0 (TurboSight TBS 6902 DVB-S/S2 )...
[    4.288894] TBSECP3 driver 0000:03:00.0: DVB: registering adapter 1 frontend 0 (TurboSight TBS 6902 DVB-S/S2 )...

The problem was on Proxmox 6 side :) ... I installed 5.4
 
hello everyone

I know it is old post, but I'm trying to install tvheadend LXC container but TBS6909 doesn't appear in dvb tuner
YouTube video in the above link is not available

appreciate your assistance
thanks in advance
 

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!