一、移除无效订阅提示
shell中执行如下命令,执行完毕后pve会自动重启
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service && reboot
重启成功后,注销账号,再次输入账号密码,无效提示弹窗就消失了!
二、更换国内源
将自带的源文件sources.list备份
cp /etc/apt/sources.list /etc/apt/sources.list_bak
编辑sources.list
nano /etc/apt/sources.list
注释官方源,拷贝清华源
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
编辑pve企业源
nano /etc/apt/sources.list.d/pve-enterprise.list
注释官方企业源,拷贝清华源
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
修复源401错误
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
更新列表并升级
apt update && apt dist-upgrade -y
更换LXC为国内源
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
更新列表并升级
apt update && apt dist-upgrade -y
重启PVE后升级更新生效
reboot
三、安装监控工具
安装git和wget服务
apt install git wget
git拉取脚本
git clone https://github.com/KoolCore/Proxmox_VE_Status.git
进入脚本命令行所在目录
cd Proxmox_VE_Status
执行脚本
bash ./Proxmox_VE_Status_zh.sh
执行硬件直通脚本
bash ./passthrough.sh