Featured image of post How to Upgrade Pve7.4 to Pve8

How to Upgrade Pve7.4 to Pve8

How to Upgrade Pve7.4 to Pve8

Last night, When I found that proxmox ve 8 has been released. Then I want to try it and I do it immediately. Here is what I did to upgrade pve.

1 Backup

1.2 backup vms and containers

–skip–

1.2 Backup /etc/ folder

–skip–

Check upgrade status

1
2
3
4
5
6
7
8
# Upgrade to latest pve 7.4
apt update && apt -y dist-upgrade

# Reboot
systemctl reboot

# pve7to8 checklist script
pve7to8 --full

Change Sourcelist for debian 12

1
2
3
4
5
# Backup debian 11 sourcelist
mv  /etc/apt/sources.list  /etc/apt/sources.list.debian11

# Downlaod and Install debian 12 sourcelist
curl -fsSL https://mirrors.ustc.edu.cn/repogen/conf/debian-https-4-bookworm -o  /etc/apt/sources.list

Change sourcelist for pve 8

Update pve 8 sourcelist

You can choose to run one of the option command.

Option 1: PVE Offical sourcelist

1
2
3
4

tee /etc/apt/sources.list.d/pve-install-repo.list << "EOF"
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
EOF

Option 2: mirrors utsc

1
2
3
tee /etc/apt/sources.list.d/pve-install-repo.list << "EOF"
deb [arch=amd64] https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
EOF

Downlaod and install gpg key

You can choose to run one of the option command.

Option 1. Download gpg key from pve offical site

1
wget http://download.proxmox.com/debian/proxmox-release-bookworm.gpg  -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg

Option 2. Install with mirrors UTSC

1
wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg

Change Ceph

You can choose to run one of the option command.

Option 1: pve offical

1
echo "deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list

Option 2: mirrors.ustc.edu.cn

1
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list

Upgrade

1
2
3
4
5
apt update && apt  -y full-upgrade
pveversion

# Reboot server
systemctl reboot
1
2
3
4
# Disable no valid subscription alert
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
# Delete enterprise soucelist
rm -rf /etc/apt/sources.list.d/pve-enterprise.list.dpkg-dist

Reference

Built with Hugo
Theme Stack designed by Jimmy