Configure PCI passthrough for KVM on Devuan Linux 5.0
Configure PCI passthrough for KVM on Devuan Linux 5.0
I haven't adjusted those settings in the BIOS, so I'll make sure to review and confirm. Would that turn off my primary screen? I'm hoping everything works smoothly so I can keep all four displays running while using Windows 11 for games and dev tools, then switch back to Linux when needed.
I've been employing GPU passthrough for several years across various configurations. I'm not considered an expert, but I follow the proxmox documentation (https://pve.proxmox.com/wiki/Pci_passthrough) to ensure accuracy. Your approach appears sound. To refresh the grub setup, I typically run "update-grub." For VFIO updates, using "update-initramfs" seems to work well. You can check if iommu is active and if VFIO loads correctly by searching online—results may vary depending on your Linux distribution. Regarding your VM setup, I'm unsure about the exact configuration you're using. Are you running Virsh Manager, QEMU with a .conf file, or another method? A sample configuration could help clarify things. I suspect your system is loading the 6900X via the GPU, but if the VM freezes or locks up, it might be due to GPU usage interfering. Your lspci -nnk also points to an AMD GPU driver, which aligns with what you expect. If you need to pass the 6900X to the VM, setting WX4100 as the primary GPU is likely necessary. I'm not certain about the exact hardware connections—do you have both monitors linked to the WX4100? And are there any additional displays connected to the 6900XT? Before launching the VM, ensure no signal is coming from the 6900XT.
Stay updated with the progress. I'll assist to the best of my ability. If you're at the next phase, using the virsh manager GUI, make sure to enable XML editing in Preferences Menu. Then edit the PCI device's XML file (video only) and manually set multifunction to "on".
I understand I mentioned I’d follow up with updates, but I’ve been occupied elsewhere. Here are your concerns clarified: Would your main monitor connected to the 6900XT stay black until you boot Windows 11? Could you still run Linux normally and switch to Windows 11 when starting the VM? And after shutting down the VM, would it return to a full Linux display? I should have asked these before diving in, but now they’re surfacing. Thanks.
The configuration you're using will keep everything black until Windows 11 starts. It resets back to black after shutting down the VM. Switching between Linux and Windows 11 in this setup isn't straightforward. Ideally, you might be able to unload the video driver to free up resources, but that would require a complex configuration. To avoid issues, I connect both the WX4100 and RX6900 to the main display and manage input switching via a KVM or similar device.
Maybe with that setup, if you have a 7900XT and the 6900XT connected to the same monitor, would it automatically switch between them based on which one you use? For example, when launching the VM, would it change to the 6900XT for Windows 11? And after shutting it down, should it revert back to the 7900XT for Linux? These questions are really useful, so thank you for your help.