Files
doc-exports/docs/ecs/umn/en-us_topic_0024911405.html
wanghuijuan738 4304fed907 ECS UMN 20260417 version. Added secure boot content.
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com>
Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
2026-05-11 15:42:48 +00:00

12 KiB

Reinstalling the OS

Scenarios

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

Notes

  • After the OS is reinstalled, the IP and MAC addresses of the ECS remain unchanged.
  • Reinstalling the OS clears the data in all partitions of the system disk, including the system partition. Back up data before reinstalling the OS. For details, see Backing Up an ECS.
  • Reinstalling the OS does not affect data in data disks.
  • Do not perform any operations on the ECS immediately after its OS is reinstalled. Wait for several minutes until the system successfully injects the password or key. Otherwise, the injection may fail, and the ECS cannot be accessed.
  • After the OS is reinstalled, the password for logging in to the ECS is reset. To retrieve the password, perform the following operations:
  • You can choose to encrypt the system disk of an ECS during OS reinstallation.

Constraints

  • The EVS disk quotas must be greater than 0.
  • If the target ECS is created using a private image, ensure that the private image is available.
  • If an ECS OS is to be reinstalled using a full-ECS image, the ECS system disk can be encrypted.

Prerequisites

  • The target ECS is stopped.
  • The target ECS has a system disk attached.

Procedure

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

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

    Figure 1 Reinstalling an OS
  5. (Optional) Select the Encrypted option to encrypt the system disk during OS reinstallation.

    To enable encryption, click Create Xrole to grant KMS access permissions to EVS. If you have the granting permission, grant KMS access permissions to EVS. If you do not have the granting permission, contact the user who has the Security Administrator permissions to grant 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.
  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 Types.

    The following OSs are billed:

    • SUSE Linux Enterprise Server
    • Oracle Enterprise Linux
    • Red Hat Enterprise Linux
  7. Set Login Mode.

    You can set the login mode for the ECS whose OS is to be reinstalled based on service requirements.

    • Key pair

      If you select Key pair for Login Mode, select an existing key pair from the drop-down list or create a key pair. For details, see (Recommended) Creating a Key Pair on the Management Console.

      If you use an existing key pair, make sure that you have saved the key file locally. Otherwise, logging in to the ECS will fail.

  8. Click OK.
  9. On the Reinstall OS page, confirm the settings and click OK.
    After the request is submitted, the status Reinstalling is displayed. When this status disappears, the reinstallation is complete.

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

Follow-up Procedure

If the system displays a message indicating that the reinstallation fails, you can perform steps in Procedure again to retry the OS installation.

If the attempt still fails, contact customer service for manual recovery at the backend.

<script language="JavaScript"> </script>