一、移除无效订阅提示

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

重启成功后,注销账号,再次输入账号密码,无效提示弹窗就消失了!

二、更换国内源

  1. 将自带的源文件sources.list备份

    cp /etc/apt/sources.list /etc/apt/sources.list_bak
  1. 编辑sources.list

    nano /etc/apt/sources.list
  2. 注释官方源,拷贝清华源

    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
  3. 编辑pve企业源

    nano /etc/apt/sources.list.d/pve-enterprise.list
  1. 注释官方企业源,拷贝清华源

    deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
  1. 修复源401错误

    echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
  2. 更新列表并升级

    apt update && apt dist-upgrade -y
  3. 更换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
  4. 更新列表并升级

    apt update && apt dist-upgrade -y
  5. 重启PVE后升级更新生效

    reboot

三、安装监控工具

  1. 安装git和wget服务

    apt install git wget
  2. git拉取脚本

    git clone https://github.com/KoolCore/Proxmox_VE_Status.git
  3. 进入脚本命令行所在目录

    cd Proxmox_VE_Status
  4. 执行脚本

    bash ./Proxmox_VE_Status_zh.sh
  5. 执行硬件直通脚本

    bash ./passthrough.sh