Enable Audio in Windows 2008 guest machines running on HyperV
One of the very first things that I had to do after joining Microsoft was to build my own lab. Building a lab of your own is always a fun excercise, you get to do whatever you want to do.You get to plan, deploy, test and then break the system and get used to it.
An interesting problem that came up while building my lab was to enable Audio (Sound?) on my guest machines so that I can place calls and here UM voice prompts on them. In VMWare, VirtualPC, VirtualBox and other virtualization software its just a matter of adding a virtual sound Device/Adapter. On HyperV there is a slightly different approach, you do not have to emulate Audio as a driver. All you have to do instead, is start the "Windows Audio" Service and then configure your RDP settings to ensure that Remote Audio is played on your local machine.
If your guest systems are running Windows Server 2008 or 2008 R2 there are a few additional steps to enable Audio in terminal services properties. Here is a step by step guide to get Audio up and running on your guest systems.
- Enable 'Windows Audio' service.
- Login to your Guest OS and head to Services MMC (Start > Run > Services.msc)
- Locate 'Windows Audio' service and start it. (I'd also recommend changing the 'Startup Type' to 'Automatic')
- Now to modify the Remote Desktop host configurations
- Go To Start > All Programs > Administrative Tools > Remote Desktop Services > Remote Desktop Session Host Configuration
- Under the section labeled 'Connections' select 'RDP-tcp' connection
- Right click on the connection and go to 'Properties'
- Go to the 'Client Settings' tab and un-check both 'Audio and video playback' and 'Audio recording' to enable these features.
- If you are connected to the guest via an RDP session, you will now have to disconnect and reconnect to the session for changes to take effect.
- Configure RDP client for audio.
You should now be able to connect to your guest machine via a Remote Desktop Connection and use audio services.
Additional Resources: https://blogs.msdn.com/b/virtual_pc_guy/archive/2006/06/29/648105.aspx
Comments
Anonymous
June 20, 2011
Thanks a lot. Its a useful information.Anonymous
July 20, 2011
Have you got micro phone to work without installing the RD Session Host Server role?Anonymous
January 11, 2012
What if you want to have sound on the hyper-V HOST?Anonymous
January 14, 2012
You could use something like VAC (software.muzychenko.net/.../vac.htm) PS: This is strictly for testing purposes, I would not recommend using this on your production systems.Anonymous
November 29, 2012
The comment has been removedAnonymous
November 29, 2012
Windows Server 2008 R2 inside a Hyper V virtual machine in Windows 8 (through rdp) play mp3 flawless as opposed to windows XP 32 bit. I wonder if this is the effect of both being 64 bit environments. I guess the Microsoft tech gurus need to shed some light on us virtual enthusiast, or amplify their testing scenarios to include environments such as good ol' XP (that mind you, many mission critical apps in the real world still heavily depend on)