Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • 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 2012
    • 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

May 21, 2021 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

2 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

Configure User’s Folder Redirection with Group Policy

February 3, 2023

Disable Built-in PDF Viewer in Microsoft Edge

February 3, 2023

Join a Windows Computer to an Active Directory...

February 2, 2023

Using Previous Command History in PowerShell Console

January 31, 2023

How to Install the PowerShell Active Directory Module...

January 31, 2023

2 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
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

  • Configure User’s Folder Redirection with Group Policy

    February 3, 2023
  • Using Previous Command History in PowerShell Console

    January 31, 2023
  • How to Install the PowerShell Active Directory Module and Manage AD?

    January 31, 2023
  • Finding Duplicate E-mail (SMTP) Addresses in Exchange

    January 27, 2023
  • How to Delete Old User Profiles in Windows?

    January 25, 2023
  • How to Install Free VMware Hypervisor (ESXi)?

    January 24, 2023
  • How to Enable TLS 1.2 on Windows?

    January 18, 2023
  • Allow or Prevent Non-Admin Users from Reboot/Shutdown Windows

    January 17, 2023
  • Fix: Can’t Extend Volume in Windows

    January 12, 2023
  • Wi-Fi (Internet) Disconnects After Sleep or Hibernation on Windows 10/11

    January 11, 2023

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
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
  • Match Windows Disks to VMWare VMDK Files
  • Using iPerf to Test Network Speed and Bandwidth
  • How to Install Windows 11 on a Hyper-V Virtual Machine?
Footer Logo

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


Back To Top