A Simple Mod Unlocks GPU Virtualization On NVIDIA GeForce Graphics Cards

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
Locked
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

A Simple Mod Unlocks GPU Virtualization On NVIDIA GeForce Graphics Cards

Post by Moogle Stiltzkin »

https://wccftech.com/gpu-virtualization ... imple-mod/

At this point, any limit NVIDIA places on its products won't last very long. The hash rate limiter on the GeForce RTX 3060 was cracked on many occasions in different ways. The latest limitation to be cracked is the locked GPU virtualization on GeForce cards. The simple mod 'vgpu_unlock' has enabled GPU virtualization on consumer-level cards.

NVIDIA GeForce Cards Can Enable GPU Virtualization With A Simple Mod That Changes The Device ID To A Supported GPU

GPU virtualization is a way of distributing graphics processing power to multiple users, essentially allowing multiple users to use a single GPU. This feature is something that differentiates data center GPUs from consumer GPUs. This technology has many use cases including scientific research done by multiple people on a single GPU, but the most notable of all is GeForce NOW which uses GRID GPUs to power the virtual gaming experience.


The mod to get vGPU working is quite simple. It replaces the device ID of an NVIDIA graphics card with a device ID of an officially supported GPU. This works on GP102, GP104, TU102, TU104, and GA102 GPUs for Linux and KVM VM software. It's hard to think of the use case for consumers needing GPU virtualization since this mod doesn't even function with Windows or VMware.

The code for this mod is available on GitHub and it was originally spotted out by Tom's Hardware. It's unfortunate it does not work on Windows because we could have potentially seen consumers do some crypto mining while gaming.

any potential use case for a graphics card running on a qnap? :'
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
User avatar
dolbyman
Guru
Posts: 35015
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: A Simple Mod Unlocks GPU Virtualization On NVIDIA GeForce Graphics Cards

Post by dolbyman »

GPU sharing for multuple terminal users would be one (CAD,NLE,etc) .. sounds interesting
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: A Simple Mod Unlocks GPU Virtualization On NVIDIA GeForce Graphics Cards

Post by Moogle Stiltzkin »

do you mean like this?
https://www.youtube.com/watch?v=11Fs0NHgzIY


i wonder if he heard about this development, hoping for a new video by him whether this is a game changer or not to this end :X
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
edgecrush3r
Starting out
Posts: 18
Joined: Sat Mar 19, 2011 8:34 am
Contact:

Re: A Simple Mod Unlocks GPU Virtualization On NVIDIA GeForce Graphics Cards

Post by edgecrush3r »

After many many many hours of kernel building.. seems i am finally getting closer to building the VGPU drivers for QNAP on my 472XT:)
Thought you guys might like to see progress here also.

Code: Select all

[92782.734702] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  510.73.06  Mon May  9 08:06:24 UTC 2022
[92824.006683] NVRM: GPU at 0000:01:00.0 has software scheduler DISABLED with policy BEST_EFFORT.
[92824.818590] nvidia 0000:01:00.0: MDEV: Registered
[92830.020139] NVRM: GPU at 0000:01:00.0 has software scheduler DISABLED with policy BEST_EFFORT.
[/share/Public/nvidia/nvidia-vgpu-vfio-build] #

Code: Select all

[/share/Public/nvidia/nvidia-vgpu-vfio-build] # ls -l /sys/class/mdev_bus/0000\:01\:00.0/mdev_supported_types/
total 0
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-157/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-214/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-243/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-288/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-289/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-63/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-64/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-65/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-66/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-67/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-68/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-69/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-70/
drwxr-xr-x 3 admin administrators 0 2023-06-01 16:06 nvidia-71/
[/share/Public/nvidia/nvidia-vgpu-vfio-build] #

Code: Select all

Thu Jun  1 16:11:08 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.73.06              Driver Version: 510.73.06                 |
|---------------------------------+------------------------------+------------+
| GPU  Name                       | Bus-Id                       | GPU-Util   |
|      vGPU ID     Name           | VM ID     VM Name            | vGPU-Util  |
|=================================+==============================+============|
|   0  Tesla P4                   | 00000000:01:00.0             |   0%       |
+---------------------------------+------------------------------+------------+
[/share/Public/nvidia/nvidia-vgpu-vfio-build-ubuntu/build/bin] #
User avatar
dolbyman
Guru
Posts: 35015
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: A Simple Mod Unlocks GPU Virtualization On NVIDIA GeForce Graphics Cards

Post by dolbyman »

If you planning to make this project public, a new topic would be a good idea

This one is closed now (necropost)
Locked

Return to “Users' Corner”