如何从 esx 虚拟机传输声音?

如何从 esx 虚拟机传输声音?

我尝试在具有真实声卡的物理机上播放来自监控应用程序(VMware ESX 3 上的 xp 虚拟机)的声音,但是我无法从 ESX 控制台声卡添加。

目前,我通过打开 RDP 会话来传输声音并在该会话中播放。

我想在不打开 RDP 会话的情况下播放声音,您是否有解决方案可以添加虚拟声卡然后用 vlc 进行流式传输?

答案1

根据 VMWare,没有办法在 ESX 内部支持音频(或 USB)并保持可移植性/HA/vMotion。不过,正如您所知,声音是通过 RDP 支持的。这是可行的,因为音频被重定向到启动 RDP 会话的机器。

答案2

我终于找到了这个,http://www.e2esoft.cn/vsc/,它解决了我的问题,但它是一个共享软件,我真的想要一个开源解决方案。如果有人知道等效的解决方案。感谢您的回答。

答案3

查看 spice-space.org 目前它适用于 Red Hat 的 RHEV,但不适用于 ESX。

答案4

在 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。

相关内容