[Solved] Host / Guest:XP - Sound Device ownership conflict

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Meetloaf13
Posts: 23
Joined: 3. Sep 2008, 19:07

[Solved] Host / Guest:XP - Sound Device ownership conflict

Post by Meetloaf13 »

Hello,

There may be a simple solution, but I could not find one.

My problem is this. I do not know how to have the sound card available to both my Ubuntu 8.04 Host and my Guest at the same time. This is problematic b/c some applications REQUIRE a valid sound device in order to run properly in my guest (XP).

Any clues?
vkov_tinsky
Volunteer
Posts: 218
Joined: 5. Apr 2008, 20:18

Post by vkov_tinsky »

Meetloaf13 wrote:b/c some applications REQUIRE a valid sound device in order to run
If you don't need to actually hear/record anything choose the Null Audio Driver, otherwise pick PulseAudio.

Regards,
VT
Meetloaf13
Posts: 23
Joined: 3. Sep 2008, 19:07

Post by Meetloaf13 »

Should I pick pulseAudio JUST for the guest...I currently use ALSA for my host.


Got it!...You are a MAN among MEN.

Thanks!
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

Post by Sasquatch »

For the config of your Host applications, be sure to not select the hardware itself, but use ALSA with the default device. ALSA will then handle all the requests.
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.
vkov_tinsky
Volunteer
Posts: 218
Joined: 5. Apr 2008, 20:18

Post by vkov_tinsky »

Meetloaf13 wrote:Should I pick pulseAudio JUST for the guest...I currently use ALSA for my host.
Sorry, wasn't being clear: I meant only under the VM settings -> Audio -> Host Audio Driver. You can try ALSA also, but what I found is that while my media player was playing the VM wouldn't have any sound but with PulseAudio both guest/host audio work fine (this is on Xubuntu 8.04)
Meetloaf13
Posts: 23
Joined: 3. Sep 2008, 19:07

Post by Meetloaf13 »

Yes, I found the dame exact behavior vkov.

I left all Host settings alone and chose Pulse for the VM and all is well.

Again, thank you.
thebadger2008
Posts: 1
Joined: 13. Sep 2008, 16:20

SoundBlaster Live!

Post by thebadger2008 »

This confounded me too - the virtual machine (XP Pro) did not detect my host's soundcard at all... so I installed a SoundBlaster 16 on the vm, then changed the settings withing virtual box to use ALSA on the host (which is what my host uses) and SoundBlaster on the guest. Voila! sound.

Not sure why the guest did not detect the soundcard but otherwise virtualbox has turned my Ubuntu into a complete success. There were a couple of apps that I require that would not work in Wine, so running them in a guest XP has made Ubuntu the perfect choice for me.
Post Reply