GithubHelp home page GithubHelp logo

pand3ru / 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 105 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.

License: GNU General Public License v3.0

Shell 100.00%

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

Single-GPU-passthrough-amd-nvidia

if you are having troubles please see the 'manual' branch

My single gpu passthrough guide, it is fully automatic, and it is as simple as it gets

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:

  • 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

Step 2:

  • 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 with sudo bash ./setup.sh

Step 3:

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

Step 4:

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.

Uninstalling

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

Troubleshooting

Black Screen on VM Activation

Before that make sure we followed all the steps above correctly (Look for some indications like your HDD LED light, so that you can confirm your Windows has booted up)

  1. If you are encountering a black screen issue when running a virtual machine with single GPU passthrough, you may need to install a GPU driver on the virtual machine to resolve the problem or you need to wait for sometime to let Windows automatically install (Give 10-15 mins) your GPU driver for you. If it doesn't you need to follow these steps:
  2. After installing Windows on the VM, you need to download two main things, the NVIDIA/AMD driver for your GPU (keep it somewhere closer, maybe on Desktop for convenience) and the Teamviewer application for Windows. Install the Teamviewer application and make sure it runs at startup.
  3. Now make sure you have ticked two options "Start TeamViewer with Windows" and "Grant Easy Access (You may need to create an account)". and also Go to Settings -> Security -> In Random Password, make sure to select password strength to Disabled (Bcz your screen will be blank and you can't remotely access yor VM). Then press ok.
  4. Now after everything done when you see your VM is sitting like a limbo, no output on the monitor. Open your secondary Laptop and also install TeamViewer on it (You can use your Android device too, install TeamViewer from Google PlayStore) and login with the same account you've created before. Now after that Go to your devices list and you will see your VM. Connect to it (Bcz we've disabled password and granted easy access). Navigate to that folder where you have downloaded your GPU driver, double click on it (or double tap on it :P ) let it install.
  5. And vola ! your monitor wakes up :O

Contributing

  • 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 !

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

Contributors

ilayna avatar ironfist69 avatar dr3nz4r avatar mlxprojects avatar ohxxm avatar navaneeth-dev avatar igngeri 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.