Wednesday, July 24, 2019

Updating Proxmox 4.x to 5.x (no subscription)

Updating proxmox from 4.x to 5.x



Tested with:

Proxmox 4.0

Installation:

!!! ALWAYS MAKE SURE YOU HAVE WORKING BACKUPS OF YOUR VM'S !!!

Stop all your running vm's on the proxmox server you want to update.
Connect to your proxmox server using ssh or use shell in the proxmox interface.

Prevent errors from the Enterprise repository if already not done so:

type: nano /etc/apt/sources.list.d/pve-enterprise.list

Change the following line:
deb https://enterprise.proxmox.com/debian jessie pve-enterprise
into
# deb https://enterprise.proxmox.com/debian jessie pve-enterprise

Add Promox 4.x repository if it is not there yet:
type: nano /etc/apt/sources.list

Add the following lines at the bottom:
# Proxmox repository
deb http://download.proxmox.com/debian jessie pve-no-subscription

Update to the latest 4.x version when needed:
type: apt-get update 
type: apt-get dist-upgrade


During the update it may stop depending what needs to be updated and show you what will be added or or removed.
You can press ENTER to continue and eventually press q for quit.

In the Web GUI you should see that proxmox has been updated to 4.4-24.

Add needed repositories:
type: sed -i 's/jessie/stretch/g' /etc/apt/sources.list
type:
sed -i 's/jessie/stretch/g' /etc/apt/sources.list.d/pve-enterprise.list

type: apt-get update 
type: apt-get dist-upgrade

During the update it will stop and show you what will be added or or removed.
You can press ENTER to continue and eventually press q for quit.

Now you will get some questions:
Disable SSH password authentication for root: No
Every other question with Y

Remove packages that are no longer in use:
type: apt-get autoremove

Reboot the server:
type: init 6

Connect to your proxmox server again with ssh.
type: pveversion -v

the first line should say:
proxmox-ve: 5. etc ....

When the first line is like above proxmox is succesfully updated to proxmox 5.x

@Martijn Big thanks for helping to make this guide.


No comments: