I have installed debian inside VirtualBox 5.0.4 with the following audio settings:
- Enabled: Yes
- Host Audio Driver: Windows DirectSound
- Audio Controller: ICH AC97
Debian has no user interface, so only console.
I have installed alsa-base, alsa-utils, pulseaudio.
I have started alsamixer and set master and PCM to 100%.
I have used mocp and mpg123 to try to play a mp3 but no sound.
I have installed ubuntu inside the same VirtualBox with the same audio settings.
Inside ubuntu the audio works perfectly.
VB 5.0.4 - Debian has no sound
-
Porsche_maniak
- Posts: 17
- Joined: 25. Sep 2015, 18:40
Re: VB 5.0.4 - Debian has no sound
are you using hdmi cable ?
Re: VB 5.0.4 - Debian has no sound
No, the system i`m working on has a Creative network card which is connected to a 7.1 audio system.Porsche_maniak wrote:are you using hdmi cable ?
After installing ubuntu, the sound works fine.
After installing debian without UI, the sound didn`t work.
No i have installed a new virtual system with debian with UI even there is no sound available.
Re: VB 5.0.4 - Debian has no sound
I don`t get it, i have played with some settings in debian en virtualbox at once the sound did work.
What did i change:
- Tried all audio-controllers in virtualbox (ICH-AC97, SoundBlaster 16, Intel HD Audio) but at the end it worked with ICH-A97.
- Installed guest additions again
- Alsamixer with F6 changed default audio and volume up
But i have reverted the system to check what did solve the problem. After reproducing all the steps, still nog sound.
What did i change:
- Tried all audio-controllers in virtualbox (ICH-AC97, SoundBlaster 16, Intel HD Audio) but at the end it worked with ICH-A97.
- Installed guest additions again
- Alsamixer with F6 changed default audio and volume up
But i have reverted the system to check what did solve the problem. After reproducing all the steps, still nog sound.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: VB 5.0.4 - Debian has no sound
FWIW, I'm running Debian 8.1 Cinnamon as a guest. I had to run alsamixer as well. When you select the sound card are you selecting the sound card or are you selecting "Default"? Default won't work.
When you say you "reverted the system" do you mean back to no GUI? Perhaps it's needed for the audio to work?
When you say you "reverted the system" do you mean back to no GUI? Perhaps it's needed for the audio to work?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
Re: VB 5.0.4 - Debian has no sound
I did figure it out,, the problem was 'codec="AD1980"' setting inside *.vbox file.
Solution:
1. I have a clean installation of debian.
2. After this i have installed alse
# apt-get install libasound2 alsa-base alsa-utils alsa-oss
3. After this i have given root audio permissions
# adduser root audio
4. Shutdown the machine
5. Closed VirtualBox complete
6. Changed the *.vbox file
from: <AudioAdapter controller="AC97" codec="AD1980" driver="DirectSound" enabled="true"/>
to: <AudioAdapter controller="AC97" driver="DirectSound" enabled="true"/>
7. Started the machine
8. Initialized alsa
# alsactl init
9. Test audio with audio samples of alsa self
# aplay /usr/share/sounds/alsa/Noise.wav
Solution:
1. I have a clean installation of debian.
2. After this i have installed alse
# apt-get install libasound2 alsa-base alsa-utils alsa-oss
3. After this i have given root audio permissions
# adduser root audio
4. Shutdown the machine
5. Closed VirtualBox complete
6. Changed the *.vbox file
from: <AudioAdapter controller="AC97" codec="AD1980" driver="DirectSound" enabled="true"/>
to: <AudioAdapter controller="AC97" driver="DirectSound" enabled="true"/>
7. Started the machine
8. Initialized alsa
# alsactl init
9. Test audio with audio samples of alsa self
# aplay /usr/share/sounds/alsa/Noise.wav
Re: VB 5.0.4 - Debian has no sound
Thanks for the response..loukingjr wrote:FWIW, I'm running Debian 8.1 Cinnamon as a guest. I had to run alsamixer as well. When you select the sound card are you selecting the sound card or are you selecting "Default"? Default won't work.
When you say you "reverted the system" do you mean back to no GUI? Perhaps it's needed for the audio to work?
I make snapshots after i make changes to the system..
So i can install, remove, etc. to try some solutions.
After i figured out what did help, i revert to a previous snapshot and try it again.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: VB 5.0.4 - Debian has no sound
Sorry, I removed codec="AD1980" from the .vbox file so long ago I had forgotten. It works with most Linux guests I have. Not sure why it doesn't work in Debian.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.