if you are having troubles please see the 'manual' branch
DISCLAIMER: This guide is pretty similar to many other single gpu guides, I am not trying to copy them nor take their credits, This guide is combining them all together for a better more fluid guide, this way you can use the scripts on all display-services and both amd/nvidia gpus (there might be some anomalies)
- Get the repository on your computer, either by downloading it zipped and extracting or cloning it as below
- If you chose to clone it instead of downloading it you should do
cd ~/Downloads
git clone https://github.com/wabulu/Single-GPU-passthrough-amd-nvidia.git
- Run the script which would do (almost) everything for you by changing your directory to the folder with
cd Single-GPU-passthrough-amd-nvidia/
and then executing the script withsudo bash ./setup.sh
Now you just need to setup virt-manager as for now the scripts doesn't do it automatically,
you can do that by visiting
this
link
After that, all that is left is to install the scripts with sudo bash ./install_hooks.sh
If you did everything right you can try running the vm (make sure it's named win10 otherwise make sure to replace win10
in /etc/libvirt/hooks/qemu line 8 to the name)
nvidia users might also want to go to
this
link.
If you have any problems you can join my discord server for faster response (top left) or you can mention me in your
reddit post at r/VFIO with u/wabulu.
- To uninstall run
sudo bash ./uninstall.sh
keep in mind that it will delete all previously installed virtualization packages on the system and delete the hooks.
- You can search the files for #TODOs and do them, it would help me a lot !
- For financial support you can sponsor me here
Check out these amazing people who made this guide possible !