1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to use the hardware soundcard in an OpenVZ container?

Discussion in 'Proxmox VE 1.x: Installation and configuration' started by tabbi, Aug 6, 2011.

  1. tabbi

    tabbi New Member

    Joined:
    Jul 30, 2011
    Messages:
    25
    Likes Received:
    0
    Hi,
    I want to use the soundcard of my Proxmox host for music output. Running mpg123 on the host itself works out of the box. But running it in an OpenVZ container (containing Debian 6.0) I get this error:

    Code:
    [module.c:141] error: Failed to open module esd: file not found
    [module.c:141] error: Failed to open module jack: file not found
    [module.c:141] error: Failed to open module pulse: file not found
    [module.c:141] error: Failed to open module nas: file not found
    [module.c:141] error: Failed to open module arts: file not found
    [audio.c:180] error: Unable to find a working output module in this list: alsa,oss,esd,jack,pulse,nas,arts
    [audio.c:527] error: Failed to open audio output module
    [mpg123.c:847] error: Failed to initialize output, goodbye.
    I already followed the instructions from this site, but it didnĀ“t change anything :-(

    Do you have an idea how to get access to the hardware soundcard from an OpenVZ container?
     
  2. tabbi

    tabbi New Member

    Joined:
    Jul 30, 2011
    Messages:
    25
    Likes Received:
    0
    Now I can answer the question myself. I used the following command on Proxmox for every entry I found with ls /dev/snd:

    Code:
    vzctl set [VMID] --devnodes snd/[ENTRY]:rw --save
    Then it worked :)
     

Share This Page