飘云飘云

漂泊的云,停留的心!人的头脑太复杂,时间过得久,有时候连自己也被自己骗了,记下来才是最真实的……

Proxmox VE(Proxmox Virtual Environment)V5.4升级到Proxmox VE(Proxmox Virtual Environment)V6.0(使用中国源加速)


前言

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的镜像源地址(/etc/apt/sources.list):

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
echo "deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib" > /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-get update && apt-get dist-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-get update

根据官方手册支持执行:

apt-get list --upgradeable
apt-get dist-upgrade --download-only
apt-get dist-upgrade

如果关闭了高可用服务的在更新完毕后需要重新启动高可用服务

systemctl start pve-ha-lrm
systemctl start pve-ha-crm

3、升级到Proxmox 6.0

执行以下更新命令确保最新:

apt-get update
apt-get 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-get update
apt-get dist-upgrade

在更新的过程中会出现几次输入的交互,第一次提示apt相关信息,输入Q退出继续执行更新,后续直接确认回车即可。
升级界面截图:
01.png

升级完后的操作:
安装ifupdown2:

apt-get install ifupdown2

相关阅读:
Proxmox VE(Proxmox Virtual Environment)V5.3升级到Proxmox VE(Proxmox Virtual Environment)V5.4:
http://piaoyun.cc/1387.html

Proxmox VE(Proxmox Virtual Environment) 6.X 版本添加国内源设置教程:
http://piaoyun.cc/1378.html

当前页面:飘云 » Proxmox VE(Proxmox Virtual Environment)V5.4升级到Proxmox VE(Proxmox Virtual Environment)V6.0(使用中国源加速)

评论