Updated on 2024-04-18 GMT+08:00

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 EVS system disk, including the system partition. Therefore, back up data before reinstalling the OS.
  • Reinstalling the OS does not affect 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 logged in to.

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 the target ECS is billed on a pay-per-use basis, ensure that your account has sufficient balance.
  • If the target ECS is billed on a yearly/monthly basis, ensure that the subscribed resources are within the validity period.
  • H2 ECSs do not support OS reinstallation.

Prerequisites

  • 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 your region and project.
  3. Click . Under Compute, choose Elastic Cloud Server.
  4. Locate the row containing the target ECS and choose More > Manage Image/Disk/Backup > Reinstall OS in the Operation column.

    Before reinstalling the OS, stop the ECS first or select Stop the ECS (The ECS must be stopped before its OS can be reinstalled).

  5. Select the login mode.

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

    Figure 1 Reinstall OS
  6. Click OK.
  7. On the Reinstall OS page, confirm the settings, read and select the agreement or disclaimer, and click OK.
    After the request is submitted, the status Reinstalling is displayed. When this status disappears, the reinstallation is complete.

    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 fails, perform steps 3 to 7 again to retry the OS installation.

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