Cloudstack Version 4.18.1 upgrade to Cloudstack Version 4.20.1
Cloudstack Version 4.18.1 upgrade to Cloudstack Version 4.20.1.
Cloudstack Version Upgrade to 4.20.1
Prerequisites:
> Ubuntu OS Version 20 and above. (This document is applicable for Ubuntu Version 20 "Focal" version)
> Make sure sudo rights are assigned to the user to upgrade Cloudstack Version to 4.20.1
> Make sure Ubuntu OS Repository is accessible from internet or Local Repo server.
> Server FQDN entry should be correctly added in the /etc/hosts file.
Note: Upgradation steps are compatible with Cloudestack Version 4.18.1 with Database server MySql. If Maria DB is integrated with Cloudstack then please make sure to upgrade Maria DB to latest version before Cloudstack upgrade.
Upgradation Steps for the Cloudstack Management server.
> Upload Cloudstack version 4.20.1 System VM Template in the Cloudstack Management server.
Login to the Cloudstack Version 4.18.1 using admin user > Go to Templates > Select the Zone and follow the following steps.
Name: systemvm-kvm-4.20.1-x86_64
Description: systemvm-kvm-4.20.1-x86_64
URL: http://download.cloudstack.org/systemvm/4.20/systemvmtemplate-4.20.1-x86_64-kvm.qcow2.bz2
Zone: Choose the zone where this hypervisor is used
Hypervisor: KVM
Format: QCOW2
OS Type: Debian GNU/Linux 7.0 (64-bit) (or the highest Debian release number available in the dropdown)
Extractable: no
Password Enabled: no
Public: no
Featured: no
Routing: no
> Stop the Cloudstack-Management server.
Command: #systemctl stop cloudstack-management
#systemctl disable cloudstack-management
> Take the backup of Cloud and Cloud-usage Database.
Command: #mysqldump -u root -p -R cloud > cloud-backup_$(date +%Y-%m-%d-%H%M%S)
#mysqldump -u root -p cloud_usage > cloud_usage-backup_$(date +%Y-%m-%d-%H%M%S)
> Copy the Cloudstack-management 4.20.1 and Common 4.20.1 deb files to Cloudstack management server.
Access the Cloudstack management server in the Putty tool
Command: #mkdir /csm4201
#cd /csm4201
#wget http://download.cloudstack.org/ubuntu/dists/focal/4.20/pool/cloudstack-common_4.20.1.0_all.deb
#wget http://download.cloudstack.org/ubuntu/dists/focal/4.20/pool/cloudstack-management_4.20.1.0_all.deb
> Upgrade Cloudstack management server version 4.18.1 to version 4.20.1
Command: #apt-get upgrade ./cloudstack-common_4.20.1.0_all.deb ./cloudstack-management_4.20.1.0_all.deb
Note: Upgrade process also upgrade Java Version 11 to Java Version 17. During the upgrade select Default seating and don't change any configuration file.
> Enable and start Cloudstack management service.
Command: #systemctl enable cloudstack-management
#systemctl start cloudstack-management
> Loging to the Cloudstack management server in the URL and check the following version details
> Copy the Cloudstack-agent 4.20.1 and Common 4.20.1 deb files on the KVM Hypervisor.
Command: #mkdir /csm4201
#cd /csm4201
#wget http://download.cloudstack.org/ubuntu/dists/focal/4.20/pool/cloudstack-agent_4.20.1.0_all.deb
#wget http://download.cloudstack.org/ubuntu/dists/focal/4.20/pool/cloudstack-common_4.20.1.0_all.deb
> Take the backup of agent.properties file in the /root directory
Command: #cp /etc/cloudstack/agent/agent.properties /root
> Upgrade Cloudstack-agent to version 4.20.1
Command: #apt-get upgrade ./cloudstack-common_4.20.1.0_all.deb ./cloudstack-agent_4.20.1.0_all.deb
Upgrade System and Router VMs.
> Login to the Cloudstack URL - Select the zone - Go to System VMs Tab - Select the Console Proxy / System VM and click on Path the VM tab.
Comments
Post a Comment