Greetings:
I want to run FireFox in a LXD container. I followed this wonderful HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop to a “T” (or I believe so) but can’t seem to get audio to work. In fact, I run into this little error:
speaker-test -Dpulse -c6 -twav
speaker-test 1.1.3
Playback device is pulse
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Playback open error: -111,Connection refused
Trying some of the troubleshooting tips I get the following on the guest:
ubuntu@Firefox:~$ sudo lsof -i:4713
ubuntu@Firefox:~$
and:
ubuntu@Firefox:~$ telnet 10.96.103.1 4713
Trying 10.96.103.1...
^C
(I escaped out because it wasn’t doing anything).
Trying to use youtube on firefox within the container produced this error:
ubuntu@Firefox:~$ firefox
[Child 3322, MediaDecoderStateMachine #1] WARNING: 7fea18ef8600 OpenCubeb() failed to init cubeb: file /build/firefox-CTCO4D/firefox-73.0.1+build1/dom/media/AudioStream.cpp, line 328
[Child 3322, MediaDecoderStateMachine #1] WARNING: Decoder=7fea17fda400 [OnMediaSinkAudioError]: file /build/firefox-CTCO4D/firefox-73.0.1+build1/dom/media/MediaDecoderStateMachine.cpp, line 3710
IPDL protocol error: Handler returned error code!
On the host it seems like PulseAudio is listening:
xxxx@KubuntuOptiPlex3040:~$ sudo lsof -i:4713
[sudo] password for xxxx:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 4501 xxxx 35u IPv6 172010 0t0 TCP *:4713 (LISTEN)
pulseaudi 4501 xxxx 36u IPv4 172011 0t0 TCP *:4713 (LISTEN)
Any suggestions? Thank you!
EDIT: Forgot to add some pertinent info
*-multimedia
description: Audio device
product: 100 Series/C230 Series Chipset Family HD Audio Controller
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 31
width: 64 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=snd_hda_intel latency=32
resources: irq:129
memory:f7f20000-f7f23fff memory:f7f00000-f7f0ffff
Kubuntu 19.10
Kernal: 5.3.0-40-generic