Hello, I’m opening a help request after several weeks of research, because I’m looking to create a vm in GPU passthrought under framework laptop 16.
for context, I had already done this on a pre-order model with exactly the same component for a friend, here’s the link to those dotfiles (under old version):
-
vm definition: https://github.com/mathias-tavernier-roux/old_dotfiles/blob/f87a13decabcaf80368bcd6d0bf083acd9b40818/flake.nix
I’ve since converted this into a module and made many corrections and improvements to get this: https://github.com/UniDash-Linux/module-virtual-machines/blob/5c70f24222089ab45151a93afe7c5bb135b2d695/default.nix
this module worked perfectly on a desktop PC with my RX6600 (although I’ve made a number of updates to make it work on a framework whose definition is here: https://github.com/Pikatsuto/dotfiles/blob/3814954fb407642228f3faaad218700cd781ba72/system/computer/RevoluNix-Fra/default.nix
Currently, the graphics card is correctly detected in the Windows Device Manager (however, if I try to install, update or uninstall a driver from an RDP Windows session crashes with a broken driver, but still detects as if it had no error). If necessary, I can physically boot into Windows to reinstall the graphics driver (I’m both dual-boot and VFIO).
Then if I plug a monitor into the dedicated port on the graphics card. When Windows starts up, I’ll get the boot logo and then these artifacts. However, if I plug in the screen after startup, it’s simply not detected.
Using looking glass on a virtual screen, I get a black screen with the Windows mouse for 20/30s, then a slowdown after the remote access crashes.
However, the RDP works with some slowdowns in the menues, but still the Windows visual effects such as blur and transparency.
I tried several things including many improvements to the module that allowed me to better understand the GPU passthrought. But those that are notable in this case are the dump of the vbios of the graphics card that I had not yet needed to use and especially the rewriting of the ReBar values which cannot be disabled in the bios as found on this reedit which allowed me to be able to reassign the card under Linux after shutting down the VM. but not to run Windows: https://www.reddit.com/r/VFIO/comments/1b5n9js/comment/kthxovw/
I tried to downgrade the driver to the version i had installed on my friends’ computer at the time. then i just updated windows after learning about the problems when 24h2 was released
then recently, I desperately asked chatgpt who could advise me on this module which is present in the nix repositories but which is no longer compilable via the repositories and does not support my card: GitHub - gnif/vendor-reset: Linux kernel vendor specific hardware reset module for sequences that are too complex/complicated to land in pci_quirks.c
Excuse me if my English is not perfect, because I went through several translations because I exceeded the free limit of deepl
thanks to those who will take the trouble to read my message to help me