在Proxmox VE 7.2 中开启vGPU_unlock,实现显卡虚拟化
一:参考7.1安装vGPU_unlock
https://foxi.buduanwang.vip/virtualization/1683.html/
[loginshow]
二: 配置软件源
rm /etc/apt/sources.list
rm /etc/apt/sources.list.d/*
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free">>/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free">>/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free">>/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free">>/etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription">>/etc/apt/sources.list
三:安装软件包
apt update && apt install dkms git build-essential pve-kernel-5.15 pve-headers-5.15 dkms cargo jq uuid-runtime -y
安装mdevctl
wget -P /opt/ http://ftp.br.debian.org/debian/pool/main/m/mdevctl/mdevctl_0.81-1_all.deb
dpkg -i /opt/mdevctl_0.81-1_all.deb
四:配置内核
echo vfio >> /etc/modules
echo vfio_iommu_type1 >> /etc/modules
echo vfio_pci >> /etc/modules
echo vfio_virqfd >> /etc/modules
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf
update-initramfs -k all -u
五:配置引导
#编辑grub,请不要盲目改。根据自己的环境,选择设置
nano /etc/default/grub
#在里面找到:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
#然后修改为:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"
#如果是amd cpu请改为:
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt"
#更新引导
update-grub
重新启动
六:安装驱动
下载驱动文件
wget https://mirrors.apqa.cn/d/vGPU/vgpu_unlock/drivers/NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm-custom.run -P /opt
安装驱动
sh -c /opt/NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm-custom.run --dkms
安装vgpu_unlock
cd /opt && git clone https://github.com/mbilker/vgpu_unlock-rs.git
cd /opt/vgpu_unlock-rs
cargo build --release
mkdir /etc/systemd/system/{nvidia-vgpud.service.d,nvidia-vgpu-mgr.service.d}
echo -e "[Service]\nEnvironment=LD_PRELOAD=/opt/vgpu_unlock-rs/target/release/libvgpu_unlock_rs.so" > /etc/systemd/system/nvidia-vgpud.service.d/vgpu_unlock.conf
echo -e "[Service]\nEnvironment=LD_PRELOAD=/opt/vgpu_unlock-rs/target/release/libvgpu_unlock_rs.so" > /etc/systemd/system/nvidia-vgpu-mgr.service.d/vgpu_unlock.conf
systemctl daemon-reload
重启主机
七:其余参考7.1文档
[/loginshow]
rtx2060的卡在win10虚拟机上,无法装grid_win10的驱动程序,换了多个版本还是提示不兼容。只能安装正常的desktop驱动。大佬有解嘛?
請問cargo build --release後出現error: failed to download `syn v2.0.10`
有解嗎?
重新尝试
有重新嘗試過還是顯示
error: failed to download syn v2.0.10
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-2.0.10/Cargo.toml
Caused by:
failed to parse the edition key
Caused by:
this version of Cargo is older than the 2021 edition, and only supports 2015 and 2018 editions.
rust确实麻烦。直接checkout到v2.0.0这个版本,再rust编译一下
感謝 問題完美解決
博主您好,近段时间一直在腾vgpu都没成功。之前买了R730服务器+Rtx2080ti破解没成功后转卖了,换了套R730+P40专业显卡,在PVE7.2和7.3上试了很多次很多教程及附带的驱动,结果都是装上显卡驱动后重启卡死在加载显卡驱动的位置
提示是:NVRM:loading NVIDIA UNIX x86 64 Kerne Module 510.47.03 Mon Jan 2422:58:54 UTC 2022
或者是: NVRM:GPUat0000:82:00.0has software scheduler DISABLED with policy BEST_EFFORT
实在没脾气了。也不知道是卡的问题主机的问题还只是内核的问题?
同样的,esxi7也试过了,情况基本相同。
博主及路过的大佬们,知道怎么回事吗?
安装vgpu_unlock
cd /opt && https://github.com/mbilker/vgpu_unlock-rs.git
应该是
cd /opt && git clone https://github.com/mbilker/vgpu_unlock-rs.git
感谢,已更正
博主您好,驱动文件NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm.run 404了,请问您可以补一下吗?谢谢!
感谢博主,折腾好久终于可以了。显卡P4,7.3的话,直接web可以更改PCI ID了:D省了装vgpu_unlock
最后一步:安装vgpu_unlock是不是打错了,cd /opt && https://github.com/mbilker/vgpu_unlock-rs.git
是不是应该改为:cd /opt/ && git clone https://github.com/mbilker/vgpu_unlock-rs.git
是的,自动过滤掉一下 不动脑的伸手党
我就想知道,VGPU的授权怎么破*解掉。
花钱能解决的问题,本身就是问题。期待博主搞一下amd vgpu的免费玩玩,s7150x 400元可以海鲜商城搞定, Radeon INSTINCT好999元搞定,然后就没有然后嘞
大佬,我看您更新的新的KVM驱动(NVIDIA-Linux-x86_64-510.85.03-vgpu-kvm.run) 请问补丁还是用之前的补丁吗,还是说不用补丁了? 谢谢
看内核兼容性。兼容=不用patch。不兼容=打补丁
https://pve-doc-cn.readthedocs.io/zh_CN/pve-nvidia-vgpu/instdri.html
库没了[f=yun]
fatal: repository 'https://github.com/p0lloloco/vgpu_unlock-rs/' not found
更新了。
大佬,破解驱动的时候提示错误 ./NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm.run --apply-patch /opt/vgpu-5.15/NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm.patch 该怎么办呀
请问显卡驱动通用的吗?用不用根据自己的显卡改什么的?
Self-extractible archive "NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm-custom.run" successfully created.
我按照上面的操作,结果提示错误:
./NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm-custom.run --dkms
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 510.47.03
会出现安装界面,选了yes和所有OK之后就这样了
不错的教程
在7.2里直接用之前的7.1方案也可以正常使用呢,这个方案有什么更好的地方吗?
你可以仔细对比下,研究下