Overview
When you create an image, you can choose to launch an instance based on a public image and connect the image to your instance to deploy the software environment yourself. When the instance is running normally, you can create a new custom image based on it according to your actual needs. After you create a new custom image, you can use the image to launch more new instances with the same custom items as the original instance.
- When you create a custom image, the system will create a related snapshot by default. Before deleting this snapshot, you need to delete the associated image first.
- When you create custom images for other instances, shut down the instance first to ensure that the image is completely consistent with the current instance deployment environment.
Notes
- Each region currently supports 50 custom images.
- The following directories/files will be cleared:
/var/log/
/root/.bash_history, /home/ubuntu/.bash_history(Ubuntu system) - When you create a custom image for a Linux instance, make sure that /etc/fstab does not contain data disk configuration. Otherwise, the instance created using the image will not be able to start normally. If the Linux instance for which you created the custom image has a data disk mounted, you need to comment or delete the configuration related to the self-configured data disk in /etc/fstab.
- The creation process will take ten minutes or longer. The specific time depends on the data size of the instance. Make relevant preparations in advance to avoid affecting your business.
Operation Steps
Creating from Instance using Console
- Log in to the CVM console.
- In the instance management page, select the instance for which you need to create an image, and choose More > CVM Status > Shut Down.
- After the instance is shut down, in the row of that instance, click More > Create Image
- In the pop-up Create Custom Image window, enter Image Name and Image Description, and click OK to create the image.
- After the image is created, click Image in the left sidebar to enter the Image Management page.
- In the image list, select the image you created and click Create CVM to purchase a server with the same image as before.