<div dir="ltr"><div>I've searched the web for 2 weeks now and can find no documentation describing steps to configure "sound" in an LXC container.</div><div><br></div><div>I've read all the lxc-user mail back to April 2011 </div>
<div><a href="http://osdir.com/ml/lxc-chroot-linux-containers/2013-11/">http://osdir.com/ml/lxc-chroot-linux-containers/2013-11/</a><br></div><div>and can't find any previous mail on the subject describing the steps involved:</div>
<div><span style="background-color:rgb(243,243,243)"><br></span></div><div><p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px">
<span style="background-color:rgb(243,243,243)"><font color="#000000">I will admit that I may not be doing things right or may have left something out.<br style="margin:0px;padding:0px">I am using Ubuntu 13.10 and LXC.</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">On the host I do the following:<br style="margin:0px;padding:0px">
<b>$ sudo mount “-o rw,bind” “/dev/snd” “/var/lib/lxc/CN_name/rootfs/dev/snd”</b></font></span></p><p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px">
<span style="background-color:rgb(243,243,243)"><font color="#000000">I then edited the /var/lib/lxc/CN_name/config and added:<br style="margin:0px;padding:0px"><b>lxc.cgroup.devices.allow = c 116:* rwm</b></font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">I then start the container CN_name ( $ sudo lxc-start -n CN_name)</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">after this I still cannot get any sound out of the container.</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">I did a check:</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">$ lspci -v | more</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">and it comes back with Capabilities Denied for all PCI devices (re my hosts sound card) but again I am not LXC "smart" enough to know if that's the problem and if it is how to resolve it.</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">Although I have seen multiple posts be people around the web saying it can be done or that they have done it there is never anything added as to describing the commands or /var/lib/lxc/cn_name/config entries required.</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">I had really assumed that something like this would have been documented by now ... somewhere by someone.   </font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><span style="background-color:rgb(243,243,243)"><font color="#000000">The problem is NOT getting a gnome/unity/lxde/xfce etc desktop running in the container its that there's no sound present</font></span></p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px">Even Docker Desktop:</p><p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px">
<a href="http://blog.docker.io/2013/07/docker-desktop-your-desktop-over-ssh-running-inside-of-a-docker-container/#more-368">http://blog.docker.io/2013/07/docker-desktop-your-desktop-over-ssh-running-inside-of-a-docker-container/#more-368</a><br>
</p><p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px">Although presenting a Desktop via ssh to a container doesn't have sound (if you were to start firefox and go to youtube... no sound)</p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px">I've check ubuntu, arch, debian, mint etc distro LXC documentation and there just is no documentation concerning the steps to do this ?</p>
<p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px"><br></p><p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:'Lucida Grande',Arial,Helvetica,sans-serif;line-height:20px">
<span style="background-color:rgb(243,243,243)"><font color="#000000"><br></font></span></p></div></div>