ilayna / Single-GPU-passthrough-amd-nvidia

My way of doing single gpu passthrough the simplest way, I've gathered many sources together to make the perfect Single GPU passthrough guide the simplest and easiest way.
GNU General Public License v3.0
397 stars 39 forks source link

no audio in VM after passthrough #30

Open toxicfox2491 opened 4 months ago

toxicfox2491 commented 4 months ago

Ive setup a VM with windows 10 running on it and pre setup the audio was fine right after I ran the scripts and adjusted the VM accordingly everything works except the audio I may just be missing something and if so could you tell me?

if it helps heres the VMs XML

toxicfox2491 commented 2 months ago

ok so I finally got audio working, I originally asked a tech support channel in a programming server for some idea's on fixing it if that makes sense and ended up using a temporary solution of using an app called AudioRelay

eventually I started looking again and found people adding PulseAudio as a device there where 2 issues with this and that is virt manager seemingly adding "Spice Audio" out of no where and only visible in the XML file and the fact pulse audio apparently gets killed when the VM is launched, I managed to find that out on one of the gitlab issues so adding : <audio id="1" type="pulseaudio" serverName="/run/user/1000/pulse/native"> worked but only if you launched the VM from TTY using virsh

toxicfox2491 commented 2 months ago

Another update! after mentioning this in a discord server someone that enabling lingering in my display manager (SDDM) should be able to fix the issue where killing the DE also kills pulse audio! So I tried it, I enabled lingering and it just works now! I can start the VM with functioning audio now without having to go to TTY first