From: "Васюк Максим" <vaksim@gmail.com>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] OpenVZ проброс устройства dahdi
Date: Fri, 22 Apr 2016 17:21:53 +0600
Message-ID: <571A0951.5050903@gmail.com> (raw)
In-Reply-To: <20151019093133.GA1151@imap.altlinux.org>
Michael Shigorin пишет:
> On Fri, Oct 16, 2015 at 10:17:34AM +0600, Васюк Максим Анатольевич wrote:
>>>> Подскажите пожалуйста, как правильно
>>>> настроить проброс dahdi в контейнер?
>>> Что-то по мотивам
>>> https://openvz.org/Asterisk_from_source#HN_configuration?
>> Насколько я понял после:
>> # vzctl exec tmp01 chown -R _asterisk /dev/dahdi /lib/udev/devices/dahdi
>> при перезагрузки контейнера должны остаться выставленные права,
>
> С чего бы?
>
>> но у меня так и остается root.
>
> Помнится, можно было сделать на HN где-то под /etc/vz -- у меня
> не осталось HN, где бы можно было посмотреть примеры, а потрошить
> бэкап последнего сервера прямщас неудобно.
>
> Второй вариант -- сделать мелкий инитскрипт (лучше его тогда даже
> упаковать сразу) и устанавливать в такие контейнеры.
>
Параллельно решился вопрос с выставлением прав на dahdi устройство в
контейнере.
Создаем рядом с $VE.conf файлик $VE.start, добавляем туда:
#!/bin/bash
/bin/chmod 766 /dev/dahdi/channel
Делаем его исполняемым.
Все по аналогии с $VE.mount
--
Vasuk Maksim
prev parent reply other threads:[~2016-04-22 11:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 10:13 Васюк Максим Анатольевич
2015-10-15 14:22 ` Michael Shigorin
2015-10-16 4:17 ` Васюк Максим Анатольевич
2015-10-19 9:31 ` Michael Shigorin
2016-04-22 11:21 ` Васюк Максим [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571A0951.5050903@gmail.com \
--to=vaksim@gmail.com \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git