BigAnteater / KVM-GPU-Passthrough

This is a simple, mostly automated guide to pass a GPU through to a VM.
316 stars 27 forks source link

Black screen and kicked back to login screen after a few seconds #5

Open hibert2323 opened 2 years ago

hibert2323 commented 2 years ago

I followed your guide successfully, but when I start my win10 vm I'm back at my sddm login screen after 4 seconds. I am using a 1070 GTX for the passthrough on my fresh arch install. (KDE / sddm) Can you help me ? custom_hooks.log libvirtd.log

BigAnteater commented 2 years ago

Can you try renaming the vm to something other than "win10" and remove the GPU PCI devices? When you start it, it will likely spit out an error message that I can help decode.

hibert2323 commented 2 years ago

thanks for your replay. I followed your instructions, vm renamed to "test10", 2 GPU PCI devices removed. now it seems to start normally. I noticed that my USB controller is still configured. as a result, my keyboard is reconnecting to the vm and becomes unusable for the host. So i remove the USB conntroler as well. And now i have a headless vm running in the background, no errors. Do you need logs again ?

hibert2323 commented 2 years ago

I got it working now. In my case, the patched vbios file was located in /var/lib/libvirt/vbios/Rom.rom. I mv it to /usr/share/vgabios/Rom.rom and updated the path in my GPU PCI device's .XML

Thank you anyway for your time and your guide ;)