Proxmox VE 5.4升級到Proxmox VE 6(中國源加速)

Proxmox VE 5.4升級到Proxmox VE 6(中國源加速)

前言

Proxmox VE 6.0發佈了正式版本,使用Proxmox VE 5.4的可通過官方提供的更新源升級到最新版本。官方提供了更新升級指南:
https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0
總所周知的原因,位於中國境內的更新速度實在無法接受,因此可更改utsc鏡像源,加快Proxmox升級速度。

1、更新Proxmox VE 5.4到最新版本

Proxmox VE 5.4目前的最新版本是Proxmox VE 5.4.11。各位在升級到6之前需要將其更新到最新的5.4版本。使用下面的命令將Proxmox VE 5.4更新源替換爲中國utsc鏡像源再更新到最新版本。
修改debian的鏡像源地址:
echo "deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free" > /etc/apt/sources.list
修改pve 5.x 更新源地址爲 no subscription,不使用企業更新源
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/pve/ stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-sub.list
關閉pve 5.x企業更新源
sed -i.bak 's|deb https://enterprise.proxmox.com/debian stretch pve-enterprise|# deb https://enterprise.proxmox.com/debian stretch pve-enterprise|' /etc/apt/sources.list.d/pve-enterprise.list
修改 ceph鏡像更新源
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-luminous stretch main" >> /etc/apt/sources.list.d/ceph.list
開始更新即可
apt updat && apt dis-ugprade

2、升級Corosync到Corosync 3

關閉高可用服務,只有一臺pve的可以忽略。
systemctl stop pve-ha-lrm
systemctl stop pve-ha-crm

添加Proxmox Corosync 3 Stretch存儲庫
echo“deb http://mirrors.ustc.edu.cn/proxmox/debian/corosync-3/ stretch main”> /etc/apt/sources.list.d/corosync3.list
運行命令更新
apt update
根據官方手冊支持執行:
apt list --upgradeable
apt dist-upgrade --download-only
apt dist-upgrade
如果關閉了高可用服務的在更新完畢後需要重新啓動高可用服務
systemctl start pve-ha-lrm
systemctl start pve-ha-crm

3、升級到Proxmox 6.0

執行以下更新命令確保最新:
apt update
apt dist-upgrade
執行鏡像源更新命令,將Debian的鏡像源更換爲升級源
sed -i 's/stretch/buster/g' /etc/apt/sources.list
添加Proxmox VE 6的鏡像存儲庫地址
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription " > /etc/apt/sources.list.d/pve-no-sub.list
修改其他鏡像源的升級包地址
sed -i -e 's/stretch/buster/g' /etc/apt/sources.list.d/pve-install-repo.list
修改Ceph的升級包地址
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-luminous buster main" > /etc/apt/sources.list.d/ceph.list
開始運行更新命令
apt update
apt dist-upgrade
在更新的過程中會出現幾次輸入的交互,第一次提示apt相關信息,輸入Q退出繼續執行更新,後續直接確認回車即可。
升級界面截圖:
Proxmox VE 5.4升級到Proxmox VE 6(中國源加速)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章