Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Virtualization / VMware / Adding a Sound Card to a Virtual Machine on VMWare ESXi

March 15, 2024

Adding a Sound Card to a Virtual Machine on VMWare ESXi

By default, there are no sound devices in VMWare ESXi virtual machines. If you want to get sound from a guest Windows VM, it is easier to use the RDP Remote Audio (used to forward sounds from a remote computer to an audio device of a local host in an RDP client). However, in some cases, a user or an app running in a virtual machine has to get direct access to a sound card. In this article, we will show how to add a virtual sound card to a VM running on VMWare ESXi host.

When you create a new VMWare virtual machine on ESXi, there are no virtual audio devices in the device list. If you connect to the guest Windows VM, you will see that the sound icon in the tray has a red cross on it with the message No Audio Output Device is installed. Accordingly, there are no audio devices in Windows Device Manager.

No Audio Output Device is installed on Windows VM on VMWare Esxi

missing audio device

If you connect to Windows over RDP, you can forward all the default Windows sound events to the Remote Audio device, even if there is no sound card in the VM.

rdp remote audio device

To do it, select “Remote audio playback” -> “Play on this computer” in the mstsc.exe client settings.

rdp play sound on remote computer

A virtual HD Audio device is officially considered unsupported for the VMWare ESXi virtual machines. But you can add it  via the .vmx configuration file or advanced configuration parameters of the virtual machine (in VMWare Workstation virtual machine you can add an audio device like any other virtual hardware).

Also, you can forward a physical audio device from your host directly to the VM using PCI Passthrough.

Let’s see how to add a virtual sound card via a .vmx file:

  1. Enable the SSH service in the settings of your ESXi host, on which the virtual machine is running; enable ssh on ESXi
  2. Stop the VM;
  3. Connect to your ESXi host using any SSH client (I’m using the built-in Windows SSH client):
    ssh root@mun-esxi5
    Go to the folder containing your virtual machine files. For example:
    # cd /vmfs/volumes/VMFS_Store1/VMName1
  4. Make a backup copy of the .vmx file of your VM;
  5. Edit the VMX file in the vi editor:
    # vi VMName1
  6. Add the following lines to the end of your config file:
    sound.present = "true"
    sound.allowGuestConnectionControl = "false"
    sound.virtualDev = "hdaudio"
    sound.fileName = "-1"
    sound.autodetect = "true"

    Adding a sound card to VMWare ESXi VM

  7. Save the VMX file and run the VM;
  8. Make sure that Windows Audio Service has been enabled in the guest OS, and hdaudio sound card (High Definition Audio Device) has appeared in the list of devices. High Definition Audio Device on vmware virtual machine
4 comments
11
Facebook Twitter Google + Pinterest
VirtualizationVMwareWindows 10
previous post
Time-Based (Temporary) Group Membership in Active Directory
next post
How to Disable Windows Error Reporting and Clear WER\ReportQueue Folder on Windows

Related Reading

Adding External USB Storage Drive to VMware ESXi

December 18, 2024

Configuring iSCSI Datastore (LUN) on VMware ESXi

March 15, 2024

Windows Cannot Find the Microsoft Software License Terms

April 19, 2023

Disable Auto Suspend of VM on VMWare Workstation/Player

August 26, 2021

Match Windows Disks to VMWare VMDK Files

March 12, 2024

Increasing VMFS Datastore Capacity on VMware ESXi (vSphere)

March 15, 2024

How to Install Windows 11 on a VMware...

June 8, 2023

Reduce Virtual Machine Disk Size (VMDK) on VMWare...

March 22, 2024

4 comments

Marc Beck September 22, 2022 - 3:58 am

I tried this in ESXi 7.0.3. I get the audio card and everything, but no sound from the host. Any other suggestion? Thx

Reply
Rkay February 11, 2023 - 12:29 am

This is a virtual device, without hw-backing.
If you want audio played from an audio device installed in the host, you must use pci-passthrough.

Reply
Lukas December 30, 2022 - 7:21 am

Thanks, works perfect. But how can I bring the sound of this card to a speaker of a remote desktop?

Reply
Mauricio December 5, 2024 - 3:46 pm

I’ve been experimenting with this. Latest try I installed Google Chrome and shared its desktop to a Chromecast.

Another solution, could be stream its desktop via OBS Studio

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Adding Drivers into VMWare ESXi Installation Image
  • Reduce Virtual Machine Disk Size (VMDK) on VMWare ESXi
  • How to Access VMFS Datastore from Linux, Windows, or ESXi
  • Hyper-V Virtual Machine Stuck in Stopping/Starting State
  • Recovering a Deleted VMFS Datastore on VMware ESXi/vSphere
  • Match Windows Disks to VMWare VMDK Files
  • How to Install and Configure Free Hyper-V Server 2019/2016
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top