Debian testing guest has no sound

Discussions about using Linux guests in VirtualBox.
Locked
zelhar
Posts: 20
Joined: 29. Apr 2009, 02:06
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, *nix, other

Debian testing guest has no sound

Post by zelhar »

Hello

I am running Debian testing gues OS with guest addition installed on ubuntu host. Everything works fine except there is no sound no matter what combination of audio device/controller I try.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Debian testing guest has no sound

Post by Perryg »

Are you talking about squeeze?
zelhar
Posts: 20
Joined: 29. Apr 2009, 02:06
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, *nix, other

Re: Debian testing guest has no sound

Post by zelhar »

that's right Debian squeeze.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Debian testing guest has no sound

Post by Sasquatch »

Do other VMs you have produce any sound? What does /proc/asound/cards and /proc/asound/devices say in the Guest?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
zelhar
Posts: 20
Joined: 29. Apr 2009, 02:06
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, *nix, other

Re: Debian testing guest has no sound

Post by zelhar »

Sasquatch wrote:Do other VMs you have produce any sound? What does /proc/asound/cards and /proc/asound/devices say in the Guest?
I have sound working on windows 7 and windows xp guests.

this is what I have in /proc/asound/cards:
0 [pcsp ]: PC-Speaker - pcsp
Internal PC-Speaker at port 0x61
1 [I82801AAICH ]: ICH - Intel 82801AA-ICH
Intel 82801AA-ICH with STAC9700,83,84 at irq 21
and /proc/asound/devices:
0 [pcsp ]: PC-Speaker - pcsp
Internal PC-Speaker at port 0x61
1 [I82801AAICH ]: ICH - Intel 82801AA-ICH
Intel 82801AA-ICH with STAC9700,83,84 at irq 21
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Debian testing guest has no sound

Post by Sasquatch »

Well, that means your sound card is detected and loaded. Now, open alsamixer and check if all volume levels are at the top and not muted.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Debian testing guest has no sound

Post by Perryg »

It looks to me like it is set to the PC speaker meaning that (1) either it does not see his audio card, or (2) he has it setup wrong.
My Squeeze does have sound (see my Cards file below), but there are no system sounds on my copy. Other audio files do work though.
You might want to run an lspci to make sure that the controller is actually loaded.

Code: Select all

0 [I82801AAICH    ]: ICH - Intel 82801AA-ICH
                      Intel 82801AA-ICH with STAC9700,83,84 at irq 9
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Debian testing guest has no sound

Post by Sasquatch »

I installed Debian on a VM, only one sound card detected and it works just fine. However, in Alsamixer, the master volume was on mute (MM), so no sound would play from the speakers. Hit M when the volume control is selected and you unmute it. To test it, run the following command:

Code: Select all

speaker-test -c 2 -t wav -l 1
If you get no sound, you might have to select a device. Use the -d switch for that. Devices can be listed with:

Code: Select all

aplay -l
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
zelhar
Posts: 20
Joined: 29. Apr 2009, 02:06
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, *nix, other

Re: Debian testing guest has no sound

Post by zelhar »

I made a clean install of the default, gnome gui, and sound is working fine. What's not working is network connection- it was destroyed after I had installed guest editions. But anyway that's a subject to a different post.
jameslittle
Posts: 1
Joined: 13. Oct 2010, 23:51
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Debian

Re: Debian testing guest has no sound

Post by jameslittle »

I had the exactly the same issue, but it turned out the the PCM volume was all the way down and muted.
shadesoflight
Posts: 1
Joined: 16. Jun 2011, 02:37
Primary OS: KnoppiX
VBox Version: OSE Mandriva
Guest OSses: win xp

Re: Debian testing guest has no sound

Post by shadesoflight »

I found that having both pulse audio and alsa installed caused my problem. Selecting settings on my windows XP guest OS in virtual box, then on the audio tab choosing the alsa driver -- this gave me sound.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Debian testing guest has no sound

Post by Sasquatch »

shadesoflight wrote:I found that having both pulse audio and alsa installed caused my problem. Selecting settings on my windows XP guest OS in virtual box, then on the audio tab choosing the alsa driver -- this gave me sound.
Your reply is completely off-topic. This is Linux Guests, you have a Windows Guest. Completely unrelated to the issue discussed here.

The topic is also pretty old (October 2010), so to avoid further kicking of old topics, I'm going to lock this one.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Locked