You are not logged in.

#1 2021-05-09 21:28:15

joesakic4
Member
Registered: 2021-05-09
Posts: 2

KVM single gpu passsthrough suddenly failing.

Im gonna cut right to the chase.

I had a windows gaming VM that was working awesome, until i took my graphics card out to put new thermal paste on and put it back in (Also modded the GPU with custom fans earlier). After this, at first the VM started being much more laggy and games were having "Out of memory" errors come up. Then the VM stopped working altogether. These are the errors i get from libvirtd:

May 09 23:10:51 joesakic4 libvirtd[378]: Failed to allocate PCI device list: unsupported configuration: pci backend driver 'default' is not supported
May 09 23:10:57 joesakic4 libvirtd[378]: internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin /etc/libvirt/hooks/qemu win10n release end -) unexpected exit status 1: +++ source /etc/>
                                         ++++ VIRSH_GPU_VIDEO=pci_0000_01_00_0
                                         ++++ VIRSH_GPU_AUDIO=pci_0000_01_00_1
                                         ++++ VIRSH_GPU_USB=pci_0000_01_00_2
                                         ++++ VIRSH_GPU_BUS=pci_0000_01_00_3
                                         +++ modprobe -r vfio_pci
                                         +++ modprobe -r vfio_iommu_type1
                                         +++ modprobe -r vfio
                                         +++ virsh nodedev-reattach pci_0000_01_00_0
                                         +++ virsh nodedev-reattach pci_0000_01_00_1
                                         +++ virsh nodedev-reattach pci_0000_01_00_2
                                         +++ virsh nodedev-reattach pci_0000_01_00_3
                                         +++ echo 1
                                         +++ echo 1
                                         /etc/libvirt/hooks/qemu.d/win10n/release/end/revert.sh: line 16: /sys/class/vtconsole/vtcon1/bind: No such file or directory
                                         +++ echo efi-framebuffer.0
                                         +++ modprobe nvidia_drm
                                         +++ modprobe nvidia_modeset
                                         +++ modprobe drm_kms_helper
                                         +++ modprobe nvidia
                                         +++ modprobe drm
                                         +++ modprobe nvidia_uvm
                                         +++ modprobe i2c_nvidia_gpu
                                         +++ sleep 3
                                         +++ nvidia-xconfig --query-gpu-info
                                         +++ systemctl start sddm.service
                                         +++ systemctl s
May 09 23:10:57 joesakic4 libvirtd[378]: Hook script execution failed: internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin /etc/libvirt/hooks/qemu win10n release end -) unexpected e>
                                         ++++ VIRSH_GPU_VIDEO=pci_0000_01_00_0
                                         ++++ VIRSH_GPU_AUDIO=pci_0000_01_00_1
                                         ++++ VIRSH_GPU_USB=pci_0000_01_00_2
                                         ++++ VIRSH_GPU_BUS=pci_0000_01_00_3
                                         +++ modprobe -r vfio_pci
                                         +++ modprobe -r vfio_iommu_type1
                                         +++ modprobe -r vfio
                                         +++ virsh nodedev-reattach pci_0000_01_00_0
                                         +++ virsh nodedev-reattach pci_0000_01_00_1
                                         +++ virsh nodedev-reattach pci_0000_01_00_2
                                         +++ virsh nodedev-reattach pci_0000_01_00_3
                                         +++ echo 1
                                         +++ echo 1
                                         /etc/libvirt/hooks/qemu.d/win10n/release/end/revert.sh: line 16: /sys/class/vtconsole/vtcon1/bind: No such file or directory
                                         +++ echo efi-framebuffer.0
                                         +++ modprobe nvidia_drm
                                         +++ modprobe nvidia_modeset
                                         +++ modprobe drm_kms_helper

Does anyone have an idea as to how i can fix this? Ive tried lots of different things but cant seem to figure it out. Like i said the VM was working great up until this. Really appreciate any help.

Offline

#2 2021-05-10 00:17:39

joesakic4
Member
Registered: 2021-05-09
Posts: 2

Re: KVM single gpu passsthrough suddenly failing.

Figured it out. Some nvidia modules werent unloading so i had to use
systemctl stop nvidia-persistanced
in my start script.

Offline

Board footer

Powered by FluxBB