Automatically set up a Linux system for PCI pass-through and check if it is compatible
This project consists of 3 parts.
gpu-pt-check.sh
) that automatically checks to what extend a computer is compatible with GPU pass-through in its given configuration.setup.sh
) that automatically installs and configures your system for GPU pass-through (Only tested on fresh installs of Fedora 28 x64 with Gnome, booted in UEFI mode!)gpu-pt-check.sh
script when you boot from it without any user interaction required.Update: There now is an additional script that installs Bumblebee and the Nvidia proprietary driver. (Doesn't appear to work properly yet.)
This project has primarely be created to check notebooks. It will probably also work on desktop computers, but checking how and if the conenction between the GPU and the display is MUXED (and if so how) wouldn't make much sense on a desktop computer.
(The output does not represent an existing laptop. It's just an example ran using some mock data from a laptop on a desktop.)
You have two options:
This this case you a install stick. You need to follow the instructions on the Fedora website to turn it into a bootable Fedora installation USB stick: https://getfedora.org/en/workstation/download/ Then you need to boot from it in EFI / UEFI / non-BIOS mode. Usually when you open up the boot menu when you PC starts, you get multiple entries for your USB stick. You want to pick the one that says UEFI or EFI / or non-BIOS ... Then you wait for it to boot up and follow the instructions to install Fedora on the Fedora stick.
Alternatively you can create a VM with a UEFI firmare (in virtual machine manager: screenshot 1, screenshot 2) and pass the Fedora stick through to it (in virtual machine manager: screenshot 3) and tell the VM to boot from the Fedora iso image directly. You don't need a storage device (vhd)! Then you simply boot the VM (make sure it boots from the iso image and follow the instructions to install Fedora on the Fedora stick.
Now to add the setup script to the USB stick, simply boot from the USB stick (either using the VM (you should remove the virtual CD drive frist, so that it won't boot from the iso again) or boot from it directly (in EFI / UEFI ... mode!)). Then run the following commands to download the setup script and execute it with root privileges:
sudo dnf install -y git && git clone https://github.com/T-vK/GPU-pass-through-compatibility-check.git && sudo ./GPU-pass-through-compatibility-check/setup.sh
gpu-pt-check.sh
.)