How to add sound to an Ubuntu LXD VM

FYI, I found that the zabbly incus packages ship qemu 8.2 and when I was using lxc config set vm-name raw.qemu -- "-device intel-hda -device hda-duplex" with LXD 5.0.x (which has qemu 8.0), with incus 0.5.1 I need to use incus config set vm-name raw.qemu -- "-device intel-hda -device hda-duplex -audio spice".

Without -audio spice the VM doesn’t start and incus info --show-log vm-name shows:

qemu-system-x86_64: -device hda-duplex: no default audio driver available

Can see /opt/incus/bin/qemu-system-x86_64 -audio help for available drivers in addition to spice. CC @stgraber