Reinstalling the OS

Scenarios

If the OS of an ECS fails to start or requires optimization, reinstall the OS.

Notes

Constraints

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, click Elastic Cloud Server.
  4. Locate the row containing the target ECS. Click More in the Operation column and select Manage Image/Disk > Reinstall OS.

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

  5. (Optional) Select the Encryption option to encrypt the system disk during OS reinstallation.

    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: EVSAccessKMS: specifies 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.
  6. (Optional) Select a License Type (Use license from the system or Bring your own license (BYOL)) if the reinstalled OS running on your ECS is billed. For more details, see License Type.

    The following OSs are billed:

    • SUSE Linux Enterprise Server
    • Oracle Enterprise Linux
    • Red Hat Enterprise Linux
  7. Configure the login mode.

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

  8. Click OK.
  9. On the ECS OS Reinstallation page, confirm the OS specifications, and click Submit Application.
    After the request is submitted, the ECS status changes to Reinstalling. The reinstallation has been completed when the ECS status changes to Running.

    A temporary ECS is created during the reinstallation process. After reinstallation, this ECS will be automatically deleted. Do not perform any operation on the temporary ECS during the reinstallation process.

Follow-up Procedure

If the reinstallation is unsuccessful, perform steps 3 to 9 again to retry the OS installation.

If the second reinstallation attempt is unsuccessful, contact customer service for manual recovery at the backend.