PVE9下AMD核显直通虚拟Win教程,不花屏不死机
2026-01-10
PVE8下AMD核显直通虚拟Win教程完整版看这里:
(可能会遇到杀毒软件误报,因为批处理脚本加密防止抄袭)
Resetbug修复补丁:RadeonResetBugFixService
https://github.com/inga-lovinde/RadeonResetBugFix/releases
一、PVE安装:
安装完成。
启动PVE,进入WebUI
二、进入PVE后基础设置:
1、PVE9.0换源(如已做过请忽略PVE8不适合,请看帖子上方移步PVE8的教程。):
(1)国内清华源速度较快(南方可选择中科大较快,物理就近原则!)
将自带的源文件sources.list备份
cp -r /etc/apt/sources.list.d /etc/apt/sources.list.d.bak#清空源文件夹:rm -rf /etc/apt/sources.list.d/*Copy
(2)编辑sources.list
nano /etc/apt/sources.list
#粘贴以下
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
(3)增加pve无订阅源
nano /etc/apt/sources.list.d/pve-no-subscription.list#粘贴以下pve无订阅源deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve trixie pve-no-subscriptionCopy
ctrl+x y 回车保存退出
#更新 (非必须)apt update && apt dist-upgrade -y(有时新版的PVE和新内核,新版QEMU-KVM可能会有bug,避免升级到新版PVE和内核后作妖,影响AMD核显直通)Copy
2、顺便把LXC更换为清华源:
备份APLInfo.pm
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
#更换为清华源:
sed -i 's|http://download.proxmox.com|https://mirrors.tuna.tsinghua.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
#重启服务后生效
systemctl restart pvedaemon.service
重启reboot
3、去掉登录订阅提示,添加CPU频率硬盘温度,删掉不用的内核等信息: