Is it possible to use the GPU in the second PCIe x16 Slot to boot in Linux on X570 boards and to stub the first GPU for later virtualization purposes?
According to Gigabyte’s Support, it is not possible to select the second-slot GPU to boot in their BIOS’ in the first place, so I wonder if Linux will automatically boot using the second GPU if you stub the first GPU so the kernel just ignores it and goes on to the other.
Background is that most X570 boards give you 16 PCIe Lanes in the first slot and only 4 in the second, and of course I want the full 16 Lanes for the virtual Win10 gaming machine. There are 8/8 Lanes boards, but one of that would be 60€ more I don’t really want to spend (I’m already way over the original price limit). Also, having the big card in the first slot looks better. 
In short, yes it should be possible to stub the first GPU and run Linux on the second. It might come with a few headaches however, and you may not see the bios screen at boot. Once past Linux however…
Remember though that 16x PCIe 3.0 has the equivalent bandwidth of 8x PCIe 4.0.
Two possible mitigations though; either use Proxmox to run two VMs in parallel (Linux and Windows) or buy a 3400G instead, if your workflow allows for it.
1 Like
First, thank you wertigon for answering.
Now that I got my new PC up and running I can very well say that Gigabyte’s Support is wrong about their own product! Either that, or they added the feature with the latest BIOS’ for the X570 Aorus Pro within a few days, since it’s very well possible to set the second slot GPU as boot GPU.
Currently using an old GTX 960 in the second slot to boot Arch Linux. Setting up the 5700 XT in the first slot with vfio before installing xorg worked like a charm as well, already managed to set up QEMU/KVM using it and 14 threads of my natively detected 3700X.* (. Just working on a workaround for that pesky “unknown pci header type ‘127’” problem stopping me to reboot my Win10 guest, as well as for Windows not accepting the damn SCSI driver.
Hopefully I’m able to start writing a full walkthrough for this whole setup in a few days, expecting to solve all upcoming issues.
*In case you’re reading this wondering why your guest thinks it’s on sth weird like a 14-socket system: virt-manager, as writing this, isn’t able to set the CPU for native passthrough graphically. You have to activate XML editing in the settings and edit the CPU part to look like this:
<cpu mode="host-passthrough" check="partial">
<topology sockets="1" cores="7" threads="2"/>
</cpu>
Edit your core count respectively, and keep in mind to leave one core for your host.