Changing an OS
Scenarios
Changing an HECS OS will change the system disk attached to the HECS. After the changing, the original system disk will be deleted.
If the OS running on an HECS fails to meet service requirements, for example, a higher OS version, you can change the HECS OS.
Constraints
- The HECSs created using a Marketplace image do not support changing of their OSs.
- Only system disk images or full-HECS images can be used to change OSs with private images.
- The EVS disk quota must be greater than 0.
- Switching between the HECSs in BIOS boot mode and in UEFI boot mode is not allowed.
Notes
- After the OS is changed, the original OS is not retained and the original system disk is deleted.
- Desired data has been backed up. (Changing the OS clears the data in all partitions of the system disk, including the system partition.)
- After the OS is changed, your service running environment must be deployed in the new OS again.
- After the OS is changed, the HECS will be automatically started.
- After the OS is changed, the system disk type of the HECS cannot be changed.
- After the OS is changed, the IP and MAC addresses of the HECS 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 HECS is in Changing OS state.
Billing Rules
- You are not billed for changing an OS. After the OS of an HECS is changed, it will be billed based on the new configuration (system disk and specifications).
- After the OS of an HECS is changed, its fees may be different because the system disk capacity specified by the image of the changed OS may increase. For details, see Product Pricing Details.
Notes on Cross-OS Changing
Cross-OS changing indicates that the OS is changed between Windows and Linux.
- To change from Windows to Linux, install an NTFS partition tool, such as NTFS-3G for data reading and writing on the Windows HECS.
- To change from Linux to Windows, install software, such as Ext2Read and Ext2Fsd to identify ext3 or ext4.
You are not advised to change from Linux to Windows. If there are LVM partitions on the Linux HECS, these partitions may not be identified after the OS is changed to Windows.
Prerequisites
- Before changing the OS, stop the HECS or select Automatically stop the HECSs and then change OSs.
- The target HECS has a system disk attached.
- Desired data has been backed up. (Changing the OS clears the data in all partitions of the system disk, including the system partition.)
- If a private image is required for changing the HECS OS, create the desired private image by following the instructions provided in Image Management Service User Guide.
- If the image of a specified HECS is required, make sure that a private image has been created using this HECS.
- 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 to the target region.
- If a private image from another user account is required, make sure that the image has been shared with you.
Procedure
- Log in to the management console.
- Under Computing, click Hyper ECS.
- Locate the row containing the target HECS. Click More in the Operation column and select Change OS.
- Select the image type, OS and version to change to. Figure 1 Changing an OS
- Set a login password.
- If you use a public image to change the OS, you can reset the password after changing.
- If you use a private image to change the OS, you can use the image password. Ensure that a password has been set for the selected private image.
- Click Change OS.
Before changing the OS, stop the HECS or select Automatically stop the HECSs and then change OSs.
- Set a login password.
- Click OK.
If the system displays a message indicating insufficient system disk capacity, the possible cause is that the system disk capacity is less than the size of the image to change to. In this case, expand the system disk capacity and then change OSs.
For instructions about how to expand the system disk capacity, see Expanding an EVS Disk.
- On the Change HECS OS page, confirm the specifications, read and select the service agreement, and click Submit.
After the application is submitted, the HECS status becomes Changing OS. The OS change is complete when the HECS status becomes Running.
A temporary HECS is created during the OS changing process. When the process is complete, this HECS is automatically deleted. Do not perform any operation on the temporary HECS during the OS changing process.
Last Article: Reinstalling the OS
Next Article: Changing the Time Zone for an HECS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.