Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VirtualBox - no sound on Guest Win10

Tags:

virtualbox

Recently I installed VirtualBox 6.1 on my MacBook Air and installed Windows 10 on it (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/), but somehow the sound on my guest Win10 is not working. I managed to dig for some info and found out that I need to install (https://www.realtek.com/en/component/zoo/category/pc-audio-codecs-ac-97-audio-codecs-software) but it does not work. Could anybody help me with this one?

EDIT: I get the error when I hover over the sound icon: "no audio output device is installed"

like image 688
rottenbanana Avatar asked Mar 11 '20 10:03

rottenbanana


People also ask

How do I enable sound in VirtualBox?

To enable audio for a guest, select the Enable Audio check box. The following settings are available: Host Audio Driver: The audio driver that Oracle VM VirtualBox uses on the host. On a Linux host, depending on your host configuration, you can select between the OSS, ALSA, or the PulseAudio subsystem.

Should I install Guest Additions in VirtualBox?

The VirtualBox Guest Additions consist of device drivers and system applications that optimize the operating system for better performance and usability. One of the usability features required in this guide is automated logons, which is why you need to install the Guest Additions in the virtual machine.

How do I enable hardware acceleration in VirtualBox?

To correctly enable 3D acceleration on VirtualBox virtual machines running Ubuntu or other GNU/Linux distribution, go to Settings > Display and select “VMSVGA” as the “Graphic Controller” and check the “Enable 3D Acceleration” box under Acceleration.


Video Answer


2 Answers

I tried the route in the most upvoted answer but couldn't get Win10 to install the AC97 driver. For me the solution was much simpler: select Audio Controller "Intel HD Audio" in the virtual machine settings (and leave Host Audio Driver to whatever the default was, in my case "Pulse Audio"). Enable Audio Output checked of course, and it should just work like the machine has a sound card.

Crackling is still there even with the stuff about turning off enhancements and exclusivity, but I think that's not going away since I'm trying to play 1080p video and I don't think the virtual machine has quite the kind of video hardware access (and memory allocation) that it needs to play this level of content perfectly smoothly.

like image 56
Don Joe Avatar answered Oct 22 '22 00:10

Don Joe


Fixing the sound on guest windows 10 where the host is Linux / Mac

  • Open the settings for your Windows 10 machine inside of virtualbox
  • Go to Audio > Host Audio Driver, change to "ALSA Audio Driver"
  • Go to Audio > Audio Controller, change to "ICH AC97"
  • Enable Test Mode on Windows 10 and reboot machine.
  • Download and install the Realtek driver for Vista/Win7 (32/64 bits) Driver only (ZIP file) from here and reboot your Windows 10 machine.
  • Disable test mode from the link in 4th step then reboot your Windows 10 machine.

In case you still have a crackling / popping sound

  • In the task bar, right click on the sound icon and choose playback devices
  • Double click on Speakers
  • Select the Advanced Tab
  • Set the Default Format to 16 bit, 44100 Hz (CD Quality)
  • In the Exclusive Mode, Uncheck the Allow applications... etc
  • Select the Enhancement Tab
  • Check the Disable all sound effects
  • Make sure you click apply then OK

The crackling sound would immediately disappear but you could reboot just to verify.

like image 44
MedoAlmasry Avatar answered Oct 22 '22 00:10

MedoAlmasry