Distorted/fast audio inside a VM (QEMU/KVM)
- PipeWire version (
pipewire --version
): 0.3.55 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Arch Linux - Desktop Environment: sway
- Kernel version (
uname -r
): 5.18.10-arch1-1
Description of Problem:
When playing music (e.g. YouTube on Firefox) the audio would begin to pop and distort, then audio would start playing very fast. Note that this only happens inside QEMU/KVM.
A bit more about my setup: I am running Arch Linux as my host OS and I have a VM with Arch Linux (guest), I run pipewire/pipewire-alsa/pipewire-pulse on both (guest and host).
I can only reproduce this problem inside the guest OS, this is the way I start the VM:
qemu-system-x86_64 -enable-kvm -hda arch.qcow2 -m 8G -cpu host -smp 8 -device intel-hda -device hda-duplex -device virtio-vga-gl -display gtk,gl=on
I did a git bisect, here is the log: bisectlog.txt
f6938d8364d5f5f9562d599597afd77f4f0660a5 is the first bad commit
I sanity checked and the commit before the bad one is OK.
How Reproducible:
100%
Steps to Reproduce:
- Install Arch inside QEMU/KVM.
- Start your VM.
- Play some audio inside the VM and wait a few seconds/minutes until it start popping/going fast.
Actual Results:
Audio pops/corrupts/starts going too fast inside the VM.
Expected Results:
Audio is OK inside the VM.
Additional Info (as attachments):
-
pw-dump > pw-dump.log
: pw-dump.log
Edited by Ghost User