江苏省吴江市双板桥路3号兴源网络

0512-63028342

ly@wjxy.net.cn

PROXMOX VE 5.4 升级6.4版本

由于版本升级跨度太大,建议全新安装方式运行

 

全新安装:

https://www.wjxy.net.cn/?p=1780
————————————————————————————————————

以下为本地升级

注:升级可能需要去国外下载安装包,建议挂代理!

也可以apt dist-upgrade –download-only,先确定后有包都下载下来后再安装

有集群的升级需要升级 Corosync 3.x等其它配置祥见官方指导文件:https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0

1.备份/ETC文件夹

tar -zcvf /root/pve-etc.bak /etc
scp 到其它电脑

2.本地升级到最新版本

先检确定pve为免费源

mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
cat /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
apt update
apt dist-upgrade

测试升级运行以下脚本

pve5to6

3.配置新版源

echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" >pve-no-subscription.list
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" >pve-no-subscription.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
修改 /etc/apt/sources.list
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
apt update && apt upgrade && apt dist-upgrade

下面第一个画面为说明文件输q回车退出

中间出现第二个询问画面按Y确定

最后99%会出现二次询问,按Y确定

移除企业源

mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak

升级完成

reboot now

发表评论

邮箱地址不会被公开。 必填项已用*标注