Reinstalling System

Last updated: 2020-05-28 17:11:02

    Operation Scenario

    Reinstalling the operation system is an important method to restore instances to their initial status in the event of a system failure. This document describes how to reinstall the operating system.
    Cloud Virtual Machine (CVM) supports two reinstallation types:

    • Single-system reinstallation: is applicable to CVMs in any region.
      For example, reinstall from Linux to Linux or from Windows to Windows.
    • Cross-system reinstallation: is available to Mainland China only, excluding Hong Kong, SAR.
      For example, reinstall from Linux to Windows or from Linux to Windows.
      • Currently, all new CBS instances and local disks support cross-system reinstallation. However, some existing 20-GB local disks currently do not support cross-system reinstallation through the console. If you are using these local disks, you can submit a ticket to apply for the cross-system installation feature, when needed.
      • Spot instances do not support system reinstallation.

    Notes

    • Preparations: back up important data in your system disk before reinstallation, because data in the system disk will be lost after reinstallation. To keep your system data, we recommend that you create a custom image and use this image to reinstall the system.
    • Recommended images: 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 any other operations when the system disk is being reinstalled.
    • Physical features of the instance: the public IP address of the instance does 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 CBS Pricing.
    • Subsequent operations: after the system disk is reinstalled, data in data disks is not affected, but will be available for use only after the data disks are remounted.

    Directions

    You can reinstall the operating system in two ways:

    Reinstalling the system in the console

    1. Log in to the CVM console.
    2. In the row of the instance for which you want to reinstall the system, choose More > Reinstall System, as shown in the following figure:
      Reinstall the system
    3. In the system reinstallation window that appears, select the image used by the current instance or another image, set the disk size, enter the password, and click Reinstall Now.

      Here, the password is the one that you set when configuring the CVM instance or that was generated automatically by the system. If you forget the login password of your CVM instance and want to reset it, see Resetting the Instance Password.

    Reinstalling the system through the API

    Was this page helpful?

    Was this page helpful?

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