No sound in guests

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Pok
Posts: 17
Joined: 1. Jul 2009, 14:00
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Linux, BSD, Windows

No sound in guests

Post by Pok »

Sound in guest is no longer working but it used to work OK (about 3 months back).
I don't used audio much, so I just noticed it and have no idea when it actually stopped working - but now I need audio.
All are set to use PulseAudio.
It does not matter what the guest OS type is.
Virtualbox 6.1.26 installed (from http://download.virtualbox.org/virtualb ... _amd64.run) on an x86_64 Slackware (current) using kernel 5.14.3.
Needless to say all other applications are using PulseAudio just fine, sound is OK.

When I start up a VM configured for PulseAudio I can see in the system messages this:

Code: Select all

Sep 22 03:19:34 darkstar-1 pulseaudio[26681]: [pulseaudio] main.c: D-Bus name org.PulseAudio1 already taken.
Sep 22 03:19:34 darkstar-1 pulseaudio[26678]: [pulseaudio] main.c: Daemon startup failed.
In the VM logs I have this:

Code: Select all

00:00:00.601954 Audio: Initializing PulseAudio driver
00:00:00.604051 PulseAudio: Using version 15.0.0
00:00:00.970365 PulseAudio: Failed to connect to server: Connection refused
00:00:00.970467 DrvAudio: Host audio driver 'PulseAudio' init failed with VERR_AUDIO_BACKEND_INIT_FAILED. Switching to the NULL driver for now.
00:00:00.970487 VM: Raising runtime error 'HostAudioNotResponding' (fFlags=0x0)
00:00:00.970493 Console: VM runtime error: fatal=false, errorID=HostAudioNotResponding message="Host audio backend (PulseAudio) initialization has failed. Selecting the NULL audio backend with the consequence that no sound is audible"
00:00:00.970630 HDA: Codec reset
00:00:00.970636 HDA: Reset
Looking through the forum, the closest I can get to my problem is a post 6 years old.
All fixes suggested there are not needed, are already in place.

Does anyone know what else should I check to figure out what is wrong?
Pok
Posts: 17
Joined: 1. Jul 2009, 14:00
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Linux, BSD, Windows

Re: No sound in guests

Post by Pok »

It seems I am an idiot, I have found the cause and a workaround about a year ago: not start vboxweb-service on boot.
Though I would still be interested in a permanent fix to the problem of VMs not being able to use the sound system if the web service is started during boot which in turn starts the VBoxSVC service as root.
Post Reply