Changing the OS

Scenarios

Changing an ECS OS will change the system disk attached to the ECS. After the change, the system disk ID of the ECS will be changed, and the original system disk will be deleted.

If the OS running on an ECS cannot meet service requirements, change the ECS OS.

The cloud platform supports changing between image types (public images, private images, and shared images) and between OSs. You can change your OS by changing your ECS image.

Constraints

Notes

Notes on Change Between Windows and Linux

When you change the OS from Windows to Linux or from Linux to Windows, note the following:

Prerequisites

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select your region and project.
  3. Under Computing, choose Elastic Cloud Server.
  4. Locate the row containing the target ECS and choose More > Manage Image/Backup > Change OS in the Operation column.

    Only stopped ECSs support OS change. If the ECS is not stopped, stop it before proceeding with changing.

  5. Select the target image.

    For more details, see Creating an ECS.

    Figure 1 OS Change
  6. (Optional) Select the Encryption option to encrypt the system disk during OS change.

    To enable encryption, click Create Xrole to assign KMS access permissions to EVS. If you have rights granting permission, assign the KMS access permissions to EVS. If you do not have the permission, contact the user having the security administrator rights to assign the KMS access permissions. For details, see Can All Users Use the Encryption Feature?

    Encryption parameters are as follows:

    • Encryption: indicates that the EVS disk has been encrypted.
    • Create Xrole: assigns KMS access permissions to EVS to obtain KMS keys. After the permissions are assigned, follow-up operations do not require assigning permissions again.
    • Xrole Name: set to EVSAccessKMS, which means that permissions have been assigned to EVS to obtain KMS keys for encrypting or decrypting EVS disks.
    • KMS Key Name: specifies the name of the key used by the encrypted EVS disk. You can select an existing key, or click Create KMS Key and create a new one on the KMS console. The default value is evs/default.
    • KMS Key ID: specifies the ID of the key used by the encrypted data disk.
  7. (Optional) Select a License Type (Use license from the system or Bring your own license (BYOL)) if the changed OS running on your ECS is billed. For more details, see License Types.
    The following OSs are billed:
    • SUSE Linux Enterprise Server
    • Oracle Enterprise Linux
    • Red Hat Enterprise Linux
  8. Configure the login mode.

    If the target ECS uses key pair authentication, you can replace the original key pair.

  9. Click OK.
  10. On the Change ECS OS page, confirm the specifications, and click Submit.

    After the application is submitted, the status Changing OS is displayed. When this status disappears, the OS change is complete.

    A temporary ECS is created during the OS change process. After the process is complete, this ECS will be automatically deleted.

Follow-up Procedure