On Wed, Jun 08, 2011 at 05:32:34PM -0400, Jeff LaCoursiere wrote:
>
> Howdy,
>
> I am playing around with asterisk within an LXC container on Ubuntu 
> 11.04. I have asterisk (1.4.42) running fine, but want access to 
> dahdi_dummy for timing (meetme).  I have dahdi installed on the "host", 
> and dahdi_dummy is loaded:
>
> root@astnorth:/# ls -ltr /dev/dahdi
> total 0
> crw-rw---- 1 root root 196, 250 2011-06-08 13:59 transcode
> crw-rw---- 1 root root 196, 253 2011-06-08 13:59 timer
> crw-rw---- 1 root root 196, 255 2011-06-08 13:59 pseudo
> crw-rw---- 1 root root 196,   0 2011-06-08 13:59 ctl
> crw-rw---- 1 root root 196, 254 2011-06-08 13:59 channel
> root@astnorth:/#
>
> But in the container I don't see them:
>
> root@artha:/# ls -ltr /dev/dahdi
> total 0
>
> even though /dev/dahdi showed up as soon as I loaded the kernel module in 
> the host.
>
> Maybe this is more a question for an LXC list, but I noted that a few  
> people had played with this (asterisk in LXC) and wondered if anyone  
> managed to get dahdi_dummy shared across their containers...

Maybe you need to enable the guest to access those devices?

In the lxc guest conf file, you should probably have omething like:

lxc.cgroup.devices.allow = c 196:0   rwm # /dev/dahdi/ctl
lxc.cgroup.devices.allow = c 196:253 rwm # /dev/dahdi/timer
lxc.cgroup.devices.allow = c 196:254 rwm # /dev/dahdi/channel
lxc.cgroup.devices.allow = c 196:255 rwm # /dev/dahdi/pseudo
# For the record: you don't probably don't need the following one:
#lxc.cgroup.devices.allow = c 196:250 rwm # /dev/dahdi/transcode

-- 
               Tzafrir Cohen
icq#16849755              jabber:[email protected]
+972-50-7952406           mailto:[email protected]
http://www.xorcom.com  iax:[email protected]/tzafrir

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to