Customizing Linux CVM Configurations

Last updated: 2026-05-12 17:16:54
Compared to the quick configuration, custom configuration offers a wider range of image platforms, as well as advanced settings for storage, bandwidth, and security groups. You can choose the appropriate configuration based on your needs. This document provides an example of custom configuration. If you prefer to create a CVM using the quick configuration, refer to the Quick Configuration for Linux CVM document.

Registration and Verification

Before using a CVM instance, you need to perform the following operations:
1. Sign up for a Tencent Cloud account and complete identity verification. New users need to register on the Tencent Cloud official website. For detailed instructions, refer to Sign Up for a Tencent Cloud Account.
2. Visit the Tencent Cloud CVM Introduction page and click Buy Now.

Select a basic configuration

Note
For first-time buyers, the default page is Quick Configuration. For users who have previously purchased CVM instances, the default page is Custom Configuration. If you have not purchased a CVM instance before, please select Custom Configuration to proceed with custom configuration.
1. Configure the following information as prompted by the page:
Category
Required/Optional
Configuration Notes
Required
Select one as needed:
Monthly Subscription: A prepaid billing mode for CVM instances, suitable for scenarios where resource demands can be estimated in advance. The pricing is more cost-effective compared to the pay-as-you-go billing mode.
Pay-as-you-go: A flexible billing mode for CVM instances, suitable for scenarios with sudden spikes in demand, such as flash sales. The unit price is higher than that of the monthly subscription billing mode.
Spot Instance: A new instance operation mode suitable for big data processing, load-balanced online services, and website services, with prices generally ranging from 10% to 20% of the pay-as-you-go rate.
Regions
Required
We recommend you select the region closest to your users to minimize the access latency and improve the access speed.
Availability Zones
Required
Select one as needed.
If you need to purchase multiple CVM instances, it is recommended to choose different availability zones for disaster recovery purposes. For more information, see Regions and Availability Zones.
Instance
Required
Tencent Cloud currently offers a variety of instance types based on different underlying hardware. For optimal performance, it is recommended to use the latest generation of instance types.
For more information about instance types, see Instance Specifications.
Video flipping
Required
Tencent Cloud offers public images, custom images, shared images, and image marketplace. You can refer to Image Types for selection.
We recommend new Tencent Cloud users select a public image.
Required
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 about cloud disks, please refer to Cloud Disk Types.
Optional
Used to expand the storage capacity of CVM instances, providing efficient and reliable storage devices. By default, no cloud disk data disks are added.
For more information about cloud disks, please refer to 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.
2. Click Next: Configure Network and Host to enter the host configuration page.

Setting the network and CVM

1. 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 instance requires public network access, you need to allocate a public IP address. You can choose to allocate a public IP address when creating the CVM instance or configure an Elastic Public IP after the instance is created.
Bill-by-bandwidth mode
Optional
Tencent Cloud provides two network billing modes. You can select one as needed.
Bandwidth-based billing: Choose a fixed bandwidth, and packets will be dropped when exceeding this bandwidth. Suitable for scenarios with minimal network fluctuations.
Pay-as-you-go by traffic: Charges are based on actual traffic usage. You can limit the peak bandwidth to avoid unexpected traffic costs, and packets will be dropped when the instantaneous bandwidth exceeds this value. Suitable for scenarios with significant network fluctuations.
For more information, see Public Network Billing Modes.
Bandwidth value
Optional
You can set the public network bandwidth cap for the CVM instance as needed. For more information, see Public Network Bandwidth Cap.
IPv6 address
Optional
Enable IPv6 address for your CVM instance. For more information, please refer to Elastic Public IPv6.
Security Group
Required
Used to configure the network access policies for one or more CVM instances.
Please ensure that port 22 is open for login. For more information, refer to Security Group.
Tag
Optional
You can add tags to your CVM instances as needed for categorizing, searching, and aggregating cloud resources. For more information, please refer to Tags.
Instance Name
Optional
The name of the CVM to be created.
User-defined, recommended as CVM-01.
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: Link an SSH key for a more secure login to your CVM instance.
If you don't have a key or the existing key is not suitable, you can click Create Now to create one. For more information on SSH keys, please refer to SSH Keys.
Auto-generated Password: The generated password will be sent via 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
By default, security service is enabled for free to help you build a CVM security system to prevent data leakage.
Tencent Cloud Observability Platform (TCOP)
Optional
By default, the service is activated for free, offering comprehensive CVM data monitoring, intelligent data analysis, real-time fault alarms, and customizable data report configurations, enabling users to accurately manage the health of their businesses and CVM instances.
Automation Assistant
Optional
By default, it is available for free as a native CVM deployment tool. Without the need for remote connection to instances, it can automatically execute Shell commands in batches, accomplishing tasks such as running automated operation scripts, polling processes, installing/uninstalling software, updating applications, and installing patches.
Advanced settings
Optional
Configure additional settings for the instance as needed.
Host Name: Users can customize the computer name within the CVM operating system. After the CVM is successfully created, the host name can be viewed by logging into the instance.
Project: By default, the Default Project is selected. You can choose an existing project based on your needs for managing different CVM instances.
CAM Role: After setting a role, you can grant access permissions to Tencent Cloud services, operations, and resources for the CVM instance. For more information, refer to Managing Instance Roles.
Placement Group: You can add instances to a placement group as needed to improve the availability of your services. For more information, refer to Placement Groups for configuration.
Custom Data: Specify custom data to configure the instance, which runs the configured script when the instance is launched. If multiple CVMs are purchased at once, the custom data will be executed on all of them. Linux operating systems support Shell format, with a maximum of 16KB 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.
2. Click Next: Confirm Configuration Info to proceed to the confirmation page.

Confirming the Configuration Information

1. Check the configuration items and billing details of the CVM instance to be purchased.
2. 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 purchase page will not display the checkbox for it. To set up this feature, please refer to the Unified Expiration Date operation guide.
If you have used the Unified Expiration 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 calculate the fees based on the monthly price converted to daily rates.
For example, if you purchase a CVM on November 12th with a unified expiry date and a monthly price of 60 RMB/month, and the unified expiry date is the 20th of each month, the CVM will expire on December 20th. The amount you need to pay is 76 RMB (60 + 60 ÷ 30 × 8).
Auto-Renewal
For Monthly Subscription CVM instances only. Select Auto-renew the device monthly upon expiration if your account has sufficient balance to avoid manual renewal when the device expires.
3. Read and select I agree to the Tencent Cloud Terms of Service, Refund Rules, 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.
4. 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.
5. 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.

Logging in to and Connecting the Instance

After completing CVM operations, you can log in to your CVM on the Tencent Cloud console and perform operations such as building a site as needed. Select a method for logging in to the CVM on the Tencent Cloud console as needed:

Partitioning and formatting the data disk

If you added a data disk during the Instance Type Selection, you need to format and partition the data disk after logging into the instance. If you did not add a data disk, you can skip this step. Select the appropriate operations guide according to the disk capacity and the CVM operating system:
When the disk capacity is less than 2 TB:
When the disk capacity is 2 TB or more: