侧边栏壁纸
博主头像
Narutoの博客

行动起来,活在当下

  • 累计撰写 56 篇文章
  • 累计创建 29 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录
NAS

PVE安装设置与优化

Naruto
2025-07-27 / 0 评论 / 0 点赞 / 6 阅读 / 0 字

PVE 设置

1.Pve 镜像下载

  1. 官方镜像
  2. 中国镜像

2.PVE 优化

2.1 软件源设置

源类型作用必须?默认开启
Debian 源提供基础系统软件包
PVE 源提供 Proxmox 软件更新
企业源稳定更新(付费用户)默认有,但需订阅
Ceph 源Ceph 存储组件❌(需手动开启)
  1. 禁用 企业源,将文件中的内容注释掉(在行前加 #
 vi /etc/apt/sources.list.d/pve-enterprise.list
  1. 禁用 Ceph 源
vi /etc/apt/sources.list.d/ceph.list
  1. 添加 非订阅 PVE 源

默认为官方订阅源,免费个人用户需要官方提供的非订阅源才可正常更新 PVE)

echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
  1. 移除订阅提示
sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
  1. 更换国内源(可选)
  1. 更新 PVE
apt update
apt dist-upgrade

2.2 添加详细信息显示

https://github.com/a904055262/PVE-manager-status

  • 脚本中有移除订阅弹窗
wget https://raw.githubusercontent.com/a904055262/PVE-manager-status/refs/heads/main/showtempcpufreq.sh
chmod +x showtempcpufreq.sh
./showtempcpufreq.sh

2.3 开启CPU节能模式

切换全核省点模式后重启PVE会自动变回高性能模式,需要再次执行省电命令即可!

  1. 安装工具
apt install linux-cpupower powertop -y
  1. 执行以下命令开启高性能或者省电模式
  • 全核高性能
cpupower  frequency-set -g performance
  • 全核省电
cpupower  frequency-set -g powersave
  • 0-16 开启高性能
cpupower -c 0-15  frequency-set -g  performance

2.4 删除 PVE 多余和未使用内核

  1. 查看当前用的内核
uname -a
  1. 查看系统有多少个内核
dpkg --get-selections |grep kernel
  1. 卸载无用内核
dpkg --purge --force-remove-essential proxmox-kernel-6.8.12-5-pve-signed
  1. 把不用的内核删除完成后,更新引导菜单
update-grub
  1. 重启 PVE

3.一键脚本(慎用⚠️)

https://bbs.x86pi.com/thread?topicId=20

https://github.com/ivanhao/pvetools

参考

  1. PVE安装
  2. PVE基础优化设置
0

评论区