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 a Windows 7 as virtualbox-guest. My Ubuntu works as host. The sound is stuttering ugly. I tried to change that by changing the Audio-Controller to ICH AC97 and install the driver downloaded from CHIP. Result: After a restart nothing has changed, Sound stutters like before. Is there a way to get a proper sound? The Guest additions are installed and are working fine.

This is the Ubuntu HOST: Screenshot of System information

These are the settings of the virtualbox-machine:

Win7, 64bit

Mainboard settings

Processor settings

Acceleration settings

Audio settings

share|improve this question
    
Did you try with Virutalbox guest addtions? –  dedunumax Sep 5 '13 at 17:59
    
guest additions are installed. –  zulu34sx Sep 5 '13 at 19:26
1  
Please add details on your VM settings (processor cores, RAM assigned, virtualization settings VT-x/AMD-V, host audio driver used) with an edit to your question. Hardware specs of your host may also help to see further. –  Takkat Sep 5 '13 at 20:32
    
thank you. I added some information. If you need any further information, i'll add them to the question, too. Just ask, please. –  zulu34sx Sep 6 '13 at 8:19
1  
Great, I had the problem since years. I put the execution cap to 100% and almost everything was fine (90%). I still used Intel HD Audio driver in the guest (Windows 7) and PulseAudio in the host (Ubuntu 13.10). Then I changed the host driver to Alsa-Audio-Driver and it seems that the last 10% of problem is gone, too. Thanks a lot, guys. Gerhard Hanau/Germany –  user259608 Mar 18 at 18:30

3 Answers 3

Stuttering audio almost always indicates an insufficient performance of hardware, or memory. This also depends much on the audio source, and the software used.

In case you have no sound issues on your host Ubuntu different Pulse Audio settings will not do much about sound issues arising from running a quite demanding guest OS like Windows 7.

To minimize effects coming from limitations of a virtual machine we therefore have to make sure to assign as much hardware ressources to the guest OS as possible, but make sure the host OS is still able to perform well (including Pulse Audio in your case!).

From what we can see from your settings it seems that the requirements to get a smooth audio experience are met. There are few things only we may try to see whether there is an improvement:

  • assign 2 of 3 CPU cores without an execution cap (or 3 of 3 but then with an execution cap)
  • give the guest OS more RAM (e.g. 3 GB of 4 GB)
  • assign 256 MB of graphics RAM.

In case we then have a better sound output we may reduce the ressources step by step to find the optimum setting for the software we run on our guest.

If we still cant get sound output smoothly we may have to try using a software with less demanding sound processing like e.g. WinAmp or Foobar2000 to further track the issue down.

It may however be that your hardware capabilities - even though quite good - still are inssufficient for running Windows 7 and your additional software to play sound (and video?) at the same time.

share|improve this answer
    
i had this problem with an XP-guest, too. But to get rid of the problem i'll try your approach. Thanks for the effort. A software less demanding is quite impossible; even the turn-on-sound of windows itself is sloppy. I'll try and let you know soon, thank you! –  zulu34sx Sep 6 '13 at 13:37
1  
I tried configurations with all 3 cores,one core, much rum, almost no ram. result: Performance of host and guest alter as expected, the stuttering is always exactly the same. Any other CPU-/BIOS- or other changes than might help? –  zulu34sx Sep 6 '13 at 13:54

Having experienced the same Windows guest stutter under an Unbuntu host (12.04) - except in Win 8.1 - I found a solution that mostly conforms with Takkat's answer. My stutter occurred with the Windows guest being allocated 4 out of 4 cores, but the execution capped at 75%, with 4GB RAM, and 256 MG graphics RAM. Switching to 2 out of 4 cores - but removing the execution cap - running at 100%, eliminated 90% of the stuttering. But not all of it.

The final 10% - and the total elimination of stuttering - came when I switched from the default PulseAudio driver in VirtualBox Manager's settings, to the ALSA Audio Driver. Please note, prior to the aforementioned reallocation of CPU's and execution caps, I had also tried this driver change, and it did not remotely eliminate the stutter. The two changes in combination was required.

share|improve this answer

in Virtual Machine Settings/Audio I changed Host Audio Driver from ALSA Audio Driver -> to PulseAudio and sound became fine. No other changes to configuration (VirtualBox Guest Additions 4.3.12 (CentOS 6.5), by the way)

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.