Reinstalling System

Last updated: 2020-07-20 16:53:35

    Overview

    System reinstallation is an important method for restoring instances to their initial statuses in the event of a system failure.

    CVM supports the following two reinstallation types:

    • Single-system reinstallation: CVMs in all regions can be reinstalled to the same operating system.
      For example, Linux is reinstalled as Linux and Windows is reinstalled as Windows.
    • Cross-system reinstallation: only CVMs in the Chinese mainland (excluding Hong Kong, China) can be reinstalled to a different operating system.
      For example, Linux is reinstalled as Windows and Windows is reinstalled as Linux.

      Note:

      • Currently, all new CBS instances and local disks support cross-system reinstallation. However, some existing 20 GB local disks do not support cross-system reinstallation via the Console. If you need to implement cross-system reinstallation for instances on these local disks, please submit a ticket to apply for the cross-system installation feature.
      • Spot instances do not support system reinstallation.

    Notes

    • Preparing for reinstallation: back up important data to your system disk before reinstallation because the system disk’s data will be lost after reinstallation. To retain your system data, we recommend that you create a custom image and use this image to reinstall the system.
    • Image selection: we recommend that you use the image provided by Tencent Cloud or your custom image instead of those from unknown or other sources. Do not perform other operations while the system disk is being reinstalled.
    • Instance physical features: the public IP of the instance will not change.
    • Billing: when adjusting the size of the system disk (for CBS only), you will be charged according to the pricing standards of CBS. For more information, see Pricing List.
    • Subsequent operations: after the system disk is reinstalled, the data in the data disks will not be affected and will be available for use only after the data disks are remounted.

    Directions

    You can use either of the following methods to reinstall the operating system:

    Reinstalling the system via the Console

    1. Log in to the CVM Console.
    2. In the row of the instance for which you want to reinstall the system, click More > Reinstall the system, as shown in the following figure:
      Reinstall the system
    3. In the pop-up window that appears, click OK, reinstall now.
    4. Select the image used by the current instance or another image, set the disk size, set the login password for the instance, and click Start reinstall.

    Reinstalling the system via APIs

    For more information, please see the ResetInstance API.

    Subsequent Operations

    If your CVM has mounted a data disk before cross-system reinstallation, please see the following documents about how to read data from the data disks of the original operating system:

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help