test upgrade from community 4.4 to 5.x

flexyz

Well-Known Member
Sep 22, 2016
154
9
58
53
Hi

I am planning to upgrade my production PVE 4.4 to 5.1 and did some initial testing on a VM.

A fresh PVE 4.4 with ZFS mirror boot and one small data ZFS pool -> https://pve.proxmox.com/wiki/Upgrade_from_4.x_to_5.0 on

But after reboot, webgui is not working and upgrade seems faulty - I tried a few times

1. apt-get update && apt-get dist-upgrade
2. sed -i 's/jessie/stretch/g' /etc/apt/sources.list
3. sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/pve-enterprise.list
4. apt-get update
5. apt-get dist-upgrade
6. reboot

This looks weird :

root@pve:~# uname -a

Linux pve 4.4.35-1-pve #1 SMP Fri Dec 9 11:09:55 CET 2016 x86_64 GNU/Linux


Any advice on this one?

Thanks
 
you are not on the latest 4.4, which is a requirement for upgrading. please double-check your repository configuration, most likely you only have the enterprise repository configured, but no subscription key activated.

(edit: also, read what apt tells you ;) if there is an error message or it asks you if you want to remove half of PVE's packages, something is probably wrong and should be fixed BEFORE proceeding)
 
I have enterprise license on my production machine, but not my test VM.

1. apt-get update && apt-get dist-upgrade
2. reboot

- should upgrade to latest 4.4 or?

How should I fix the repositories then?

Thanks
 
I have enterprise license on my production machine, but not my test VM.

1. apt-get update && apt-get dist-upgrade
2. reboot

- should upgrade to latest 4.4 or?

if you have configured the repositories correctly, yes. what does it output?

How should I fix the repositories then?

on a machine with no subscription key, configure the pve-no-subscription repository. see the Admin Guide
 
btw. should I modify the sources.list in anyway? ( to get 4.4 upgraded first)?

And I guess I need to disable the "/etc/apt/sources.list.d/pve-enterprise.list"

Thanks
 
please read the section of the admin guide I linked - it explains all the different repositories and how to enable or disable them!
 
btw. should I modify the sources.list in anyway? ( to get 4.4 upgraded first)?

And I guess I need to disable the "/etc/apt/sources.list.d/pve-enterprise.list"

Thanks

Correct, your proxmox 4.4 test VM should have sources.list pointing to debian Jessie pve-nosubscription repos, and pve-enterprise also disabled, then dist-upgrade to latest updates. Once no more updates available for 4.4, modify sources again to debian stretch pve-no subscription and dist-upgrade.

Before upgrading your production PVE, I always recommend backing up the data on your VM''s and also make full proxmox backup of your VM's. Best Wishes!
 
Hi
Here is what I did - if someone else can use it :)

(I could not find how to upgrade 4.4 to latest in the official guide)

01. /etc/apt/sources.list
deb http://ftp.debian.org/debian jessie main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian jessie pve-no-subscription

# security updates
deb http://security.debian.org jessie/updates main contrib

02. mv /etc/apt/sources.list.d/pve-enterprise.list /home

03. apt-get update

04. apt-get dist-upgrade

05. reboot

06. Virtual Environment 4.4-18/ef2610e8

07. /etc/apt/sources.list
deb http://ftp.debian.org/debian stretch main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

# security updates
deb http://security.debian.org stretch/updates main contrib

08. apt-get update

09. apt-get dist-upgrade

10. reboot

11. Virtual Environment 5.0-32/2560e073
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!