<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 25, 2015 at 11:06 AM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Tue, May 26, 2015 at 12:35 AM, Oz Dror <<a href="mailto:odror7@gmail.com">odror7@gmail.com</a>> wrote:<br>
>> # pactl list sinks<br>
><br>
><br>
> A soon as I connect the lxc guest all the sinks are lost and I have a<br>
> suspended sink<br><br>
</span>Your host and guest might be fighting for the same physical sound<br>
devices. My guess is you use a custom setup which allows the guest to<br>
takeover host's device (since it can run on vt8, and have devices<br>
shown on "aplay -l"). My test was on defaut ubuntu container,<br>
restricted by apparmor.<br>
<br>
You might be able to reconfigure alsa dan pulseaudio on the container<br>
so alsa ONLY uses pulseaudio driver, and pulseaudio ONLY uses the tcp<br>
module.<br></blockquote><div><br></div><div>Do you know how to do that. </div><div> </div><div>I commented allowing audio access in the config file</div><div> #lxc.cgroup.devices.allow = c 116:* rwm</div><div>I also did not creare the devices in /dev/snd in the container.</div><div>Now I can list the sinks and see all the audio cards in the container.</div><div><br></div><div>I still cannot play anything because it is suspended. There is some improvement</div><div>I also commented in /etc/pulse/<a href="http://default.pa">default.pa</a> in the host and guest. It is still suspended.</div><div>#load-module module-suspend-on-idle<br></div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888">
</font></span><div class=""><div class="h5">_______________________________________________<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" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div></div>