Changing an ECS OS will change the system disk attached to the ECS. After the changing, the system disk ID of the ECS will be changed, and the original system disk will be deleted.
If the OS running on an ECS cannot meet service requirements, change the ECS OS.
The public cloud supports changing between image types (public images, Marketplace images, private images, and shared images) and between OSs. You can change your OS to the one of a different image type.
- After the OS is changed, the original OS is not retained, and the original system disk is deleted.
- Necessary data has been backed up using either of the following methods. (Changing the OS clears the data in all partitions of the system disk, including the system partition.)
- Use VBS to create a backup for your EVS disk. After the OS is changed, the backup can be used to restore the EVS disk, maximizing your data correctness and security.
- Use CSBS to back up your full ECS. After the OS is changed, the backup can be used to restore the ECS service data, maximizing your data correctness and security and ensuring service continuity.
- After the OS is changed, your service running environment must be deployed in the new OS again.
- After the OS is changed, the ECS will be automatically started.
- After the OS is changed, the system disk type of the ECS cannot be changed.
- After the OS is changed, the IP and MAC addresses of the ECS remain unchanged.
- After the OS is changed, customized configurations, such as DNS and hostname of the original OS will be reset and require reconfiguration.
- It takes about 10-20 minutes to change the OS. During this process, the ECS is in Changing OS state.
- After the OS is changed, the password for logging in to the ECS will be reset. To retrieve the password, perform the following operations:
- The system disk capacity of an ECS with OS changed may change because the system disk capacity specified by the image of the changed OS may be changed.
- The EVS disk quota must be greater than 0.
- H2 ECSs do not support OS change.
Notes on Cross-OS Changing
Cross-OS changing indicates that the OS is changed between Windows and Linux.
- To change Windows to Linux, install an NTFS partition tool, such as NTFS-3G for data reading and writing on the Windows ECS.
- To change Linux to Windows, install software, such as Ext2Read or Ext2Fsd to identify ext3 or ext4.
You are not advised to change Linux to Window on the cloud platform. The reason is as follows: If there are LVM partitions on the Linux ECS, these partitions may fail after the OS is changed to Windows.
- The target ECS is stopped, or changing/reinstalling OS on the ECS failed.
- The target ECS has a system disk attached.
- Necessary data has been backed up. (Changing the OS clears the data in all partitions of the system disk, including the system partition.)
- If the original ECS uses password authentication while the new ECS uses key pair authentication, ensure that a key pair is available.
- If you use a private image to change the OS, ensure that the private image is available. For instructions about how to create a private image, see Image Management Service User Guide.
- If the image of a specified ECS is required, make sure that a private image has been created using this ECS.
- If a local image file is required, make sure that the image file has been imported to the cloud platform and registered as a private image.
- If a private image from another region is required, make sure that the image has been copied.
- If a private image from another user account is required, make sure that the image has been shared with you.
- Log in to the management console.
- Click in the upper left corner and select the desired region and project.
- Under Computing, click Elastic Cloud Server.
- Select the target ECS and click Stop in the upper left corner of the ECS list.
- Locate the row containing the target ECS. Click More in the Operation column and select Change OS.
The Change OS page is displayed.
- Modify related ECS parameters, such as Image Type and Image, based on service requirements.
For more details, see section Creating and Logging In to ECS.
- (Optional) Select a License Type (Use license from the system or Bring your own license (BYOL)) if the changed OS running on your ECS is billed. For more details, see section License Type.
The following OSs are billed:
- SUSE Linux Enterprise Server
- Oracle Enterprise Linux
- Red Hat Enterprise Linux
- Windows Server Edition OS (BYOL can be used on an ECS that is created on a DeH and runs the Windows Server Edition OS.)
- Configure the login mode.
If the target ECS uses key pair authentication, you can replace the original key pair.
- Configure user data injection.
- If you select User Data Injection and enter data in the text box, the user data imported to the ECS will be updated to the data entered in the text box.
- If you select User Data Injection but leave the text box blank, the user data imported to the ECS will be cleared.
- If you do not select User Data Injection, the user data imported to the ECS will not be updated.
- Click OK.
- On the Change ECS OS page, confirm the specifications and click Submit.
After the application is submitted, the ECS status changes to Changing OS. The OS changing has been completed when Changing OS disappears.
A temporary ECS is created during the OS changing process. After the process is complete, this ECS will automatically be deleted.
If the OS change is unsuccessful, perform steps 3 to 11 again to retry changing the OS again.
If the second OS change attempt is unsuccessful, contact customer service for manual recovery at the backend.