Creating an Instance
Last updated: 2019-11-12 11:10:36
This topic guides you through how to create a Tencent Cloud Virtual Machine (CVM) instance. The custom configuration mode is used as an example.
Before creating a CVM instance, you need to complete the following steps:
- Sign Up for Tencent Cloud, and complete Identity Verification.
- 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 in the VPC.
- If you don’t want to use the default project, please create a new project.
- If you don’t want to 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 service requirements.
- To bind an SSH key pair during 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.
Configure the following information as prompted by the page:
Configuration Required Description Billing mode Yes Select a value as required:
- Pay as you go: An elastic billing mode for the CVM. It is applicable to scenarios such as sudden high sales volumes on e-commerce platforms where the number of required CVMs fluctuates dramatically. The unit price in this mode is three or four times more expensive than that in the monthly subscription mode.
Region/Availability zone Yes
- Region: The region closest to your customer is recommended, which reduces the access latency and increases the access speed.
- Availability zone: Select a value as required.If you want to purchase multiple CVMs, we recommend that you select different availability zones to implement disaster recovery.
Network Yes Logically isolated space that is 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:
- Resources in the same VPC can be shared within the private network.
- When purchasing the CVM, ensure that the CVM and the subnet where the CVM is created have the same availability zones.
Instance Yes Tencent Cloud provides different types of instances for different underlying hardware. To achieve optimal performance, new-generation instances are recommended. For more information about instances, see Instance Specifications. Image Yes Tencent Cloud provides public images, custom images, shared images, and marketplaces. For more information about images, see Image Types. System disk Yes Used to install the operating system. By default, its capacity is 50 GB.Available cloud disk types vary with regions. Select a value as prompted by the page.For more information about cloud disks, see Cloud Disk Types. Data disk No Used to scale up the storage capacity of the CVM to ensure high efficiency and reliability. Cloud data disks are not added by default.For more information about cloud disks, see Cloud Disk Types. Public network bandwidth Yes A free independent public IP address is allocated by default.Tencent Cloud provides two network billing modes. Set a value greater than 0 Mbit/s as required.
- Bill-by-bandwidth: Select a fixed bandwidth. Packet loss occurs when this bandwidth is exceeded. This mode is applicable to scenarios where network connection fluctuation is slight.
- Bill-by-traffic: Billing is based on the traffic that is actually used. You can specify a peak bandwidth to prevent from being charged for unexpected traffic. Packet loss occurs when the instantaneous bandwidth exceeds this value. This mode is applicable to scenarios where network connection fluctuation is heavy.
Public gateway Yes Applicable only to Linux images.As a network interface between the VPC and the public network, the public gateway can forward requests of CVMs that are within different subnets of the VPC and have no public IP addresses.For more information, see Public Gateway. Quantity Yes The number of CVMs to be purchased. Duration Yes Applicable only to CVMs with monthly subscription.It indicates the usage duration of a CVM.
Click Next: Security Group and CVM to open the Security Group and CVM page.
Configure the following information as prompted by the page:
Configuration Required Description Project Yes The default project is selected by default. You can select an existing project as required to manage different CVMs. Security group Yes
- If no security group is available, you can choose **Create Security Group**.
- If there are available security groups, you can choose **Existing Security Group**.
Instance Name No Customized by users to indicate the name of the CVM to be created.
- If no instance name is customized, the name of the created instance is **Unnamed**.
- An instance name can up to 60 characters. You can also perform Batch Sequential Naming or String Pattern-Based Naming.
Login Method Yes The method of logging in to the CVM. Select a value as required.
- Set the password: Customize the password for logging in to the instance.
- SSH Key Pair (Only for Linux instances): Associate the instance with an SSH key, which ensures secure login to the CVM.If no key is available or existing keys are inappropriate, you can click **Create Now** to create a key. For more information about SSH keys, see SSH Key.
- Random Password: An automatically generated password will be sent via Internal Messages.
Security Reinforcement No By default, DDoS protection and host security are enabled for free to help users build a CVM security protection system against data leakage. Cloud Monitoring No By default, monitoring is enabled for Tencent Cloud services for free. You can install a component to retrieve CVM monitoring metrics and display results in monitoring graphs. You can also specify custom alarm thresholds. In addition, you can configure three-dimensional CVM data monitoring, intelligent data analysis, real-time fault alerting, and personalized data reports to precisely monitor Tencent Cloud services and the health conditions of CVMs. Collective Expiry Date No Applicable only to CVMs with monthly subscription and specified collective expiry dates.This feature extends the expiry dates of all CVMs to the same expiry date specified by the user, facilitating renewal management.For more information about how to set the collective expiry date, see **Renewal Management**. Auto-renewal No Applicable only to CVMs with monthly subscription.Check Select **Auto-renew the device every month when my account has sufficient balance** for auto renewal.For more information, see **Renewal Management**. Advanced Settings No Specifies additional settings of the instance as required.
- Host Name: You can customize the internal computer name for the CVM’s operating system. After a CVM is created, you can log in to the CVM to view the host name.
- Placement Group: You can add an instance to a placement group as required to improve service availability. For more information, see Placement Group.
- Tag: A tag can be specified to manage CVM resources by categories. For more information, see Tag.
- Custom Data: You can configure an instance by specifying custom data. That is, run configuration scripts when an instance is started. If multiple CVMs are purchased at a time, the custom data will run on all CVMs. The Linux operating system supports the Shell format, and the Windows operating system supports the PowerShell format. A maximum of 16 KB raw data is supported. For details, see Custom Data.Note: Custom data configuration supports only public images with the Cloudinit service. For more information, see Cloud-Init.
Click Next: Confirm to open the configuration information confirmation page.
Check the information of the CVM to be purchased and the costs details of each configuration item.
Select Agree with the Refund Rule. (This option is applicable only to CVMs with monthly subscription.)
Click Purchase Now and complete the payment. Then, you can check your CVM by logging in to the CVM Console.
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 via Internal Messages. You can log in to and manage instances based on the information. To ensure the security of the CVM, change your CVM login password as soon as possible.