Help Center> Huawei Cloud EulerOS> User Guide> Changing an OS to Huawei Cloud EulerOS
Updated on 2023-11-16 GMT+08:00

Changing an OS to Huawei Cloud EulerOS


  • If you want to change the OS of a yearly/monthly ECS, the system disk capacity may be insufficient for the new image. If this is the case, you need to detach the system disk from the ECS and expand its capacity before changing the OS.
  • There must be at least one EVS disk.
  • Changing from BIOS to UEFI is not supported.

Important Notes

  • After the OS is changed, the original OS will not be retained, and the original system disk and data on the system disk will be deleted, including data on the system partition and other partitions. Back up the data before changing the OS. For details, see Backing Up ECS Data.
  • Changing the OS will not affect data in data disks.
  • After the OS is changed, the IP and MAC addresses remain unchanged.
  • The system will automatically start after the OS is changed.
  • After the OS is changed, the system disk type cannot be changed.
  • After you change the OS, you need to deploy services in the new OS.
  • After the OS is changed, custom settings such as DNS and hostname will be reset and need to be reconfigured.

Billing Rules

  • After the OS of a pay-per-use ECS is changed, the price may increase if the new OS needs more disk capacity.


  • The source system has a system disk attached.
  • If a password is used to log in to the source OS but a key pair is required to log in to the target OS, the key pair has to be available.
  • If a private image is required for changing the OS, create the private image by following the instructions provided in Image Management Service User Guide.
    • If the image of a specific instance is required, ensure that a private image has been created from that instance.
    • If a local image file is required, ensure that this image file has been imported into the cloud platform and registered as a private image.
    • If a private image from another region is required, ensure that this image has been replicated to the target region.
    • If a private image from another account is required, ensure that this image has been shared with you.


  1. Log in to the management console.
  2. Hover over and choose Compute > Elastic Cloud Server.
  3. Locate the row containing the target ECS. Choose More > Manage Image/Disk > Change OS in the Operation column.

    Before changing the OS, stop the ECS or select Automatically stop the ECSs and change their OSs.

  4. Change the Image Type and Image.

    For a yearly/monthly ECS, if the system disk size is smaller than the image size, you must detach the system disk, expand its capacity, and attach it to the ECS before changing the OS.

    For details about how to expand the system disk capacity, see Disk Capacity Expansion.

    Figure 1 Changing OS
  5. Set Login Mode.

    Use the key pair if it is required for logging in to the new OS.

  6. Click OK.
  7. On the Change ECS OS page, confirm the specifications, read and agree to the agreement or disclaimer, and click Submit Application.

    The task status changes to Changing OS. When Changing OS disappears, the change is successful.

    A temporary ECS is created during the OS change. After the change is complete, this ECS will be automatically deleted.

Follow-up Operations

  • If the OS before and after the change is Linux, and auto-mount on startup has been enabled for the data disk, the auto-mounting information will be lost after the OS is changed. You will need to update the /etc/fstab configuration:
    1. Write the new partition information into /etc/fstab.

      It is a best practice to back up the /etc/fstab file before writing data into it.

      To enable auto-mounting on startup, see Initializing a Linux Data Disk (fdisk).

    2. Mount the partition to use the data disk.

      mount diskname mountpoint

    3. Check that the partition was mounted successfully.

      df -TH

  • If the OS change fails, repeat steps 2 to 7 to retry.
  • If the retry fails, contact customer service for manual recovery.