标签搜索
PVE

PVE8优化

cicaba
2023-12-08 / 13 评论 / 13 阅读 / 正在检测是否收录...

一、更改源关闭订阅提示

将/etc/apt/sources.list.d/pve-enterprise.list 文件删除:
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
或者:/etc/apt/sources.list.d/pve-enterprise.list内容替换为
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bookworm pve-no-subscription

Proxmox软件源更换
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list

Debian系统源更换
sed -i.bak "s#ftp.debian.org/debian#mirrors.aliyun.com/debian#g" /etc/apt/sources.list     #阿里Debian源
sed -i "s#security.debian.org#mirrors.aliyun.com/debian-security#g" /etc/apt/sources.list     #阿里Debian源
apt update && apt-get install -y apt-transport-https ca-certificates  --fix-missing

LXC仓库源更换
sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm  
wget -O /var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn https://mirrors.ustc.edu.cn/proxmox/images/aplinfo-pve-7.dat
systemctl restart pvedaemon

CEPH源更换
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list     #中科大源
sed -i.bak "s#http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g" /usr/share/perl5/PVE/CLI/pveceph.pm     #中科大源

删除订阅弹窗
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

二、删除 local-lvm 合并到 local

lvremove pve/data
lvextend -l +100%FREE -r pve/root

然后在 web 界面中前往 数据中心 > 存储, 移除 local-lvm ,再编辑 local,内容里选中所有的项目

3

评论 (13)

取消
  1. 头像
    xgeyocnlgo
    Windows 10 · Google Chrome

    博主真是太厉害了!!!

    回复
  2. 头像
    gekzwqhdmw
    Windows 10 · Google Chrome

    叼茂SEO.bfbikes.com

    回复
  3. 头像
    yflnqphhhh
    Windows 10 · Google Chrome

    叼茂SEO.bfbikes.com

    回复
  4. 头像
    idobhxxbzo
    Windows 10 · Google Chrome

    怎么收藏这篇文章?

    回复
  5. 头像
    aocwcoqcox
    Windows 10 · Google Chrome

    不错不错,我喜欢看 https://www.ea55.com/

    回复
  6. 头像
    slvvwlsuuo
    Windows 10 · Google Chrome

    哈哈哈,写的太好了https://www.cscnn.com/

    回复
  7. 头像
    btxxzykibc
    Windows 10 · Google Chrome

    文章的确不错啊https://www.cscnn.com/

    回复
  8. 头像
    eusmtbooxa
    Windows 10 · Google Chrome

    哈哈哈,写的太好了https://www.lawjida.com/

    回复
  9. 头像
    zrafuwdvnr
    Windows 10 · Google Chrome

    文章深入浅出,既有深度思考,又不乏广度覆盖,令人叹为观止。

    回复
  10. 头像
    rismespzim
    Windows 10 · Google Chrome

    既有宏观视野,又兼顾微观细节。

    回复
  11. 头像
    ehcxvqywdn
    Windows 10 · Google Chrome

    文章结构紧凑,层次分明,逻辑严密,让人一读即懂。

    回复
  12. 头像
    xxvmyiqiuz
    Windows 10 · Google Chrome

    主题紧扣时代脉搏,具有现实意义。

    回复
  13. 头像
    veharvwtur
    Windows 10 · Google Chrome

    文章结构紧凑,层次分明,逻辑严密,让人一读即懂。

    回复