How to fix sound issues in a Windows Vista VMWare guest
Believe it or not, some people actually like Windows Vista. I never really had much experience of the OS as a naive 6/7 year old, so I can't really pass judgement on it. I've been wanting to give it a fair try for a while, so I recently installed it inside a virtual machine using VMWare Workstation.
If you're going down the same road as me, chances are you'll have run into a very frustrating audio issue. Your virtual machine will be working perfectly fine, but the sound will crackle, stutter and hiss like it's nobody's business! Simply put, this is down to VMWare's crappy implementation of a high definition audio device. Unfortunately, this problem can't be fixed by simply installing the VMAudioFixTray tool inside the guest environment like it can with Windows XP. Instead, this fix is slightly more technical and requires a text editor.
Before following this guide, ensure that the following 2 requirements are met.
Your virtual machine must be running Windows Vista service pack 2. If you're running the original (RTM) version of Vista, you'll need to install service pack 1 first before installing service pack 2. However, if you already have service pack 1 installed, you can go straight to service pack 2.
Your virtual machine must have VMWare Tools installed. On recent versions of VMWare Workstation, such as version 16, you can't just press Alt + M, then press T to install VMWare Tools on Windows anymore; doing so will result in an error saying that VMWare Tools is not compatible with the OS. Instead, VMWare Tools must be downloaded and installed manually. Download links are included at the bottom of this guide.
You must also ensure that you're familiar with text editors and config files, since this guide involves modifying the configuration (VMX) file of your virtual machine. Extreme caution must be exercised when making these types of changes, since one small slip up could result in your VM getting fried. No one wants a fried VM!
Now let's get to the meat of this guide, fixing that god awful audio problem once and for all!
What we'll essentially be doing here is ripping the virtual machine to pieces, taking out that horrible High Definition Audio device and replacing it with a bog standard VM Audio device that is much, much better.
If the VM is currently powered on, shut it down. To shut down Windows Vista, press the Windows key to access the start menu, Tab twice, Right Arrow twice and press Enter. Once the OS has completely shut down, press Alt + F4 to shut down VMWare Workstation itself.
Browse to your VM's config file inside its folder and open it in your text editor of choice. The name of this file depends on the name of your virtual machine. My Vista VM is named Win2007 (Windows Vista came out in 2007), so my config file is named Win2007.vmx. To see the .vmx part of the filename, you'll have to show file extensions from within Windows, which is outside the scope of this guide.
With the VMX file loaded in your chosen text editor, press Control + F to launch the find dialog. In the resulting text box, type
sound.virtualDev = "hdaudio"
and press Enter.
Press Home, or FN + Left Arrow if your keyboard doesn't have a Home key, to go to the start of the
sound.virtualDev = "hdaudio"
line. Press Shift + Down Arrow to highlight the line, and press Backspace to delete it.
Press Control + S to save the file, then press Alt + F4 to close the text editor.
Relaunch VMWare Workstation, make sure your Vista VM is selected and power on the VM with Control + B. Once the VM has power, press Control + G to place yourself in the virtual environment.
Once logged back into Windows Vista, press Windows + R to launch the run box, type
and press Enter to access the sound control panel applet.
You should land on the playback screen with a list of available playback devices. Down Arrow to Speakers, then press Alt + P to access the device's properties.
Press Control + Tab twice to access the advanced tab. There, you should see a sample rate and bit depth drop-down. If not, tab to it and Down Arrow to 16 bit, 48000 Hz (DVD Quality). Press Alt + A to apply the change, then press Enter twice to close the control panel applet.
Finally, restart Windows. To do so, Press the Windows key, Tab twice, Right Arrow twice and press the letter R.
If you did everything right, you should have perfectly working audio in your Windows Vista virtual machine! Feel free to high five your PC screen! Not too hard, though. You don't want to smash it.
Gramatically incorrect, misspelled comment writers, I see you! Here are the download links to the files you will need for this guide.