Fixing PCI passthrough Windows 10 VM boot issues

Windows 10 booting, showing only the Windows 10 logo and no spinners or any other loading indication

Over time, I’ve encountered various issues with booting my Windows 10 VM that’s accelerated using PCI-passthrough, VirtIO etc. I believe some of the boot issues to be unique to that kind of setup, and have not always easily found solutions to these problems online, so I wanted to document my experiences for the benefit of others.