joeknock90 / Single-GPU-Passthrough

1.48k stars 75 forks source link

Guest Freezes #79

Closed ghost closed 2 years ago

ghost commented 3 years ago

When I start the script and enter the windows 11 guest machine and use it for a few minutes it freezes. Everything is stuck and does not move. When I power off the monitor and power it back on it gives me tv static something similar to this image

#Start script
set -x
source "/etc/libvirt/hooks/kvm.conf"
killall Xorg
sleep 5
modprobe -r amdgpu gpu_sched i2c_algo_bit ttm drm_kms_helper drm snd_hda_intel
modprobe vfio vfio_pci vfio_iommu_type1
virsh nodedev-detach $VIRSH_GPU_VIDEO
virsh nodedev-detach $VIRSH_GPU_AUDIO

I have to mention a few things my gpu is an rx 6800 and I was told from one of the issues is that we don't need to unbind the vt consoles or the efi frame buffer (I tried that and there was an segmentation error or something like that). I also would like to mention in the iommu group it has the video and audio and an intel pci bridge and two amd pci bridges (which I did not passthrough either of the three) could they be the problem?

Thanks,

P.S if you need more information please ask

ghost commented 2 years ago

So It was probably something that tried to steal the gpu back. Right now I am on gentoo and I am not experiencing this problem anymore it might be a bug in the arch kernel back then or maybe even a systemd process but I have no way of knowing. And also I totally am never going to use windOS again lol