In addition using Tencent Cloud public images, you can create custom images to quickly create Tencent Cloud CVM instances with the same configurations.
- Images use the CBS snapshot service for data storage. When you create a custom image, a snapshot will be automatically created and associated with the image. You will be charged for this snapshot. For more information, see Billing Overview.
- For CVMs that are created based on public images after July 2018 and use cloud disks as system disks, you can create images without shutting down the instance. For other CVMs, you need to shut down the instance before creating a custom image to ensure that the image has the same deployment environment as the current instance.
/home/ubuntu/.bash_history(for the Ubuntu operating system)
/etc/fstabdoes not contain data disk configuration. Otherwise, instances created with this image cannot be started normally. If the Linux instance that is used to create a custom image has a data disk mounted, comment out or delete the relevant data disk configurations in
You can click in the top-right corner to view the image creation progress.
You can use the
CreateImage API to create a custom image. For more information, see CreateImage.
If you need to keep the data on the data disk of the original instance when launching a new instance, you can first take a snapshot of the data disk, and then use this snapshot to create a new cloud data disk.
For more information, see Creating Cloud Disks Using Snapshots.