I have a Digium Analog PCI Card and would like to access it from lxc container.

I've searched the internet a lot but it seems information out there is incomplete and a bit outdated.

It seems that bind mounting /dev/dahdi to /var/lib/lxd/containers/ct1/rootfs/dev/dahdi does not help, since the mount point does not appear from within the container.

Actually ct1/rootfs/dev seems completely different from /dev inside the container.

Could you give any pointers?

Here is my setup:

$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:    xenial


$ lxc --version
2.8


$ lxd --version
2.8


$ lspci -v

(...)

02:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)
    Subsystem: Digium, Inc. Wildcard TDM410 4-port analog card
    Flags: bus master, medium devsel, latency 32, IRQ 16
    I/O ports at e000 [size=256]
    Memory at df020000 (32-bit, non-prefetchable) [size=1K]
    Expansion ROM at df000000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: wctdm24xxp
    Kernel modules: wctdm24xxp


$ dahdi_hardware
pci:0000:02:00.0     wctdm24xxp+  d161:8005 Wildcard TDM410P


$ ls -l /dev/dahdi/
total 0
lrwxrwxrwx 1 root root          12 Jan 28 21:39 1 -> chan/001/001
lrwxrwxrwx 1 root root          12 Jan 28 21:39 2 -> chan/001/002
lrwxrwxrwx 1 root root          12 Jan 28 21:39 3 -> chan/001/003
lrwxrwxrwx 1 root root          12 Jan 28 21:39 4 -> chan/001/004
drwxr-xr-x 3 root root          60 Jan 28 21:39 chan
crw-rw---- 1 root dialout 196, 254 Jan 28 21:32 channel
crw-rw---- 1 root dialout 196,   0 Jan 28 21:32 ctl
drwxr-xr-x 3 root root          60 Jan 28 21:39 devices
crw-rw---- 1 root dialout 196, 255 Jan 28 21:32 pseudo
crw-rw---- 1 root dialout 196, 253 Jan 28 21:32 timer

I should have a /dev/dahdi with the above structure inside the container in order for it to work.

How do I do that?

Thanks a lot.
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to