Updated on 2024-04-19 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.
  • 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.

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 your region and project.
  3. Under Computing, 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.

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

  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, 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.