Results 1 to 2 of 2

Thread: How to use the hardware soundcard in an OpenVZ container?

  1. #1
    Join Date
    Jul 2011
    Posts
    25

    Default How to use the hardware soundcard in an OpenVZ container?

    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. #2
    Join Date
    Jul 2011
    Posts
    25

    Default Re: How to use the hardware soundcard in an OpenVZ container?

    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 :-)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •