I am running an Ubuntu 18.04.2 LTS VM on a PureOS 8.0 host, running GNOME Boxes 3.30.3 and a QEMU session broker. The VM has spice-vdagent 0.17.0 installed. I cannot get audio in the VM to play.
I have the volume up on the VM and host. The VM sound device is called "Dummy Sound". If I "Test Speakers" with the Sound control panel, or play a YouTube video, there is no sound.
I found a 2016 blog post about running Windows 10 on Boxes that suggests that audio is a Boxes feature:
Self-configuring audio output for Windows 10 and 8 in GNOME Boxes is pending [a bug]. To get audio working you can use one of these two options:
Option 1: [Edit QEMU XML file. I tried this, there is no
<sound>tag in my XML file.]Option 2: [Use USB sound card. I don't have a USB sound card.]
How can I play sound in the VM?