Code Monkey home page Code Monkey logo

vgpu-unlock-patcher's Introduction

vGPU-Unlock-patcher

Solution to patch vGPU_Unlock into Nvidia Driver

_Kernel Support Update 2022-12-13:: Tested to work with 6.0.11 linux kernel, it may work with kernels since v5.19-rc4-38-g34a255e67615 and possibly with kernels older than v5.18-rc6-74-g8e432bb015b6, but not with versions in between these two, it would need another build conditional for 5.18! The update was also tested on 5.10 Kernel!

Support: Join VGPU-Unlock discord for Support

Usage

  1. Pre-download original .run files:

    Name Version Links
    NVIDIA-GRID-Linux-KVM-525.60.12-525.60.13-527.41 Grid v15.0 Nvidia Download, Google Drive, GitHub
  2. Setup Spoofing - edit patch.sh file and search

    if $DO_VGPU; then
        applypatch ${TARGET} vcfg-testing.patch
        vcfgclone ${TARGET}/vgpuConfig.xml 0x1E30 0x12BA 0x1E84 0x0000
    fi
    

    Change the ID's 0x1E30 0x12BA 0x1E84 0x0000 to a matching set here:
    0x1E30 0x12BA Quadro RTX 6000 to
    0x1E84 0x0000 RTX 2070 Super

    E.g. P40 to 1080Ti:
    0x1B38 0x11D9 Tesla P40 to
    0x1B06 0x120F 1080Ti
    The new vcfgclone line in this example:
    vcfgclone ${TARGET}/vgpuConfig.xml 0x1B38 0x11D9 0x1B06 0x120F

  3. Run one of these commands:
    ./patch.sh general-merge creates a merge vgpu-kvm with consumer driver
    ./patch.sh vgpu-kvm just patch the vgpu-kvm driver (in case you use secondary gpu) #proxmox
    ./patch.sh grid-merge creates a merge vgpu-kvm with VGPU guest driver
    ./patch.sh grid
    ./patch.sh general
    ./patch.sh vcfg

Changelog

  • added --docker-hack option to fix nvidia-docker-toolkit not being able to detect the correct libraries
  • cudahost=1 nvidia module option of merged driver now works with all versions, enables also raytracing on host
  • multiple fixes and tuning in the default profiles for rtx 2070+
  • simplified patching focusing only on vgpu kvm blob, split the patch for merged driver extension
  • supports setup of general-merge converting grid variant to general in case general run file is not available
  • multiple versions in branches: 460.107, 470.141, 510.73, 510.85
  • with 460.107 version ray tracing works on host with general-merge driver even with windows VMs

Other Options

--repack option that can be used to create unlocked/patched .run file (usually not necessary as you can simply start nvidia-installer from the directory). --docker-hack option to patch the driver version to make it compatible with the nvidia-docker-toolkit so vGPU functionality and Docker can be used simultaneously with a merged driver

Credits

  • Thanks to the discord user @mbuchel for the experimental patches
  • Thanks to the discord user @LIL'pingu for the extended 43 crash fix
  • Special thanks to @DualCoder without his work (vGPU_Unlock) we would not be here
  • and thanks to the discord user @snowman for creating this patcher

vgpu-unlock-patcher's People

Contributors

shawly avatar tonymanou avatar vgpu-community-drivers avatar

Stargazers

 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.