This playbook automates the upgrade process for Proxmox Virtual Environment (PVE) and Proxmox Backup Server (PBS).
Currently following upgrade paths are supported:
- Proxmox Virtual Environment version
7->8
- Proxmox Backup Server version
2->3
This playbooks follows the instructions from the offical documentation:
This is a work in progress, if you find any bugs or problems please open a new issue.
- check prerequisites
- create backup of important configuration files under
/var/backups
- install latest packages from current version
- shutdown virtual maschines
- Debian dist-upgrade
- reboot
I highly recommend running the pve7to8 --full
checklist tool first and fix all detected problems before upgrading.
You should also use it after the upgrade to verify that everything is ok.
- check prerequisites
- create backup of important configuration files under
/var/backups
- install latest packages from current version
- put datastores in read-only mode
- Debian dist-upgrade
- reboot
- put datastores back in write mode
- check needed services
- install this playbook via Ansible Galaxy
ansible-galaxy install marvhh.proxmox_upgrade
- create a playbook yaml file
example:
- name: Upgrade proxmox server
become: true
hosts: proxmox_server
roles:
- marvhh.proxmox_upgrade
- run ansible-playbook
Following options are currently supported:
reboot
: Choose if the reboot of the maschine should be done automaticallyshutdown_vms
: shutdown virtual maschines automaticallyuse_enterprise_repos
: should the Proxmox enterprise repositories be used?