Sound is not working in Windows virtual machine
search cancel

Sound is not working in Windows virtual machine

book

Article ID: 339532

calendar_today

Updated On:

Products

VMware VMware Desktop Hypervisor

Issue/Introduction

  • Windows guest operating system is unable to connect to sound device at boot
  • Connecting to a sound device fails
  • Windows virtual machines have no sound output


Resolution

To ensure that audio is enabled in your virtual machine:
 
  1. To ensure that sound is enabled:
    1. Navigate to Virtual Machine > Settings (Fusion) or VM > Settings (Workstation).
    2. Turn on the sound card:
       
      • Fusion 7.x and above: Ensure Connect Sound card option is checked. If Sound Card is not available in the Settings pane, click Add Device > Sound Card, then click Add.
      • Fusion 6.x, 5.x and 4.x: Click Sound Card, and ensure that the switch is turned ON. If Sound Card is not available in the Settings pane, click Add Device > Sound Card, then click Add.
      • Fusion 3.x and earlier and Workstation: Click Sound, and ensure that a sound device is present. Select Enable Sound device. If there is no device in this list, add a sound device in this window.
  2. Open your .vmx file for editing. For more information, see Editing the .vmx file for your Fusion virtual machine (1014782) or Tips for editing a .vmx file (1714).
  3. Ensure that these parameters are present:

    sound.present = "TRUE"
    sound.filename = "-1"
    sound.autodetect = "TRUE"


    Add the parameters to the file if they are not present, or modify the parameters if they are showing different values.
     
  4. In the same .vmx file, remove these lines if they exist:

    sound.virtualdev = "sb16"
    sound.virtualdev = "es1371"
    sound.virtualdev = "hdaudio"

     
  5. Save the changes and close the text editor.
  6. Power on the virtual machine.

If the issue continues, update the drivers from within Windows.

To update the sound driver in a Windows virtual machine:
  1. On the Windows virtual machine desktop, right-click My Computer and click Manage.
  2. In the left pane, under System Tools, select Device Manager.
  3. Expand Sound, video and game controllers.
  4. Right-click Creative AudioPCI (ES1371, ES1373) (WDM) and click Update Driver. ((In certain cases it might be listed as an Unknown Device inside Other Devices)

    Note: In Fusion 5.x and 4.x, right-click High Definition Audio Device and click Update Driver. This applies to Windows Vista, Windows 7 and Windows 8 only.
     
  5. Select Search automatically for updated driver software.

    Windows finds and installs the appropriate driver for you virtual sound card.
     
  6. If you are prompted to restart, click Restart Now.
Note: Windows XP users must have Service Pack 2 or above installed in the virtual machine for the sound to work. For more information, see the Microsoft Knowledge Base article 322389.

Microsoft provides a Fix it tool for sound issues in Windows operating systems. For more information, see the Microsoft Fix it tool page.

If the issue still persists, check if the Windows audio service is running within the Windows virtual machine:
  1. Go to Start. For Windows XP, go to Run, type services.msc. For Windows 7, type services in the search box. For Windows 8, go to search, select Settings and type services in the search box and click View local Services.
  2. Locate the Windows Audio service.
  3. Start the service, if it is stopped. If it is already running, restart the service.
If you are trying to use any Plug and Play audio/multimedia device, ensure that the Universal Plug and Play (UPnP) Device Host service is started.

Note: The preceding links were correct as of August 7, 2012. If you find a link is broken, provide feedback and a VMware employee will update the link.

If the issue persists after trying the steps in this article:

Additional Information

For translated versions of this article, see: