<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 1:36 PM, Matlink <span dir="ltr"><<a href="mailto:matlink@matlink.fr" target="_blank">matlink@matlink.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I've got pulseaudio working with an app ran in an LXC container (based<br>
on this <a href="https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/" rel="noreferrer" target="_blank">https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/</a>).<br>
However, since I run this app in container, pulseaudio seems to be<br>
locked by this app, and any other app than tries to output sound with<br>
pulseaudio becomes stuck.<br>
Is there any conf for pulseaudio to stop apps to lock the socket ?<br></blockquote><div><br></div><div><br></div><div>The problem is almost assuredly not that pulseaudio itself locks up when having multiple clients connect. The likely problem is that your underlying sound card does not support hardware mixing, and thus only one ALSA client can connect to it at any given time. This is actually a hardware limitation that transcends all concepts of virtual machine, container, etc. and can only be resolved by a hypothetical (non-existent) in-kernel software mixer. Until/unless such a thing exists, you must only have one PulseAudio daemon running on your system and accessing the sound card directly, at any given time.</div><div><br></div><div>Lacking that, though, it is definitely possible to use PulseAudio on multiple containers. Unfortunately, to do this, you will need to *partially* break guest isolation, by allowing guests to connect over TCP to the PulseAudio server on the host. So each of your LXC guests will have no PulseAudio server, only a PulseAudio client configuration file to make it talk to the "main" (only) PulseAudio server.</div><div><br></div><div>The process of setting up remote PulseAudio is not unique to LXC and is therefore a bit off-topic for this list. On the PA Wiki you'll find plenty of information about how to do this, along with several diverse options. <a href="http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/">http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/</a></div><div><br></div><div>-Sean</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Matlink - Sysadmin <a href="http://matlink.fr" rel="noreferrer" target="_blank">matlink.fr</a><br>
<br>
</font></span><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div></div>