Unlock vGPU functionality for consumer-grade NVIDIA GPUs.
This tool is to be used with the kernel patches from the main
vgpu_unlock
repository!
vgpu_unlock
project excluding Python and
frida
.In the following instructions <path_to_vgpu_unlock_rs>
needs to be replaced
with the path to this repository on the target system.
Install the NVIDIA vGPU driver and kernel driver patches as detailed in the
main vgpu_unlock
project README. Ignore the steps regarding editing the
systemd service unit files.
Run cargo build --release
to compile the shared library.
Create the directories /etc/systemd/system/nvidia-vgpud.service.d
and
/etc/systemd/system/nvidia-vgpu-mgr.service.d
.
Create the files /etc/systemd/system/nvidia-vgpud.service.d/vgpu_unlock.conf
and /etc/systemd/system/nvidia-vgpu-mgr.service.d/vgpu_unlock.conf
with the following:
[Service]
Environment=LD_PRELOAD=<path_to_vgpu_unlock_rs>/target/release/libvgpu_unlock_rs.so
Create the directory /etc/vgpu_unlock
which will house the vGPU profile
override configuration file.
Create the file /etc/vgpu_unlock/profile_override.toml
with the profile
fields that are to be overridden. The following is an example for nvidia-55
(GRID P40-2A) that sets the number of heads to 1, sets the framebuffer to be
1920x1080 (1920 * 1080 = 2073600 pixels), enables CUDA, and disables the
frame-rate limiter.
[profile.nvidia-55]
num_displays = 1
display_width = 1920
display_height = 1080
max_pixels = 2073600
cuda_enabled = 1
frl_enabled = 0
Happy hacking!
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。