tencent cloud

Feedback

Creating Instances via CVM Purchase Page

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

    Overview

    This document guides you through how to create a Tencent Cloud Virtual Machine (CVM) instance using the custom configuration mode as an example.

    Preparations

    Before creating a CVM instance, you need to complete the following steps:
    To create a CVM instance whose network type is virtual private cloud (VPC), you need to create a VPC in the target region and create a subnet in the target availability zone under the VPC.
    If you do not use the default project, you need to create a project.
    If you do not use the default security group, you need to create a security group in the target region and add a security group rule that meets your business requirements.
    To bind an SSH key pair when creating a Linux instance, you need to create an SSH key for the target project.
    To create a CVM instance with a custom image, you need to create a custom image or import an image.

    Directions

    1. Log in to Tencent Cloud. Select Products > Compute and Container > Compute > Cloud Virtual Machine. Click Buy Now to enter the CVM purchase page.
    Custom Configuration: It is suitable for specific scenarios and makes it easier for you to purchase CVM instances as needed.
    2. Configure the following information as prompted by the page:
    Type
    Required
    Configuration Description
    Billing mode
    Yes
    Select one as needed:
    Pay-as-you-go: It is an elastic billing method of CVM applicable to scenarios such as e-commerce flash sales, where demand will fluctuate significantly in an instant.
    Spot instance: It is a new instance operation mode applicable to scenarios such as big data computing and online website service using load balancing. Its general price range is 10%–20% of a pay-as-you-go instance.
    For billing details, see Billing Plans.
    Region/Availability Zone
    Yes
    Region: We recommend you select the region closest to your end users to minimize the access latency and improve the access speed.
    Availability zone: Select one as needed. If you want to purchase multiple CVM instances, we recommend you select different AZs to implement disaster recovery.
    For more information on regions and AZs, see Regions and AZs.
    Instance
    Yes
    Tencent Cloud provides different instance types based on the underlying hardware. For more information on instances, see Instance Types.
    Image
    Yes
    Tencent Cloud provides public images, custom images, and shared images. For more information on images, see Image Types.
    Yes
    It is used for OS installation and defaults to 50 GB.
    Available cloud disk types vary by region. Select one as instructed on the page.
    For more information on cloud disks, see Cloud Disk Types.
    No
    It is used to scale up the storage capacity of the CVM instance to ensure high efficiency and reliability. It is not added by default.
    For more information on cloud disks, see Cloud Disk Types.
    Scheduled Snapshot
    No
    A scheduled snapshot policy can be set for the system disk or data disk. For more information, see Scheduled Snapshots.
    Quantity
    Yes
    It indicates the quantity of CVM instances to be purchased.
    3. Click Next: Set Network and CVM to enter the instance settings page.
    4. Configure the following information as prompted by the page:
    Type
    Required
    Configuration Description
    Network
    Yes
    It is a logically isolated network space built in Tencent Cloud. A VPC includes at least one subnet. The system provides a default VPC and subnet for each region.
    If the existing VPC or subnet does not meet your requirements, you can create a VPC or subnet in the VPC console.
    Note:
    By default, resources in the same VPC are interconnected over the private network.
    When purchasing a CVM instance, make sure that the CVM instance and its subnet are in the same AZ.
    Public IP
    No
    If your CVM instance needs to access the public network, you need to assign a public IP for it. You can assign the public IP when creating the CVM instance or configure an
    EIP after the creation.
    Note:
    The dedicated public IP that is assigned free of charge cannot be unbound from the instance. To unbind this IP address, convert it to an EIP first. For more information on EIPs, see Elastic IP (EIP).
    No dedicated public IP can be assigned in the following two cases, subject to the information on the purchase page:
    The IP resources have been sold out.
    Resources are only available in certain regions.
    Bill-by-bandwidth mode
    Yes
    Tencent Cloud provides two network billing modes. Configure a value greater than 0 Mbps as needed.
    Bill-by-traffic: Billing is based on traffic that is actually used. You can specify a peak bandwidth to prevent charges incurred by unexpected traffic. Packet loss will occur when the instantaneous bandwidth exceeds this value. This is applicable to scenarios where the network connection fluctuates significantly.
    Bill-by-bandwidth package: Select this aggregated billing mode when your public network instances have traffic peaks at different times. It is applicable to large-scale businesses where traffic can be staggered between different instances using the public network. BWP is currently in beta test. To try it out, submit a ticket for application.
    For more information, see Public Network Billing.
    Bandwidth value
    No
    You can set the maximum public network bandwidth of the CVM instance as needed. For more information, see Public Network Bandwidth Cap.
    Security group
    Yes
    If there is no available security group, you can choose New security group.
    If there are available security groups, you can choose Existing Security Groups.
    For more information on security groups, see Security Group.
    Tag
    No
    You can add tags for the instance as needed, which can be used to categorize, search for, and aggregate cloud resources. For more information, see Overview.
    Instance name
    No
    You can customize the name of the CVM instance to be created.
    If no instance name is specified, Unnamed will be used by default.
    An instance name can contain up to 128 characters. Batch sequential naming or pattern string-based naming is also supported.
    Note: This name is displayed only in the console. It is not the hostname of the CVM instance.
    Login Methods
    Yes
    Configure the method to log in to the CVM as needed.
    Set Password: Customize the password for logging in to the instance.
    SSH Key Pair (only for Linux instances): Associate the instance with an SSH key to ensure secure login to the CVM instance.If no key is available or existing keys are inappropriate, click Create Now to create a key. For more information on SSH keys, see SSH Keys.
    Random Password: A password will be automatically generated and sent to you in Message Center.
    Instance Termination Protection
    No
    It is not enabled by default. You can enable it as needed. Then, you cannot terminate an instance in the console or via the API. For more information, see Enabling Instance Termination Protection.
    Security Enhancement
    No
    By default, Anti-DDoS and Cloud Workload Protection are enabled free of charge to help you build a CVM security system to prevent data leakage.
    Tencent Cloud Observability Platform
    No
    CM is activated by default. You can install add-ons to get CVM monitoring metrics and display them in visual charts. You can also specify custom alarm thresholds. In addition, you can configure three-dimensional CVM data monitoring, smart data analysis, real-time fault alarms, and custom data reports to precisely monitor Tencent Cloud services and the health conditions of CVM instances.
    Advanced Settings
    No
    Configure additional settings for the instance as needed.
    Hostname: You can customize the name of the computer in the CVM operating system. After a CVM instance is created, you can log in to it to view the hostname.
    Project: The default project is selected. You can select an existing project as needed to manage different CVM instances.
    CAM Role: You can set a role and use it to grant a role entity the permissions to access CVM services and resources and perform operations in Tencent Cloud. For detailed directions, see Managing Roles.
    Placement Group: You can add the instances to placement groups to improve your business availability. For detailed directions, see Placement Group.
    Custom Data: You can configure an instance by specifying custom data, and the configured scripts will run when an instance is started. If multiple CVM instances are purchased at a time, the custom data will run on all of them. The Linux operating system supports the Shell format, while the Windows operating system supports the PowerShell format and a maximum of 16 KB of raw data. For more information, see Configuring Custom Data (Linux CVM).
    Note: Custom data configuration applies only to certain public images with the cloud-init service. For more information, see Cloud-Init & Cloudbase-Init.
    5. Click Next: Confirm Configuration to enter the configuration information confirmation page.
    6. Validate the information of the CVM to be purchased and the cost details of each configuration item.
    7. Read and indicate your consent to the Tencent Cloud Terms of Service.
    8. You can perform the following operations as needed:
    Select Save as Launch Template to save the configuration of this instance as a launch template, based on which you can quickly create instances. For more information, see Managing Instance Startup Template.
    Select Generate API Explorer Reusable Script to generate the OpenAPI reusable script code for instance creation corresponding to the selected configuration. You can save the code for purchasing CVM instances with the same configuration. For more information, see Generating API Explorer Reusable Scripts to Create Instances.
    9. Click Buy Now or Activate and make the payment. After making the payment, you can log in to the CVM console to check your CVM instance. Information such as the instance name, public IP address, private IP address, login username, and initial login password of the CVM will be sent to your account through the Message Center. You can use this information to log in to and manage your instances. To ensure the security of your CVM, please change your CVM login password as soon as possible.
    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