Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

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

September 15, 2022 VirtualizationVMWareWindows 10

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 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 Windows 10 built in 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 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

3 comments
4
Facebook Twitter Google + Pinterest
previous post
Time-Based (Temporary) Group Membership in Active Directory
next post
Connect to Exchange Servers and Microsoft 365 with Remote PowerShell

Related Reading

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

Reset Root Password in VMware ESXi

October 12, 2023

3 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

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Adding Drivers into VMWare ESXi Installation Image
  • Shrinking VMDK Virtual Disk Size 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
  • Poor Network Performance on Hyper-V VMs in Windows Server 2019
Footer Logo

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


Back To Top