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

Oz Dror odror7 at gmail.com
Mon May 25 17:35:40 UTC 2015


On Sun, May 24, 2015 at 11:53 PM, Fajar A. Nugraha <list at fajar.net> wrote:

> On Mon, May 25, 2015 at 1:40 PM, Oz Dror <odror7 at gmail.com> wrote:
> >> 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???
>
> Is this on the host, the one with sound card?
>

Now is is Yes on the host and No in the guest



>
>
> # pactl list sinks
>

A soon as I connect the lxc guest all the sinks are lost and I have a
suspended sink
Then I am not able to play sound on either. Some times this sink changes to
the dummy sink. I can only recover from that if I return to the host
display and do

alsa force-reload

This does not work if I ssh to the host from the lxc (I can reload alsa,
but it odes not change the Suspended sink)

pactl list sinks:

  State: SUSPENDED  <----------------------------------------------
Name: alsa_output.pci-0000_00_1b.0.analog-stereo
Description: Built-in Audio Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 7
Mute: no
Volume: front-left: 30129 /  46% / -20.25 dB,   front-right: 30129 /  46% /
-20.25 dB
        balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "92HD89E2 Analog"
alsa.id = "92HD89E2 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xf7110000 irq 30"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "8c20"
device.product.name = "8 Series/C220 Series Chipset High Definition Audio
Controller"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "IDT 92HD89E2"
alsa.components = "HDA:111d76c7,103c2af3,00100102"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
analog-output: Analog Output (priority: 9900)
Active Port: analog-output
Formats:
pcm

>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150525/8a3758cc/attachment.html>


More information about the lxc-users mailing list