Scenario
This document guides you through how to create a Tencent Cloud Virtual Machine (CVM) instance with custom configurations.
Preparations
Before creating a CVM instance, complete the following steps:
Sign up for a Tencent Cloud account and complete identity verification.
To create a CVM instance with a virtual private cloud (VPC) network type, you need to create a VPC in the target region and create a subnet in the target availability zone under the VPC.
If not using the default project created by the system, you need to create a new 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.
If you need to create a CVM instance with a custom image, you must create a custom image or import an image.
Instructions
1. Log in to the Tencent Cloud official website, select Products > Basic > Compute > Cloud Virtual Machine, and clickBuy Now to access the CVM purchase page.
Quick Configuration: Suitable for general scenarios, allowing users to quickly select and purchase CVM instances that meet their regular requirements.
Custom Configuration: Suitable for specific scenarios, allowing users to select CVM instances tailored to their specific needs.
2. Configure the following information as prompted by the page:
Category | Required/Optional | Configuration Notes |
Billing | Required | Select one as needed: Monthly subscription: A prepaid billing mode for cloud servers, suitable for scenarios where resource demands can be estimated in advance, offering lower prices compared to pay-as-you-go billing. Pay-as-you-go: A flexible billing mode for cloud servers, suitable for scenarios with sudden and significant fluctuations in demand, such as flash sales. The unit price is higher than that of the monthly/yearly subscription billing mode. Spot Instance: A new instance operation mode suitable for big data computing, load-balanced online services, and website services, with prices generally ranging from 10% to 20% of the pay-as-you-go rate. |
Region/Availability Zone | Required | 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 about available regions and availability zones, refer to Regions and Availability Zones. |
Instance | Required | Tencent Cloud offers various instance types based on different underlying hardware. For more information on instance specifications, see Instance Types. |
Video flipping | Required | Tencent Cloud offers public images, custom images, shared images, and image marketplace. You can refer to Image Types for selection. |
Required | The default capacity for installing the operating system is 50 GB. The available cloud disk types may vary depending on the region. Please make your selection based on the actual page prompts. For more information about cloud disks, see Cloud Disk Types. | |
Optional | Cloud disks are used to expand the storage capacity of cloud servers, providing efficient and reliable storage devices. By default, no cloud disk data disk is added. For more information about cloud disks, see Cloud Disk Types. | |
Period | Required | Applicable only to monthly/yearly subscribed cloud servers. Indicates the duration of cloud server usage. |
Amount | Required | It indicates the quantity of CVM instances to be purchased. |
3. Click Next: Configure Network and Host to enter the host configuration page.
4. Configure the following information as prompted by the page:
Category | Required/Optional | Configuration Notes |
Networking | Required | A logically isolated network space built on Tencent Cloud, a VPC consists of at least one subnet. The system provides a default VPC and subnet for you in 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 | Optional | If your CVM requires public network access, you need to assign a public IP address. You can choose to assign a public IP address when creating the CVM, or configure an Elastic Public IP for it after creation.
Note: The free independent public IP address cannot be unbound from the instance. To unbind the IP address, convert the public IP to an Elastic IP (EIP) and then unbind it. For more information about EIPs, please refer to Elastic Public IPs. 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 | Required | Tencent Cloud provides two network billing modes. Configure a value greater than 0 Mbps as needed. Bandwidth billing: Choose fixed bandwidth, and packets will be dropped when exceeding this bandwidth. Suitable for scenarios with minimal network fluctuations. Billing by traffic usage: Charges are based on actual traffic usage. You can limit peak bandwidth to avoid unexpected costs due to traffic spikes. Packet loss will occur when instantaneous bandwidth exceeds this value. Suitable for scenarios with significant network fluctuations. Bill by Bandwidth Package: When public network traffic peaks are distributed across different time periods, aggregated bandwidth billing can be achieved through shared bandwidth packages. This is suitable for large-scale businesses with staggered traffic between different public network instances. |
Bandwidth value | Optional | You can set the public network bandwidth cap for your cloud server as needed. For more information, see Public Network Bandwidth Cap. |
IPv6 address | Optional | |
Security Group | Required | If you do not have an available security group, you can choose to Create a New Security Group. If you have available security groups, you can select Existing Security Groups. |
Tag | Optional | Optionally, add tags to the instance for categorizing, searching, and aggregating cloud resources. For more information, see Tags. |
Instance Name | Optional | 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. If an instance name is defined, it must be within 128 characters, and you can also use naming with consecutive numeric suffixes or designated pattern string. Note: This name is displayed only in the console. It is not the hostname of the CVM instance. |
Login Options | Required | Configure the method to log in to the CVM as needed. Set Password: Customize the password for logging in to the instance. Associate SSH Key (Linux instances only): Link an SSH key for a more secure login to your cloud server. If you don't have a key or the existing key is not suitable, click Create Now to create one. For more information on SSH keys, see SSH Keys. Random Password: An automatically generated password will be sent via the Message Center. |
Instance Termination Protection | Optional | By default, this feature is disabled. You can enable instance termination protection based on your needs, which prevents the instance from being terminated through the console or API. For more information about instance termination protection, please refer to Enable Instance Termination Protection. |
Security Enhancement | Optional | DDoS protection and Cloud Workload Protection (CWP) are activated by default, helping users build a secure server protection system to prevent data breaches. |
Tencent Cloud Observability Platform (TCOP) | Optional | By default, cloud product monitoring is activated for free, and components are installed to obtain server monitoring metrics, which are displayed as monitoring icons. Custom alarm thresholds can also be set. Additionally, it offers comprehensive cloud server data monitoring, intelligent data analysis, real-time fault alarms, and personalized data report configurations, enabling users to accurately control the health of their business and cloud servers. |
Automation Assistant | Optional | By default, it is available for free as a native CVM operations and deployment tool. Without the need for remote instance connections, it can automatically execute Shell commands in batches, completing tasks such as running automated operations scripts, polling processes, installing/uninstalling software, updating applications, and installing patches. |
Advanced settings | Optional | 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: By setting a role, you can grant access permissions to Tencent Cloud services, operations, and resources for the cloud server. For more information, refer to Managing Instance Roles. Placement Group: If needed, you can add instances to a placement group to improve the availability of your business. For more information, refer to Placement Group for configuration. Custom Data: Specify custom data to configure the instance, which runs the configured script when the instance starts. If multiple CVMs are purchased at once, the custom data will run on all of them. Linux OS supports Shell format, while Windows OS supports PowerShell format, with a maximum of 16KB of raw data. For more information, refer to Custom Data. Note: Custom data configuration is only supported for some public images with Cloudinit service. For more information, see Cloud-Init. |
5. Click Next: Confirm Configuration Info to proceed to the confirmation page.
6. Validate the information of the CVM to be purchased and the cost details of each configuration item.
7. If you have purchased a monthly or yearly subscription CVM, you can configure the following settings:
Option | Note |
Unify Expiry Date | Unified expiry date allows users to synchronize the expiration time of prepaid devices to the same date each month, making it convenient for users to manage and renew their cloud servers uniformly. If you have never used the Unified Expiration Date feature, the option will not be displayed on the purchase page. To set it up, please refer to the Unified Expiration Date operation guide. If you have used the Unified Expiry Date feature before, the purchase page will display a checkbox for it. When purchasing a CVM with this option selected, the duration must be longer than one month. For any partial month, the system will charge you based on the monthly price converted to daily rates. For example, if you purchase a CVM on November 12th with a monthly price of 60CNY/month and a Unified Expiry Date of the 20th of each month, the CVM will expire on December 20th, and you will need to pay 76CNY (60 + 60 ÷ 30 × 8). |
Auto-Renewal | Applicable only to monthly-subscribed cloud servers. Select "Auto-renew the device monthly upon expiration if your account has sufficient balance" to avoid manual renewal when the device expires. |
8. Read and select "I agree to the Tencent Cloud Terms of Service, Refund Policy, and Tencent Cloud Prohibition of Virtual Currency-related Activities Statement" or "I agree to the Tencent Cloud Terms of Service and Tencent Cloud Prohibition of Virtual Currency-related Activities Statement."
9. You can perform the following operations as needed:
Choose Save as Launch Template: Save the instance configuration as a launch template, which can be used to quickly create instances. For more information, refer to Managing Instance Launch Templates.
Select Generate API Explorer Best Practice Script: Generate the OpenAPI best practice script code for the selected configuration, which you can save for purchasing cloud servers with the same configuration. For more information, see Generating Instance Creation API Explorer Best Practice Script.
10. Click Buy Now or Activate and complete the payment. After the payment is completed, you can access the CVM console to view your CVM instance.
The instance name, public IP address, private IP address, username, initial login password, and other information will be sent to your account via in-app messages. Use this information to log in and manage your instance, and change your CVM login password as soon as possible to ensure the security of your server.