[MontelLUG] Audio su proxmox container
Samuele
samuele.zanin a tiscali.it
Ven 31 Maggio 2013 21:16:34 CEST
On 24/05/2013 22:25, Samuele wrote:
> Qualcuno è riuscito a far andare la scheda audio dentro ad un container
> proxmox?
Trovato dopo 1000 ricerche sto link funzionante:
http://myatus.com/p/x-server-with-sound-inside-an-openvz-proxmox-container/
Vista la fatica, allego i comandi digitati, casomai il sito in oggetto
andasse a ramengo:
Preparing the container ¶
Setting device privileges ¶
The next step is preparing the OpenVZ or Proxmox container. By default,
the container does not have access privileges to the sound device, so
this needs to be setup from the host node (assuming “100″ is the actual
container ID):
vzctl set 100 --devices c:116:all:rw --devices c:4:all:rw --save
Cloning the sound devices ¶
The following step involves recreating the /dev/snd layout from the
host node in the container. Let’s first see what the layout looks like
on the host node:
ls -la /dev/snd
This will give an output similar to:
crw-rw---- 1 root audio 116, 6 2009-08-14 20:42 controlC0
crw-rw---- 1 root audio 116, 5 2009-08-14 20:42 pcmC0D0c
crw-rw---- 1 root audio 116, 4 2009-08-14 20:42 pcmC0D0p
crw-rw---- 1 root audio 116, 3 2009-08-14 20:42 seq
crw-rw---- 1 root audio 116, 2 2009-08-14 20:42 timer
It is important that the same device IDs are being recreated in the
container. I.e., the device ID for seq is 116,3 in the above example.
Enter the container and start and issue the following commands,
depending on the output given on the host node:
vzctl enter 100
rm -r /dev/snd
mkdir /dev/snd
mknod /dev/snd/controlC0 c 116 6
mknod /dev/snd/pcmC0D0c c 116 5
mknod /dev/snd/pcmC0D0p c 116 4
mknod /dev/snd/seq c 116 3
mknod /dev/snd/timer c 116 2
chmod 660 /dev/snd/*
chown :audio /dev/snd/*
At this point you have cloned copy of the host node’s sound devices and
are ready to be used.
Please note that the application that wishes to use the sound devices
require the proper privileges. The easiest method is to add the UID to
the audio group. For example, if Skype runs under uid “skype”, issue
this command:
adduser skype audio
More information about the montellug
mailing list