Proxmox VE 9 日常维护

1. vgpu 安装 应该

apt update && apt install -y git curl wget
git clone https://github.com/anomixer/proxmox-vgpu-installer.git
cd proxmox-vgpu-installer
chmod +x proxmox-installer.sh
bash proxmox-installer.sh

 

2. 检查 nvidia 模块加载

lsmod | grep nvidia

3. 检查 vGPU 服务状态

systemctl status nvidia-vgpud
systemctl status nvidia-vgpu-mgr

4. 查看识别到的虚拟 GPU 配置文件

mdevctl types

5. 一次性复制全部 iso 到PVE 可选ISO 关键是目标目录

rsync -avh /mnt/usb/*.iso /var/lib/vz/template/iso/

参考命令:

 # apt-get install -y proxmox-kernel-7.0.2-6-pve  

[+] Found host driver:

https://alist.homelabproject.cc/d/foxipan/vGPU/20.2/NVIDIA-GRID-Linux-KVM-595.91.04-595.91.07-596.86/Host_Drivers/NVIDIA-Linux-x86_64-595.91.04-vgpu-kvm.run
https://alist.homelabproject.cc/d/foxipan/vGPU/20.2/NVIDIA-GRID-Linux-KVM-595.91.04-595.91.07-596.86/Guest_Drivers/NVIDIA-Linux-x86_64-595.91.07-grid.run
https://alist.homelabproject.cc/d/foxipan/vGPU/20.2/NVIDIA-GRID-Linux-KVM-595.91.04-595.91.07-596.86/Guest_Drivers/596.86_grid_win10_win11_server2022_server_2025_dch_64bit_international.exe

https://alist.homelabproject.cc/d/foxipan/vGPU/19.5/NVIDIA-GRID-Linux-KVM-580.159.01-580.159.03-582.53/Host_Drivers/NVIDIA-Linux-x86_64-580.159.01-vgpu-kvm.run
https://alist.homelabproject.cc/d/foxipan/vGPU/19.5/NVIDIA-GRID-Linux-KVM-580.159.01-580.159.03-582.53/Guest_Drivers/NVIDIA-Linux-x86_64-580.159.03-grid.run
https://alist.homelabproject.cc/d/foxipan/vGPU/19.5/NVIDIA-GRID-Linux-KVM-580.159.01-580.159.03-582.53/Guest_Drivers/582.53_grid_win10_win11_server2022_server_2025_dch_64bit_international.exe

 

 

参考:
https://github.com/anomixer/proxmox-vgpu-installer以下摘自 https://blog.margrop.net/post/proxmox-ve-daily-maintain/
=====================================================

Proxmox VE 9.0 日常维护,去掉未订阅的提示,和设置国内源——2025年8月6日更新

发布时间: 2023-02-26
·
阅读量 896

本文整理了 PVE 6.x / 7.x / 8.x / 9.x 的高频维护操作,并修正了旧版内容里的重复段落和明显错误。

建议先执行一次版本确认,再按对应版本操作,不要混用不同版本的源配置。

pveversion

1. 日常维护(通用)

1.1 清理未使用内核(pvekclean)

git clone https://github.com/jordanhillis/pvekclean.git /opt/pvekclean
cd /opt/pvekclean
chmod +x pvekclean.sh
./pvekclean.sh

1.2 系统更新与常用工具安装

apt-get update
apt-get install -y vim lrzsz unzip net-tools curl screen tmux uuid-runtime git
apt-get dist-upgrade -y
apt-get autoremove --purge -y

2. 去掉未订阅提示(可选)

提示:这是 UI 层修改,PVE 升级后可能被覆盖;建议仅用于个人实验环境。

cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js \
   /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak.$(date +%F-%H%M%S)sed -i "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
systemctl restart pveproxy

3. PVE UI 增强(硬件概要信息)

官网地址:https://bbs.x86pi.cn/thread?topicId=20

# 稳定版wget -q -O /root/pve_source.tar.gz \
'https://bbs.x86pi.cn/file/topic/2023-11-28/file/01ac88d7d2b840cb88c15cb5e19d4305b2.gz' \
&& tar zxvf /root/pve_source.tar.gz \
&& /root/pve_source

脚本界面里按提示选择对应版本(例如 7 -> 1 -> o)。

4. 设置国内源(按版本选择,不要混用)

4.1 PVE 6.x(Debian buster)

cat > /etc/apt/sources.list <<'EOF_INNER'
deb https://mirrors.huaweicloud.com/debian/ buster main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ buster main non-free contrib
deb https://mirrors.huaweicloud.com/debian-security/ buster/updates main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian-security/ buster/updates main non-free contrib
deb https://mirrors.huaweicloud.com/debian/ buster-updates main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ buster-updates main non-free contrib
deb https://mirrors.huaweicloud.com/debian/ buster-backports main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ buster-backports main non-free contrib
EOF_INNER
rm -f /etc/apt/sources.list.d/pve-enterprise.list
curl -fsSL https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-ve-release-6.x.gpg -o /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
apt-get update && apt-get dist-upgrade -y

4.2 PVE 7.x(Debian bullseye)

cat > /etc/apt/sources.list <<'EOF_INNER'
deb https://mirrors.huaweicloud.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ bullseye main non-free contrib
deb https://mirrors.huaweicloud.com/debian-security/ bullseye-security main
deb-src https://mirrors.huaweicloud.com/debian-security/ bullseye-security main
deb https://mirrors.huaweicloud.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.huaweicloud.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ bullseye-backports main non-free contrib
EOF_INNER
rm -f /etc/apt/sources.list.d/pve-enterprise.list
curl -fsSL https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -o /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
apt-get update && apt-get dist-upgrade -y

4.3 PVE 8.x(Debian bookworm)

cat > /etc/apt/sources.list <<'EOF_INNER'
deb https://mirrors.huaweicloud.com/debian/ bookworm main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm main non-free contrib
deb https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb-src https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free contrib
deb https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free contrib
EOF_INNER
rm -f /etc/apt/sources.list.d/pve-enterprise.list
curl -fsSL https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bookworm.gpg -o /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
apt-get update && apt-get dist-upgrade -y

4.4 PVE 9.x(Debian trixie)

cat > /etc/apt/sources.list <<'EOF_INNER'
deb https://mirrors.huaweicloud.com/debian/ trixie main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ trixie main non-free contrib
deb https://mirrors.huaweicloud.com/debian-security/ trixie-security main
deb-src https://mirrors.huaweicloud.com/debian-security/ trixie-security main
deb https://mirrors.huaweicloud.com/debian/ trixie-updates main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ trixie-updates main non-free contrib
deb https://mirrors.huaweicloud.com/debian/ trixie-backports main non-free contrib
deb-src https://mirrors.huaweicloud.com/debian/ trixie-backports main non-free contrib
EOF_INNER
rm -f /etc/apt/sources.list.d/pve-enterprise.list
curl -fsSL https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-trixie.gpg -o /etc/apt/trusted.gpg.d/proxmox-release-trixie.gpg
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve trixie pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
apt-get update && apt-get dist-upgrade -y

5. 网络与 DNS

5.1 DNS 无法解析时(临时修复)

cp /etc/resolv.conf /etc/resolv.conf.bak.$(date +%F-%H%M%S)cat > /etc/resolv.conf <<'EOF_INNER'
nameserver 223.5.5.5
nameserver 223.6.6.6
EOF_INNER
systemctl restart networking

说明:如果系统有 NetworkManager 或 DHCP 客户端接管,/etc/resolv.conf 可能会被再次覆盖。

5.2 命令行修改 PVE 默认管理 IP

vim /etc/network/interfaces

典型配置如下:

auto lo
iface lo inet loopback

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.1.2
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports enp2s0
    bridge_stp off
    bridge_fd 0

通常只需要修改 addressnetmaskgateway。修改后可执行:

ifreload -a

6. 时间同步(NTP)

6.1 PVE 6.x(timesyncd)

cat > /etc/systemd/timesyncd.conf <<'EOF_INNER'
[Time]
NTP=ntp1.aliyun.com ntp2.aliyun.com ntp3.aliyun.com ntp4.aliyun.com ntp5.aliyun.com ntp6.aliyun.com ntp7.aliyun.com
EOF_INNER
timedatectl set-ntp true
timedatectl status

6.2 PVE 7.x / 8.x / 9.x(chrony)

cat >> /etc/chrony/chrony.conf <<'EOF_INNER'
# Aliyun NTP
server ntp1.aliyun.com minpoll 4 maxpoll 10 iburst
server ntp2.aliyun.com minpoll 4 maxpoll 10 iburst
server ntp3.aliyun.com minpoll 4 maxpoll 10 iburst
server ntp4.aliyun.com minpoll 4 maxpoll 10 iburst
server ntp5.aliyun.com minpoll 4 maxpoll 10 iburst
server ntp6.aliyun.com minpoll 4 maxpoll 10 iburst
server ntp7.aliyun.com minpoll 4 maxpoll 10 iburst
EOF_INNER
systemctl restart chrony
chronyc sources -v

7. 常见报错处理

7.1 E: Sub-process /usr/bin/dpkg returned an error code

dpkg --configure -a
apt-get update --fix-missing
apt-get -f install
apt-get autoremove --purge -y
apt-get clean

7.2 升级时提示要移除 proxmox-ve 元包

先检查要被移除的包,再删除旧内核:

dpkg --list | grep -E 'pve-kernel|linux-image|linux-headers'proxmox-boot-tool kernel list

# 示例:替换为你实际旧内核版本apt-get --purge remove pve-kernel-6.2.16-15-pve
update-grub

7.3 locale: Cannot set LC_CTYPE ...

echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

8. 参考资料

古早-脚本-vbs-关闭多余进程

'提升为管理员权限,否则无法干掉SYSTEM进程
Set WshShell = WScript.CreateObject("WScript.Shell") 
If WScript.Arguments.Length = 0 Then
  Set ObjShell = CreateObject("Shell.Application") 
  ObjShell.ShellExecute "wscript.exe" _ 
  , """" & WScript.ScriptFullName & """ RunAsAdministrator", , "runas", 1 
  WScript.Quit 
End if

'添加需要批量关闭的进程名
Dim PsName
PsName="Closed "
Dim Dic : Set Dic = CreateObject("Scripting.Dictionary")
Dic.Add "AdobeCrashProcessor", "Adobe Crash Processor.exe"
Dic.Add "AdobeIPCBroker", "AdobeIPCBroker.exe"
Dic.Add "CCXProcess", "CCXProcess.exe"
Dic.Add "CCLibrary", "CCLibrary.exe"
Dic.Add "msedge", "msedge.exe"

'关闭进程方法
sub Close_Process(ProcessName) 
'On Error Resume Next:出现错误继续执行
'On Error Goto 0:出现错误中断并弹出错误
On Error Resume Next 
    for each process in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_ 
        if Ucase(process.name)=Ucase(ProcessName) then 
            process.terminate 
        end if 
    next 
end sub 

'循环关闭进程
For i = 0 To Dic.Count - 1
    Dim DictKeys, DictItems
    DicKeys = Dic.Keys
    DicItems = Dic.Items
    PsName=PsName+" "+DicKeys(i)
    Close_Process(DicItems(i))
Next

' msgbox PsName

 

ai-github-projects

对比维度LiveTalkingGPT‑vupFayAi‑VtuberDeepFaceLiveEchoMimicV2SonicAiHeyGemWan2.1‑TalkingHead
实时性✅实时 130‑250ms,20‑25fps✅实时 Live2D 渲染✅实时对话驱动 Live2D✅实时 Live2D 虚拟主播✅实时人脸替换直播流⚠原生离线,LCM 加速 4‑8fps 准实时⚠准实时,离线生成⚠离线生成,无流式实时❌原生离线,LCM 仅低帧率准实时
硬件要求最低 10GB 显存;推荐 RTX3090/4090 13‑16GB;支持 M 系列 MacCPU 可跑 Live2D;本地 LLM/TTS 建议 16G 内存CPU 可运行;本地模型建议 16G 内存CPU 可跑 Live2D;本地模型 / TTS 建议显存最低 8G 显存;推荐 12G+ N 卡 CUDA最低 10‑12GB 显存;推荐 16GB+最低 8G 显存;推荐 12GB+最低 8GB 显存;推荐 12GB+16GB 显存起步;推荐 24GB
支持平台Linux、Windows、MacOS;支持 RTMP/WebRTC/ 虚拟摄像头Windows 为主Windows 优先,可 Linux 部署Windows、Linux仅 WindowsWindows、Linux,ComfyUI 节点Windows、Linux,ComfyUIWindows 为主Linux 为主,Windows 可 ComfyUI 运行
开源协议MITMITApache‑2.0MIT非商用 MIT学术非商用学术非商用MIT学术非商用
典型场景实时数字人直播、智能客服、网页数字人,支持对话打断Live2D 虚拟主播,弹幕 / 礼物互动桌面 AI 虚拟助手、Live2D 虚拟主播、离线语音对话Live2D 虚拟主播直播、弹幕互动、变声直播实时人脸替换、视频流换脸音频驱动半身 / 全身数字人短视频生成单图 + 音频生成说话人脸短视频本地数字人克隆、声音克隆、批量短视频高质量说话头短视频素材生成
语言环境Python (Pytorch)+Vue 前端PythonPythonPythonPython + C++Python(Pytorch‑diffusers)Python(Pytorch‑diffusers)Python + GUIPython(Pytorch‑diffusers)
编译难度中,conda 环境,CUDA 适配低,pip 依赖低,一键启动脚本低,pip 安装中,预编译包即用;源码编译需 CUDA中高,diffusers 依赖、ComfyUI 部署中,diffusers 生态低,exe 打包开箱;源码部署中等高,依赖繁杂,算子环境要求高
使用难度⭐⭐⭐ 提供 WebUI,需下载多套权重⭐⭐ 配置 ini 填入 API Key⭐⭐ GUI 界面,配置模型路径⭐⭐⭐ 配置项较多⭐⭐⭐⭐ 模型多,调参复杂⭐⭐⭐⭐ 参数多,调参门槛高⭐⭐⭐ 需要配置音频特征⭐⭐ GUI 图形界面,新手友好⭐⭐⭐⭐⭐ 推理慢,调参复杂
核心技术MuseTalk/Wav2Lip/ER‑NeRF 音频唇形驱动;模块化 LLM/TTS;流式推流Live2D 渲染;LLM API 对接;正弦波简易口型Live2D 驱动;ASR‑LLM‑TTS 完整链路;支持本地大模型Live2D 渲染;多 LLM 对接;So‑VITS‑SVC 变声;Edge‑TTS人脸检测对齐;GAN 人脸置换;视频流实时推理音频驱动扩散模型;全身姿态 + 面部同步生成Wav2Vec 音频编码;端到端面部潜空间生成人脸特征提取;语音克隆;音频驱动说话头视频扩散模型;音频条件控制人脸表情姿态;时序一致性优化
总文件大小 (源码 + 权重)源码几十 MB;权重合计 12‑18GB源码几十 MB;无内置大权重,依赖外部 API源码几十 MB;本地模型合计 5‑10GB源码几十 MB;权重取决于接入模型源码几百 MB;模型权重 8‑12GB源码几十 MB;权重 15‑22GB源码几十 MB;权重 7‑10GB程序 + 模型合计约 10GB源码几十 MB;权重 20‑28GB