Skip to content

My way of doing single gpu passthrough the simplest way, I've gathered many sources together to make the perfect Single GPU passthrough guide the simplest and easiest way.

Notifications You must be signed in to change notification settings

shamllakh/Single-GPU-passthrough-amd-nvidia

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Single-GPU-passthrough-amd-nvidia

My way of doing single gpu passthrough the simplest way, I've gathered many sources together to make the perfect Single GPU passthrough guide the simplest and easiest way.

DISCLAIMER: This guide is pretty similar to many other single gpu guides, I am not trying to copy them and or take their credit, This guide is combining them for the better, this way you can use the scripts on all display-services (there might be some anomalies)

Step 1:

Step 2:

  • clone my repo and and copy the hooks folder to /etc/libvirt/

cd ~/Downloads
git clone https://github.com/wabulu/Single-GPU-passthrough-amd-nvidia.git
cd Single-GPU-passthrough-amd-nvidia/{Nvidia/AMD} depends on which graphics card you have
sudo cp -r hooks/ /etc/libvirt

Step 3:

Now that the hooks folder is in the right place you are going to change the kvm.conf file to match your setup.
to do this you first need to write:

sudo lspci -nnk

It should spit out something similar to this:
lspci -nnk

you need to look for your gpu and audio pci number and change it accordingly in the kvm.conf file, for this all you have to do is write:

sudo nano /etc/libvirt/hooks/kvm.conf

(reminder: you start writing the numbers after pci_0000_{your numbers} and all dots should be replaced with _)
Now all you need to do is:
sudo systemctl restart libvirtd

Step 4:

If you did everything right you can try running the vm (make sure it's named win10 otherwise make sure the folder win10 in /etc/libvirt/hooks/qemu.d is named accordingly) nvidia users might also want to go to the url mentions at step 1 and follow the rest.

If you have any problems should join my discord server for faster response (top left) or you can mention me in your reddit post at r/VFIO with u/wabulu.

CREDITS:

About

My way of doing single gpu passthrough the simplest way, I've gathered many sources together to make the perfect Single GPU passthrough guide the simplest and easiest way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%