You are not logged in.

#1 2017-01-14 13:14:33

predmijat
Member
Registered: 2014-09-30
Posts: 39

[Solved] No sound in VirtualBox guest (Windows 7)

Hi,

There's no sound in VirtualBox guest (Windows 7).

Info:

$ uname -r
4.8.13-1-ARCH

$ pacman -Qs virtualbox
local/virtualbox 5.1.12-2
    Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-ext-oracle 5.1.12-1
    Oracle VM VirtualBox Extension Pack
local/virtualbox-guest-iso 5.1.12-1
    The official VirtualBox Guest Additions ISO image
local/virtualbox-host-modules-arch 5.1.12-1
    Virtualbox host kernel modules for Arch Kernel

$ pacman -Qs pulseaudio
local/lib32-libpulse 9.0-2
    A featureful, general-purpose sound server (32-bit client libraries)
local/pasystray 0.6.0-3 (multimedia)
    PulseAudio system tray (a replacement for padevchooser)
local/pavucontrol 3.0-4
    PulseAudio Volume Control
local/pulseaudio 9.0-1
    A featureful, general-purpose sound server
local/pulseaudio-alsa 2-3
    ALSA Configuration for PulseAudio

$ pacman -Qs alsa
local/alsa-lib 1.1.3-1
    An alternative implementation of Linux sound support
local/alsa-plugins 1.1.1-1
    Extra alsa plugins
local/alsa-utils 1.1.3-1
    An alternative implementation of Linux sound support
local/lib32-alsa-lib 1.1.3-1
    An alternative implementation of Linux sound support (32 bit)
local/lib32-alsa-plugins 1.1.1-1
    Extra alsa plugins (32-bit)
local/pulseaudio-alsa 2-3
    ALSA Configuration for PulseAudio

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I have working sound on host.
I have tried reinstalling VirtualBox.
I have tried plugging in a microphone (found that on some help thread).
I have tried deleting ~/.pulse-cookie.

Guest settings are:

Host Audio Driver: PulseAudio
Audio Controller: Intel HD Audio

(actually I've tried every possible combination with no result)

When I start the guest I get:

No audio devices could be opened.
Selecting the NULL audio backend with
the consequences that no sound is audible.

Error ID: HostAudioNotResponding
Severty: Warning

VirtualBox Log Viewer output:

Audio: Initializing PulseAudio driver
Audio: Using VBox 5.0.x audio code!
PulseAudio: Audio input/output stopped!
PulseAudio: Failed to connect to server: Connection refused

As far as I gathered, the "Connection refused" has nothing to do with permissions. I've tried adding user to audio group, I've even tried running it as root, so I don't think that's the issue.

Thanks

Last edited by predmijat (2017-01-18 08:35:16)

Offline

#2 2017-01-18 04:05:13

Flat
Member
Registered: 2016-05-30
Posts: 17

Re: [Solved] No sound in VirtualBox guest (Windows 7)

Try this: In either

/etc/pulse/client.conf

or under the user that the virtual machine is executed under

~/.pulse/client.conf

add

default-server = 127.0.0.1

and add

load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1

into

/etc/pulse/default.pa

This should allow VirtualBox to connect to pulseaudio to use sound on the host computer.


(´ω)

Offline

#3 2017-01-18 08:30:50

predmijat
Member
Registered: 2014-09-30
Posts: 39

Re: [Solved] No sound in VirtualBox guest (Windows 7)

F-ing A man, it's working! I've lost so much time on this before posting here...Thank you!

Offline

#4 2017-01-18 08:33:57

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: [Solved] No sound in VirtualBox guest (Windows 7)

Don't forget to mark your post as solved.  Edit the first post in your thread and pre-pend "[Solved]" to the title without the quotes.

Last edited by headkase (2017-01-18 08:34:21)

Offline

#5 2021-03-30 05:20:59

ch4ser
Member
Registered: 2021-03-30
Posts: 1

Re: [Solved] No sound in VirtualBox guest (Windows 7)

Emmmmm....But when the audio output from windows guest is normal, i lose my audio output from arch linux host....

Offline

#6 2024-01-01 09:24:02

alvarolucas
Member
Registered: 2024-01-01
Posts: 1

Re: [Solved] No sound in VirtualBox guest (Windows 7)

just remove/comment back
#default-server = 127.0.0.1
on /etc/pulse/client.conf
Audio is working now on both (VMWare and laptop)

Last edited by alvarolucas (2024-01-01 09:25:06)

Offline

Board footer

Powered by FluxBB