OpenVZ Forum


Home » General » Support » Sound inside VPS
Sound inside VPS [message #36179] Wed, 27 May 2009 01:13 Go to next message
itess is currently offline  itess
Messages: 5
Registered: May 2009
Junior Member
Hello.

I would like to have snd-dummy working inside a VPS. I tried to make device nodes and changed permissions to rw.

Inside the VPS:
root@sip-101:~# ls -lR /dev|grep audio
crw-rw-rw- 1 root audio  14,   4 2008-12-24 17:07 audio
crw-rw---- 1 root audio  14,  20 2008-12-24 17:07 audio1
crw-rw---- 1 root audio  14,  36 2008-12-24 17:07 audio2
crw-rw---- 1 root audio  14,  52 2008-12-24 17:07 audio3
crw-rw---- 1 root audio  14,   7 2008-12-24 17:07 audioctl
crw-rw-rw- 1 root audio  14,   3 2008-12-24 17:07 dsp
crw-rw---- 1 root audio  14,  19 2008-12-24 17:07 dsp1
crw-rw---- 1 root audio  14,  35 2008-12-24 17:07 dsp2
crw-rw---- 1 root audio  14,  51 2008-12-24 17:07 dsp3
crw-rw---- 1 root audio  35,   0 2008-12-24 17:07 midi0
crw-rw---- 1 root audio  14,   2 2008-12-24 17:07 midi00
crw-rw---- 1 root audio  14,  18 2008-12-24 17:07 midi01
crw-rw---- 1 root audio  14,  34 2008-12-24 17:07 midi02
crw-rw---- 1 root audio  14,  50 2008-12-24 17:07 midi03
crw-rw---- 1 root audio  35,   1 2008-12-24 17:07 midi1
crw-rw---- 1 root audio  35,   2 2008-12-24 17:07 midi2
crw-rw---- 1 root audio  35,   3 2008-12-24 17:07 midi3
crw-rw-rw- 1 root audio  14,   0 2008-12-24 17:07 mixer
crw-rw---- 1 root audio  14,  16 2008-12-24 17:07 mixer1
crw-rw---- 1 root audio  14,  32 2008-12-24 17:07 mixer2
crw-rw---- 1 root audio  14,  48 2008-12-24 17:07 mixer3
crw-rw---- 1 root audio  31,   0 2008-12-24 17:07 mpu401data
crw-rw---- 1 root audio  31,   1 2008-12-24 17:07 mpu401stat
crw-rw---- 1 root audio  35,  64 2008-12-24 17:07 rmidi0
crw-rw---- 1 root audio  35,  65 2008-12-24 17:07 rmidi1
crw-rw---- 1 root audio  35,  66 2008-12-24 17:07 rmidi2
crw-rw---- 1 root audio  35,  67 2008-12-24 17:07 rmidi3
crw-rw-rw- 1 root audio 254,   0 2009-05-25 16:50 rtc0
crw-rw-rw- 1 root audio  14,   1 2008-12-24 17:07 sequencer
crw-rw-rw- 1 root audio  14,   8 2009-05-27 00:32 sequencer2
crw-rw---- 1 root audio  35, 128 2008-12-24 17:07 smpte0
crw-rw---- 1 root audio  35, 129 2008-12-24 17:07 smpte1
crw-rw---- 1 root audio  35, 130 2008-12-24 17:07 smpte2
crw-rw---- 1 root audio  35, 131 2008-12-24 17:07 smpte3
crw-rw---- 1 root audio  14,   6 2008-12-24 17:07 sndstat
crw-rw-rw- 1 root audio 116,  0 2009-05-27 00:32 controlC0
crw-rw-rw- 1 root audio 116, 24 2009-05-27 00:32 pcmC0D0c
crw-rw-rw- 1 root audio 116, 16 2009-05-27 00:32 pcmC0D0p
crw-rw-rw- 1 root audio 116,  1 2009-05-27 00:32 seq
crw-rw-rw- 1 root audio 116, 33 2009-05-27 00:32 timer


On the HN:
rc04:~# ls -lR /dev|grep audio
crw-rw-rw- 1 root audio    14,   4 2009-05-27 04:32 audio
crw-rw-rw- 1 root audio    14,   3 2009-05-27 04:32 dsp
crw-rw-rw- 1 root audio    14,   0 2009-05-27 04:32 mixer
crw-rw-rw- 1 root audio   254,   0 2009-05-25 20:50 rtc0
crw-rw-rw- 1 root audio    14,   1 2009-05-27 04:32 sequencer
crw-rw-rw- 1 root audio    14,   8 2009-05-27 04:32 sequencer2
crw-rw-rw- 1 root audio 116,  0 2009-05-27 04:32 controlC0
crw-rw-rw- 1 root audio 116, 24 2009-05-27 04:32 pcmC0D0c
crw-rw-rw- 1 root audio 116, 16 2009-05-27 04:32 pcmC0D0p
crw-rw-rw- 1 root audio 116,  1 2009-05-27 04:32 seq
crw-rw-rw- 1 root audio 116, 33 2009-05-27 04:32 timer


snd-dummy works good on the HN, but not in the VPS.

This is Debian Lenny Linux rc04 2.6.26-2-openvz-amd64 #1 SMP Wed May 13 16:46:17 UTC 2009 x86_64 GNU/Linux

HN is 64 bit OS and VPS is 32 bit Debian Lenny.
Re: Sound inside VPS [message #36185 is a reply to message #36179] Wed, 27 May 2009 10:41 Go to previous messageGo to next message
itess is currently offline  itess
Messages: 5
Registered: May 2009
Junior Member
Looks like I need to make something not only with /dev, but with /proc/asound also.
Re: Sound inside VPS [message #36186 is a reply to message #36185] Wed, 27 May 2009 11:04 Go to previous messageGo to next message
itess is currently offline  itess
Messages: 5
Registered: May 2009
Junior Member
Looks like it was made deliberately:
diff-ve-proc-sound-20071015 
Patch from Evgeny Kravtsunov <emkravts@openvz.org>
 [PATCH] hide global /proc/asound entry from VE

Is there a [simple] way to make /proc/asound in the VE?
Re: Sound inside VPS [message #37144 is a reply to message #36185] Fri, 21 August 2009 13:21 Go to previous messageGo to next message
iatalmid is currently offline  iatalmid
Messages: 2
Registered: August 2009
Junior Member
itess wrote on Wed, 27 May 2009 06:41
Looks like I need to make something not only with /dev, but with /proc/asound also.


I can't understand, what to do.

Give me example, please....
Re: Sound inside VPS [message #37150 is a reply to message #37144] Sat, 22 August 2009 22:47 Go to previous messageGo to next message
itess is currently offline  itess
Messages: 5
Registered: May 2009
Junior Member
The simple answer is: you can't. I used vserver to use sound from VPS.
Re: Sound inside VPS [message #37151 is a reply to message #37150] Sun, 23 August 2009 05:19 Go to previous messageGo to next message
iatalmid is currently offline  iatalmid
Messages: 2
Registered: August 2009
Junior Member
itess wrote on Sat, 22 August 2009 18:47
The simple answer is: you can't. I used vserver to use sound from VPS.


So, I can't use snd_dummy on openVZ virtual mashine...

I want to run skype and asterisk in the virtual environment to be able to call skype users via Asterisk. What do you advise?
Re: Sound inside VPS [message #37153 is a reply to message #37151] Sun, 23 August 2009 13:24 Go to previous messageGo to next message
itess is currently offline  itess
Messages: 5
Registered: May 2009
Junior Member
Formally, you can use /dev/snd in OpenVZ, but skype requires /proc/asound also. I successfully used skype (with snd-dummy) with asterisk in VServer.
Re: Sound inside VPS [message #38533 is a reply to message #36179] Tue, 29 December 2009 13:33 Go to previous message
laotse is currently offline  laotse
Messages: 35
Registered: December 2008
Member
Browsing the net, I'm finally inconclusive whether it is possible to get ALSA running inside a container or not.

I'd like to attach my speakers to my server and have a VE for playing music, i.e. I just do not want to depend on a specific Workstation to be running to listen to music.

Does anyone have a viable solution to run some music player inside a VE? If so, is there a HOWTO available?

Otherwise, can someone definitely state that OpenVZ does not allow running a music player?

Regards,
- lars.
Previous Topic: Copy To Container From Host
Next Topic: load average negative and very large
Goto Forum:
  


Current Time: Tue Oct 08 18:26:59 GMT 2024

Total time taken to generate the page: 0.05327 seconds