GithubHelp home page GithubHelp logo

navaneeth-dev / single-gpu-passthrough-amd-nvidia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ilayna/single-gpu-passthrough-amd-nvidia

0.0 0.0 0.0 34 KB

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.

Shell 100.00%

single-gpu-passthrough-amd-nvidia's Introduction

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 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)




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:

Next we will need to make the scripts executable, you can do that with the 3 line below.

chmod +x /etc/libvirt/hooks/qemu
chmod +x /etc/libvirt/hooks/qemu.d/win10/prepare/begin/start.sh
chmod +x /etc/libvirt/hooks/qemu.d/win10/release/end/revert.sh

Step 5:

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 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.

CREDITS:

Contributing

single-gpu-passthrough-amd-nvidia's People

Contributors

dr3nz4r avatar ilayna avatar navaneeth-dev avatar ohxxm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.