Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed Ubuntu Server 11.04 as a Virtual Box VM, which emulates the ICH AC97 audio controller.

mpg321 reports 'No default libao driver available'

According to this page the driver for this device can be loaded at boot time by modifying 'loader.conf', but I cannot find any such file on the system

Is the file called something else, or is it something that I need to create from scratch?

Alternatively is there another way I can get the audio drivers installed?

I am getting the same problem with version 10 Server, and also on a non VM machine with the same audio driver

Solution:

Install alsa-oss

sudo apt-get install alsa-oss

Add the user to the audio group

sudo adduser username audio

Log out and log in again

Finally run alsamixer and make sure that the master and PCM controls are not muted

share|improve this question
    
Have you installed the VirtualBox guest additions? –  Alastair May 23 '11 at 15:09
    
Is that possible without building the linux kernel from scratch? In any case I get the same problem on a real machine with the same audio driver –  David Sykes May 24 '11 at 6:56

2 Answers 2

up vote 2 down vote accepted

This looks like a good place to start http://wiki.debian.org/SoundFAQ they suggest trying to run the command with sudo.

I did this with mpg321 and it no longer complained about "can't find a suitable libao driver. is device in use" but still no sound from the Virtual Box VM. Same with mplayer, under normal user, runs under sudo but no sound.

share|improve this answer
    
From your link adding my user to the audio group after installing also-oss seems to have done the trick, thanks (no sound, but that might be a VM thing) –  David Sykes May 24 '11 at 11:55
    
Run alsamixer and make sure that the master and pcm lines are not muted –  David Sykes Jun 3 '11 at 6:05

Install alsa-oss

sudo apt-get install alsa-oss

Add the user to the audio group

sudo adduser username audio

Log out and log in again

Finally run alsamixer and make sure that the master and PCM controls are not muted

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.