When creating an image, you can start an instance with a public image, connect it to the instance, and deploy your software environment. If the instance runs normally, you can create a new custom image based on this as needed, so you can use this image to start more new instances that have the same custom configurations as the original one.
- When you create a custom image, the system creates a related snapshot by default. You need to delete the associated images before deleting this snapshot. Because snapshot has been commercialized, retaining a custom image will incur a certain snapshot fee. For more information on snapshot billing, please see Commercialization FAQs.
- For CVMs created based on public images after July, 2018, creating images online is supported (i.e., you can create images without shutting down the instance).
- For other CVMs, shut down the instance before creating a custom image to ensure that the image has the same deployment environment as the current instance.
You can click </ img> at the top right of the console to view the image creation progress.
You can use the CreateImage API to create a custom image. For more information, see CreateImage API.
If you need to keep the data on the data disk of the original instance when starting a new instance, you can first take a snapshot of the data disk, and then use this data disk snapshot to create a new CBS data disk.
For more information, see Creating Cloud Disks Using Snapshots.