Updated on 2025-09-25 GMT+08:00

Changing an OS

Scenarios

If the OS running on the cloud server in a FlexusL instance cannot meet service requirements, you can change the OS to another OS version or type.

Notes

  • An OS change does not make any changes to server specifications.
  • After the OS is changed, the server IP address remains unchanged.
  • Data in all partitions (including the system partition) of the system disk will be cleared, so you are advised to back up the system disk data prior to an OS change.
  • An OS change does not affect data in data disks.
  • After the OS is changed, the original OS is not retained.
  • After you change the OS, you need to deploy services in the new OS.
  • After the OS is changed, the server automatically starts.
  • Do not reset the password of, restart, or stop the FlexusL instance immediately after the OS is changed. Wait for several minutes until the system successfully injects the password, or the login will fail.

Constraints

  • If the system disk is not in use, the image cannot be changed.
  • The image cannot be changed in the following scenarios:
    • Application images have the minimum CPU and memory specification requirements. If a FlexusL instance has small specifications of vCPUs and memory, you cannot change its OS using an application image that requires higher specifications. For example, you cannot use the GitLab application image that needs at least 2 vCPUs and 8 GiB of memory to change the OS of a FlexusL instance with 2 vCPUs and 4 GiB of memory. To do so, you need to upgrade the FlexusL instance by performing operations described in Modifying the Specifications of a FlexusL Instance first.
    • You cannot use the current image of the current version to change the OS of an instance. In this case, you can reinstall the OS. For details, see Reinstalling the OS of a FlexusL Instance or Batch Reinstalling OSs of FlexusL Instances.
  • After the OS is changed, the login password is cleared. You need to reset the password by performing Resetting the Password for a FlexusL Instance for logging in to the new OS. If you switch to an application image, reset the password only after the image with the pre-installed application is up and running, or the password reset may fail.
  • Before using a private image, you need to learn about the constraints on private images in Table 1 for FlexusL instances.

Preparations

If you want to use a private to change the OS of a FlexusL instance, create an image using Huawei Cloud IMS. A private image can be used by FlexusL instances only after it is created on the IMS console. For more information, see Creating a FlexusL Instance from a Private Image or Using a Private Image to Change the OS.

Billing

An OS change does not involve refund or supplementary payment.

Procedure

  1. Log in to the FlexusL console.
  2. Reinstall the OS using any of the following methods:
    By default, the FlexusL console is displayed in card view. You can switch to the list view as needed.
    Figure 1 Switching views
    • Method 1: In the card view, choose > Change OS on the resource card.
      Figure 2 Changing an OS from the resource card
    • Method 2: In the list view, locate the target FlexusL instance and choose More > Change OS in the Operation column.
      Figure 3 Changing an OS from the list page
    • Method 3: On the Cloud Servers details page, choose > Change OS.

  3. Specify the parameters required for changing the OS.

  4. Read and agree to the agreements, and click Submit.

    After the OS is changed, the server automatically starts. When the server status is Running, the OS change is complete.

FAQs