Closed mineLdiver closed 5 months ago
Tried running the scripts on my phone through SSH, and it seems like everything executes just fine except for the efi-framebuffer part, which I guess makes sense given that I'm using BIOS. Gonna try comment that out and try again.
Also noticed that the boot screen cursor stops blinking after a couple of seconds after executing the script, so I suppose that indicates GPU getting properly detached and the image is just a ghost.
Well, tested the new script through SSH, and the error is gone, however, when testing it with the VM, nothing seems to have changed.
I did notice some weird short flash on the terminal when running the VM compared to just running the script through SSH, but maybe it's just a random glitch.
Another note - I didn't patch vBIOS. When I opened it in a hex editor, there already wasn't anything before hex 55, so I googled and found out that newer GPUs might not need patching, so I just used the unmodified dumped vBIOS.
Were you able to remove Display Spice? This might be causing the issue (USB Redirector or whatever it's called).
<redirdev bus="usb" type="spicevmc">
<address type="usb" bus="0" port="2"/>
</redirdev>
<redirdev bus="usb" type="spicevmc">
<address type="usb" bus="0" port="3"/>
</redirdev>
You may also want to look at the VM log for more information on why the VM might be failing.
Thanks for the response. No, I still couldn't remove Spice for some reason.
I'm currently in the process of reinstalling my system, so I'll try again from scratch after that and come back here.
You could try to follow this search result and see if it helps?
https://www.reddit.com/r/VFIO/comments/vpm0wq/cannot_remove_display_spice_and_video_qxl/
Oh, nevermind actually, I was able to follow a different guide that was referenced on Arch Wiki - https://gitlab.com/risingprismtv/single-gpu-passthrough/-/wikis/1)-Preparations
And it worked fine. I have an issue with pipewire not working after entering the VM, but I've got a soundcard so I think I'll just figure out how to passthrough that. Thanks.
Arch Linux, RTX 4060 (+ GTX 970, but it's isolated for a Windows 7 VM, which doesn't work either so whatever lol) VT-d enabled, IOMMU enabled (checked through dmesg).
I followed this guide to the end, got the VM installed, hooks written, and scripts added.
When I start the VM, I get kicked out of KDE to the Linux's boot screen (I suppose?) where the last line says
Starting Terminate Plymouth Boot Screen
, and then nothing happens and I have to force shutdown my system. It seems like the disk is busy for a few seconds after that, but then, it's just idling on the boot screen.I tried with and without the KDE (Wayland) line in start.sh, no effect.
One thing though, I can't for the life of me remove Display Spice and Video. Video just doesn't have the remove button, and when I do remove it from XML, it comes back. Removing Display Spice however throws an error, and editing XML throws the same error, not allowing me to save the configuration:
Here's also my XML:
Also, I should probably mention that my host system doesn't seem to support UEFI at all, it's just legacy BIOS, with no mention of UEFI whatsoever.