Changing the Edge Instance OS
Scenarios
If you change the OS, the system will automatically change the system disk attached to the edge instance. After you change the OS, the system assigns a new ID to the system disk of the edge instance and deletes the original system disk.
If the OS running on an edge instance cannot meet your service requirements, you can change the edge instance OS.
IEC enables you to change an edge instance OS based on an image to another image of the same type or a different type (public image and private image).
Constraints and Limitations
- After you change the OS, the system will not retain the original OS, and deletes the original system disk.
- Back up necessary data. When you change the OS, the system will clear data in all partitions of the system disk, including the system partition.
- Changing the OS will not affect data in data disks.
- After you change the OS, you must deploy your service running environment in the new OS again.
- After you change the OS, the edge instance will be automatically started.
- After you change the OS, you cannot change the system disk type of the edge instance.
- After you change the OS, the IP and MAC addresses of the edge instance remain unchanged.
- After you change the OS, customized configurations, such as DNS and hostname of the original OS will be reset and require reconfiguration.
- It takes about 10 to 20 minutes to change the OS. During this process, the edge instance will be in the Changing OS state.
- You cannot switch between edge instances in BIOS boot mode and UEFI boot mode.
- The disk quota must be greater than 0.
Notes on OS Change
OS change involves changing between Windows and Linux.
- To change Windows to Linux, install an NTFS partition tool, such as NTFS-3G for data reading and writing data on the Windows edge instance.
- To change Linux to Windows, install software, such as Ext2Read and Ext2Fsd to identify ext3 or ext4.
It is recommended that you do not change Linux to Windows on the cloud platform. If there are LVM partitions on the Linux edge instance, these partitions may fail after you change the OS to Windows.
Prerequisites
- You have stopped the edge instance whose OS you want to change.
- The target edge instance has a system disk attached.
- If you require a private image to change the edge instance OS, create the desired private image by following the instructions provided in the Image Management Service User Guide.
- If you require the image of a specific edge instance, make sure that you have created a private image using the edge instance.
- If you require a local image file, make sure that you have imported the image file to the cloud platform and registered it as a private image.
- If you required a private image from another region, make sure that you have copied the image to the target region.
- If you require a private image from another account, make sure that the account has shared the image with you.
Procedure
- Log in to the management console.
- Hover on the left menu to display Service List. Under Content Delivery & Edge Computing, select Intelligent EdgeCloud.
The IEC Overview page is displayed.
- In the navigation pane on the left, choose Edge Instances.
- Locate the edge instance whose OS you want to change, click More in the Operation column, and select Change OS.
- Modify related edge instance parameters, such as Image Type and Image, based on service requirements.
For details about related parameters, see Step 2 Configure Edge Instances.
- Set Login Mode.
- Click OK.
- On the Resource Details page, confirm the configurations and click Submit Application.
After you submit the application, the edge instance status changes to Changing OS. The process of changing the OS will be completed when Changing OS disappears.
Follow-up Procedure
- If the OS before and after the OS change is Linux, and you have enabled automatic partition mounting upon system startup for the data disk, the data disk partition mounting information will be lost after the OS is changed. In this case, you need to update the /etc/fstab configuration.
- If the OS change is unsuccessful, repeat Procedure to change the OS.
If the second OS change attempt is unsuccessful, contact customer service for manual recovery at the backend.
Last Article: Managing an Edge Instance
Next Article: Creating a Key Pair
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.