If you want to create an instance that has exactly the same operating system, applications, and data as an existing instance, you can use this instance to create a custom image and create an instance based on this custom image. Taking this approach can make your work or delivery more efficient.
Background information
If the custom image and the instance to be created are in the same region, you need to use any of the following methods to create the custom image:
import mirror
Use instances to create custom mirrors
Use snapshots to create custom mirrors
. Copy the custom image to the target region. For more information, see Copying an Image.
If the images belong to different accounts, image sharing must be completed first. For details, see Shared Mirroring.
Operation steps
1. Log in to the ECS management console
2. In the left navigation bar, click Instances.
You can also click Image in the left navigation bar, find the custom image you want to use, and click Create Instance in the Operation column.
3. In the upper right corner of the Instance List page, click Create Instance.
4. On the Create Instance page, click Create ECS Instance configuration information, but you need to pay attention to the following configuration:
Region: You must select the region where the image is located.
Mirror: Select Custom Image or Shared Image, and select the required image in the drop-down list.
With one or more data disk snapshots, the system will automatically create the same number of cloud disks as data disks based on these snapshots. cloud The disk size is the same as the corresponding snapshot. You can increase the cloud disk capacity, but cannot reduce it.
5. Confirm the order.
The above is the detailed content of How to create an instance using a Linux custom image. For more information, please follow other related articles on the PHP Chinese website!