QaidVoid / Complete-Single-GPU-Passthrough

Single GPU VFIO Passthrough Guide
785 stars 38 forks source link

No audio when starting the VM #40

Closed m4tt72 closed 8 months ago

m4tt72 commented 8 months ago

I am running on Manjaro (I also had this issue on an Arch install). I had this issue where whenever I start a using the single GPU passthrough, I get no sound. I did some investigation and I noticed that whenever display-manager service is stopped, the current logged in user get signed out (not sure if this is expected?), thus pipewire is also stopped with display-manager.

I added the following commands in this hook script /etc/libvirt/hooks/qemu.d/$VM/started/begin/post.sh and everything seems to be working fine after !?

#!/bin/bash
set -ex

# restart pipewire services
systemctl --user -M user@ start wireplumber.service pipewire.socket pipewire.service

I am wondering if I'm doing something wrong or this is expected?

m4tt72 commented 8 months ago

I solved this inconsistency by running the virsh start VM from a tty session to not get logged out when the display-manager is killed.