[lxc-users] need to get devices to work in lxc

David Pinson dap at hbm-mail.com
Tue Dec 12 21:08:03 UTC 2017


I have video processing and dvb devices that I need to use in a fedora
25 container. I haven't tried the video cards (aja and blackmagic) yet,
because I haven't been successful with the dvb device yet.

I have added the following to the config:

lxc.cgroup.devices.allow = b 212:* rwm
lxc.mount.entry = /dev/dvb dev/dvb none bind,optional,create=dir

which gives me the entries in the container:

[root at fedora-c1 dap]# ls -l /dev/dvb/adapter0/
total 0
crw-rw----+ 1 root video 212, 1 Dec 12 17:38 demux0
crw-rw----+ 1 root video 212, 2 Dec 12 17:38 dvr0
crw-rw----+ 1 root video 212, 0 Dec 12 17:38 frontend0
crw-rw----+ 1 root video 212, 3 Dec 12 17:38 net0

When I try to use w_scan to create a list of channels, I get:

[root at fedora-c1 dap]# w_scan -fa -A1 -c US -X
w_scan -fa -A1 -c US -X 
w_scan version 20161022 (compiled for DVB API 5.10)
using settings for UNITED STATES
ATSC
VSB US/CA, DVB-T TW
scan type TERRCABLE_ATSC, channellist 1
output format czap/tzap/szap/xine
WARNING: could not guess your codepage. Falling back to 'UTF-8'
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
main:3916: FATAL: ***** NO USEABLE TERRCABLE_ATSC CARD FOUND. *****
Please check wether dvb driver is loaded and
verify that no dvb application (i.e. vdr) is running.

What am I doing wrong?



More information about the lxc-users mailing list