Configuring sound in a KVM VM
In this section, we are going to see how to add the sound support to a KVM-based VM.
Getting ready
By default, the sound feature is not added to a VM. A newly created VM will not have a sound device. In order for the VM operating system to start the sound service, some arguments must be added to the VM configuration file.
When using a virtual desktop infrastructure, such as RDP, the sound is automatically added to remote virtual desktops on the client side. However, when using the SPICE protocol, a sound device must be added to the VM. As of Proxmox VE 3.4, it is not possible to add a sound interface through the GUI. However, there is a plan to add this feature in later versions of Proxmox.
How to do it…
The following steps will add a sound device to a VM:
Log in to the Proxmox node through SSH or directly through the console.
Navigate to the
/etc/pve/nodes/<node_name>/qemu-server/<vm_id>.conf
VM configuration directory.Open the VM configuration file with...