有没有在 VMware(vSphere 5)虚拟机上安装声卡的选项

有没有在 VMware(vSphere 5)虚拟机上安装声卡的选项

我们正在使用 VMware vSphere 5.0 基础架构来运行我们的虚拟机。

我们的虚拟机由需要安装声卡的桌面(多个版本的 Windows)组成。

有没有什么解决方案可以实现这个目标?

答案1

您可以做以下两件事之一:

  • 安装物理 USB 声音设备并使用 USB 直通
  • 通过远程桌面连接到虚拟机并启用音频转发

答案2

在 Windows 虚拟机中启用远程桌面协议的声音 (1004839) 目的 本文提供在 Windows 虚拟机中启用远程桌面协议 (RDP) 声音的步骤。 解决方案 要在使用 RDP 连接时在虚拟机中启用声音:

Windows 2003:

Click Start > Run, type services.msc, and click OK.
Change the Windows Audio service to Automatic and start the service.
Click Start > Settings > Control Panel > Administrative Tools.
Click the Terminal Services Configuration section.
Double-click RDP-TCP.
Click the Client Settings tab.
Deselect Audio Mapping.

Windows XP 和 2008:

Click Start > Run, type mmc, and click OK.
Add the Group Policy Object Editor snapin.
Expand Local Computer Policy.
Expand Computer Configuration.
Expand Administrative Templates.
Expand Windows Components.
Expand Terminal Services.
In Client/Server data redirection, enable Allow Audio Redirection.
Restart the virtual machine.

Windows 7 和 2008 R2:

Click Start > Run, type mmc, and click OK.
Add the Group Policy Object Editor snapin.
Expand Local Computer Policy.
Expand Computer Configuration.
Expand Administrative Templates.
Expand Windows Components.
Expand Remote Desktop Services.
Expand Remote Desktop Session Host.
In Device and Resource redirection, enable Allow Audio and Video Playback Redirection.
Restart the virtual machine.

Windows 2012:

Right-click Start and click Run.
Type mmc, and click OK.
Add the Group Policy Object Editor snapin.
Expand Local Computer Policy.
Expand Computer Configuration.
Expand Policies.
Expand Administrative Templates.
Expand Windows Components.
Expand Remote Desktop Services.
In Device and Resource redirection, enable Allow Audio and Video Playback Redirection.
Restart the virtual machine.

Windows 2012 R2:

Right-click Start and click Run.
Type mmc, and click OK.
Add the Group Policy Object Editor snapin.
Expand Local Computer Policy.
Expand Computer Configuration.
Expand Policies.
Expand Administrative Templates.
Expand Windows Components.
Expand Remote Desktop Services.
Expand Remote Desktop Session Host.
In Device and Resource redirection, enable Allow Audio and Video Playback Redirection.
Restart the virtual machine.

笔记:

Verify on the guest OS > Options > Local Resources.

Settings under Remote audio settings, the option Play on this computer should be enabled.

Windows XP may require the policy to be set to Enable.
Windows 2008 may require the policy to be set in User Configuration\Administrative Templates\Windows Components\Terminal Services.
Windows 2008 R2 requires Windows Audio Service to be started automatically.

To ensure that this service starts automatically:
    Click Start > Run, type services.msc and click OK.
    Change the service to start in Automatic mode.

其他信息有关详细信息,请参阅 Microsoft 知识库文章 818465 和 886199。

相关内容