tencent cloud

Feedback

Create Instances via Custom Image

Last updated: 2024-01-08 09:32:02

    Overview

    You can use a custom image to create CVM instances of the same operating system, applications, and data to improve efficiency. This document guides you through how to create an instance using a custom image.

    Preparations

    You must have a custom image under your account and in the region where you want to create an instance. If there is no custom image, see the following solutions:
    Image Status
    Solution
    Images on local computers or other platforms
    Import the system disk image on local computers or other platforms to the custom image on CVM. For more information, see Overview.
    There are template instances but no custom images
    For more information, see Creating Custom Images.
    Custom images in other regions
    Copy the custom image to the target region where you want to create an instance. For more information, see Copying Images.
    Custom images under another account
    Share the custom image with the account under which you want to create an instance. For more information, see Sharing Custom Images.

    Directions

    1. Log in to the CVM console.
    2. Click Image on the left sidebar to enter the image management page.
    3. Select a region at the top of the Image page.
    4. Select a tab based on the image source to view its image list.
    Public Image: Go to the public image page.
    Custom Image: Go to the custom image page.
    Shared Image: Go to the shared image page.
    5. In the Operation column of the target image, click Create Instance.
    
    
    6. In the pop-up window, click OK.
    7. Configure and create the instance as prompted by the page. The Region and Image fields are automatically filled. Complete the other configurations of the instance as needed. For more information, see Creating Instances via CVM Purchase Page.
    Note:
    If you use a custom image that contains one or more data disk snapshots, the system will automatically create the same quantity of cloud disks as data disks and the same capacity as each snapshot. You can increase, but cannot reduce, the cloud disk capacity.

    References

    You can also call the RunInstances API to create an instance by using a custom image.
    Note:
    If you use an image of the entire CVM instance to create an instance, call the DescribeImages API to get the snapshot ID associated with the image first and then call the RunInstances API to pass in the snapshot ID parameter; otherwise, the created cloud disk cannot match the snapshot ID, the snapshot data cannot be rolled back, the data disk has no data, and mounting cannot be performed.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support