menu_acs_logo

Upgrading CloudStack

Java version upgraded to Java 17

As of Apache CloudStack 4.20, support for running with Java 17 has been added. In later versions, support for Java 11 will be removed.

If you are running CloudStack with Java 17, for CloudStack versions 4.20 and later:
--add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED
  • Verify /etc/default/cloudstack-usage is also consistent with the same file in the repository.

  • Perform the same check for /etc/default/cloudstack-agent on the hypervisor hosts.

Java Version Requirement

CloudStack 4.20 requires installation of Java 17 JRE for management server and the KVM agent. On installing or upgrading cloudstack-management and/or cloudstack-agent packages, please configure Java 17 as the default java version using:

$ sudo alternatives --config java

Note: For Ubuntu distributions where the openjdk-17 packages are not available from the main repositories, the JRE can be installed from an external PPA such as openjdk-r. The PPA can be added before installation/upgrade:

$ sudo add-apt-repository ppa:openjdk-r/ppa
$ sudo apt-get update