I know it's a weird question but the scenario is that I am a Windows user and I made a script which reports "something" with a sound in a Debian virtual machine, but when I have it minimized I can not hear the sound.

I wonder if there is a way to listen to the audio of a virtual machine while it's in the background?

  • 2
    Which virtualization software are you using to host the VM? – Ƭᴇcʜιᴇ007 Jun 11 '14 at 17:19
  • Hi, I use Oracle VM virtual box – Squox Jun 11 '14 at 17:26
  • can i ask why you need to report with a sound? wouldn't it be easier to send some kind of message to a monitoring proccess elsewhere? – Jarry Jun 11 '14 at 20:53
  • I don't know how to that, btw the script just reports me once my laptop's battery reach 100% so i can disconect it and prevent overcharging – Squox Jun 11 '14 at 21:53

I cannot test it on Windows because I'm using Linux but I found this feature request in which the opener would like to have the feature that the sound gets minimized when window has been minimized. This makes me assume that your problem happens because of a Windows settings (somewhere) and not a VirtualBox setting as VirtualBox seems not to have that "feature".

An alternative might be to use Seamless Mode. This integrates windows (and alert boxes) from the guest OS into the current Windows desktop session. This way you should be able to hear the sound.

To achieve this, select "View" in the menu bar of the VM window and then "Switch to seamless mode"

  • Nice to hear that it works :) – hek2mgl Jun 11 '14 at 18:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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