[lxc-users] lxc guest cannot play sound using pulseaudio. tcp module is loaded with permission.

Oz Dror odror7 at gmail.com
Mon May 25 06:40:18 UTC 2015


Thanks for responding.

>
> Does sound work on the host? If yes, then change your settings to make
> it work first.
>
yes sound does work on the host

>
> Does "pactl list  modules" on the host show the module loaded and
> correctly configured? An example output on my host setup
> $ pactl info
> Server String: unix:/run/user/1000/pulse/native
> ...
> Is Local: yes
>

pactl info (in server same as on client)
Server String: 192.168.x.x
Library Protocol Version: 30
S Server Protocol Version: 30
Is Local: no   <---------------------------------   Is this a problem???
Client Index: 21
Tile Size: 65472

...
>
> $ pactl list modules
> Module #0
> Name: module-device-restore
> ...
> Module #33
> Name: module-native-protocol-tcp
> Argument: auth-ip-acl=192.168.124.0/24 auth-anonymous=1
>

Yes on the server I have

Module #12
Name: module-native-protocol-tcp
Argument: auth-ip-acl=127.0.0.1;192.168.0.0/24 auth-anonymous=1
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (TCP sockets)"
module.version = "6.0"
Module #13
Name: module-esound-protocol-tcp
Argument: auth-ip-acl=127.0.0.1;192.168.0.0/24 auth-anonymous=1
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "ESOUND protocol (TCP sockets)"
module.version = "6.0"

Module #14
Name: module-zeroconf-publish
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "mDNS/DNS-SD Service Publisher"
module.version = "6.0"
Module #16
Name: module-native-protocol-tcp
Argument: auth-anonymous=1
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (TCP sockets)"
module.version = "6.0"

Module #17
Name: module-esound-protocol-tcp
Argument: auth-anonymous=1
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "ESOUND protocol (TCP sockets)"
module.version = "6.0"



> ...
>
> Can you access pulseaudio tcp port on the host? An example of open port:
> $ telnet 192.168.124.1 4713
> Trying 192.168.124.1...
> Connected to 192.168.124.1.
> Escape character is '^]'.
> ^]q
>
> telnet> q
> Connection closed.
>

Yes I can do telnet  telnet $PULSE_SERVER 4713


> Does the module load successfully on the container? An example of
> correct loading
> # export PULSE_SERVER=192.168.124.1:4713
> # pactl load-module module-native-protocol-tcp
> auth-ip-acl=192.168.124.0/24 auth-anonymous=1
> xcb_connection_has_error() returned true
> 33
>
> Yes it does


> Then run "pactl list modules" on the container. The output should be
> the same as the one you get on the host.
>

It is the same list

>
> >
> >
> What you need is that "pactl info" on the CONTAINER to return the
> correct settings, based on the host. This is on my container (the host
> is 192.168.124.1, hostname "vivid")
> # pactl info
>
pactl is the same in the host and the lxc


> xcb_connection_has_error() returned true
> Server String: 192.168.124.1:4713
> ...
> Is Local: no
> ...
>
> It looks that my settings are OK

but when I type *pacmd list-sinks* on the guest I get only the dummy card
I do not get the long list of cards that I get on the host. That is the
problem. Is there anything else that I am missing. It seems that the
connection is correct, but the device list is not passed to the guest.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150524/fe82f23b/attachment-0001.html>


More information about the lxc-users mailing list