Cloud Virtual Machine

Cloud Virtual Machine
Getting Started
Product Documentation©2013-2022 Tencent Cloud. All rights reserved.

Page 1 of 26

Cloud Virtual Machine

Copyright Notice©2013-2024 Tencent Cloud. All rights reserved.
Copyright in this document is exclusively owned by Tencent Cloud. You must not reproduce, modify, copy or distributein any way, in whole or in part, the contents of this document without Tencent Cloud's the prior written consent.
Trademark Notice

All trademarks associated with Tencent Cloud and its services are owned by Tencent Cloud Computing (Beijing)
Company Limited and its affiliated companies. Trademarks of third parties referred to in this document are owned bytheir respective proprietors.
Service Statement
This document is intended to provide users with general information about Tencent Cloud's products and services
only and does not form part of Tencent Cloud's terms and conditions. Tencent Cloud's products or services are
subject to change. Specific products and services and the standards applicable to them are exclusively provided for in
Tencent Cloud's applicable terms and conditions.

©2013-2022 Tencent Cloud. All rights reserved.

Page 2 of 26

Cloud Virtual Machine

Contents
Getting StartedConcepts
Custom Configurations
Choosing a Billing Mode
Types of InstanceConfiguring Disk
Network Planning
Configuring Security Groups
Estimating Costs
Customizing Linux CVM Configurations
Customizing Windows CVM Configurations©2013-2022 Tencent Cloud. All rights reserved.

Page 3 of 26

Cloud Virtual Machine

Getting StartedConcepts：

Last updated 2024-01-06 18:00:25

Instance
An instance is a Cloud Virtual Machine (CVM), which is a virtual computing resource containing CPU, memory, OS,
network, disks, and other basic computing components.
CVM instances provide secure, reliable and elastic computing services in the cloud to meet computing requirements.
As business demands change, computing resources can be scaled in real time to lower your software and hardware
costs and simplify IT OPS work.

Instance Type
Tencent Cloud provides various configurations of CPU, MEM, storage, and networking capacity for CVM instances.
For more information, please see Instance Types.

Image
An image is a pre-configured template containing an operating system and applications that CVM instances run on.
Tencent Cloud CVM provides pre-configured images for Windows, Linux, etc.

Cloud Block Storage
Cloud Block Storage (CBS) is a highly available, highly reliable, low-cost, and customizable block storage device. It
can be used as a standalone and expandable disk for CVM, providing efficient and reliable storage devices.

VPC
A VPC is a logically isolated virtual network space in Tencent Cloud.

IP Addresses
Tencent Cloud provides private IP address and public IP address. Private IP address is for the interconnection of
CVM instances within the same LAN, while public IP address is for public-facing services.

Elastic IP
Elastic IP (EIP) is static public network IP addresses designed especially for dynamic networks to meet the demands
for fast troubleshooting.
An EIP is a public IP address that can be applied for independently. It supports dynamic binding and unbinding. You
can bind it to or unbind it from the CVM (or NAT Gateway instances) under your account. Its main uses are:
To retain an IP. ICP domain name filing is required for Chinese mainland IP and DNS.

©2013-2022 Tencent Cloud. All rights reserved.

Page 4 of 26

Cloud Virtual Machine

To mask an instance failure. For example, a DNS name is mapped to an IP address through dynamic DNS mapping. It
may take up to 24 hours to propagate this mapping to the entire Internet, while an elastic IP enables quick remappingof an IP from one CVM to another. When one CVM fails, you can just start and remap another instance to quickly
respond to instance failures.

Security GroupA security group is a virtual firewall that features stateful data packet filtering. It is used to configure the network
access control of CVMs. You can add CVM instances with the same network security isolation requirements in thesame region to the same security group, to filter the inbound and outbound traffic of the CVM through the network
policies of the security group.

Login Method
The password is a unique login credential for the CVM instance. To ensure instance security, Tencent Cloud provides
the following two encrypted login methods:
SSH key pairs are easier to use. You can log in to instances remotely with a few simple configuration steps on the
console and your local client, and do not need to enter a password when you log in again.
Login password allows anyone with the password to log in to the CVM instance remotely through a public network
address allowed by the security group.

Regions and Availability Zones
Physical locations where CVM instances and other resources reside and are launched.
A region refers to a geographical location where data centers hosted by Tencent Cloud are located. Each region has
multiple availability zones.
An availability zone is a Tencent Cloud IDC with an independent power supply and network in the above region. It canensure business stability, as failures in one AZ are isolated without affecting other AZs in the same region.

©2013-2022 Tencent Cloud. All rights reserved.

Page 5 of 26

Cloud Virtual Machine

Custom Configurations
Choosing a Billing Mode：

Last updated 2024-06-25 15:46:19
Tencent Cloud provides the following billing methods for Cloud Virtual Machine (CVM) instances:： is a flexible billing method for CVM instances. You can activate or terminate a CVM at any time, andPay as you go

you will be billed by the actual usage of the CVM. The billing granularity is accurate to second, and no up-front
payment is required. A bill is generated every hour on the dot. This billing method is suitable for use cases such as an
e-commerce flash sale where the demand for devices can fluctuate greatly.
Spot Instance：A novel operational mode for CVM services, similar to the pay-as-you-go mode, falls under the post-

payment category, where charges are calculated by the second and settlements are made on the hour. Spot instances
utilize a market-based floating billing system, where prices fluctuate in response to shifts in supply and demand
dynamics. Compared to the pay-as-you-go mode, significant discounts are offered, with the price typically ranging
from 3% to 20% of the pay-as-you-go price. However, spot instances may be subject to system-initiated reclamation
due to dwindling resource inventories or competitive bidding by other users.
Both the pay-as-you-go and spot-instances billing methods can satisfy user requirements in different scenarios. For
more information, see Pricing Modes.

©2013-2022 Tencent Cloud. All rights reserved.

Page 6 of 26

Cloud Virtual Machine

Types of Instance：

Last updated 2024-01-06 18:00:25
Tencent Cloud provides the following recommendations for selecting an instance type for diverse customer use cases:
Use Case

Recommended
Instance Type

Description

Standard
instance

Suitable for general workloads, such as small and medium Web
applications and databases.

Standard
instance

Suitable for general workloads, such as small and medium Web
applications and databases.

Relational
database/distributed

MEM
optimized

Suitable for use cases that require extensive memory operations,cache

instance

Personal website
Enterprisewebsites/Ecommerce/App

NoSQL databaseHigh IO
instance
Computinginstance

High performancecomputingComputingnetworkenhanced

searches, and computing.
Suitable for I/O-intensive use cases that require high disk
read/write performance and low latency, such as TencentDB for
MongoDB and clustered databases.

Suitable for use cases that require a large number of computing
resources, such as large PC games, high performance scienceand engineering applications, and video encoding/decoding.

instance
Computinginstance
High performance PC
games

Computingnetworkenhancedinstance

Suitable for use cases that require a large number of computing
resources, such as large PC games, high performance scienceand engineering applications, and video encoding/decoding.

Computing
Mobile/browser
games

instance
Computingnetworkenhanced

Suitable for use cases that require a large number of computing
resources, such as large PC games, high performance scienceand engineering applications, and video encoding/decoding.

instance
Live streamingStandard
network©2013-2022 Tencent Cloud. All rights reserved.

Comes with a 25 GB ENI that is 2.5 times faster than that ofregular ten-gigabit data centers, providing increased bandwidthPage 7 of 26

Cloud Virtual Machineenhancedinstance

and reduced latency.

Computingnetworkenhancedinstance

Finance

CDH
standard
instance

Scientific computing

Machine learning

CDH standard instances are secure, controllable, and fullycompliant with the strict regulations in the finance industry. Custom
specifications are also supported.

GPU

Suitable for use cases that require deep learning, and scientificcomputing including computational fluid dynamics, computational

computingfinance, genomics research, environmental analysis, high-instance

performance computing, and other server-side GPU computing
workloads.

GPU

Suitable for use cases that require deep learning, and scientificcomputing including computational fluid dynamics, computational

computingfinance, genomics research, environmental analysis, high-instance

performance computing, and other server-side GPU computing
workloads.

GPU
Rendering

Features exclusive physical servers and isolated resources. The

rendering
instance

Suitable for non-linear editing, video encoding/decoding, graphics
acceleration visualization, and 3D design.

Hadoop/Spark/Elastic

Big data

Suitable for distributed computing services like Hadoop(HDFS/MapReduce/Spark/Hive), massive parallel processing

Searchinstance(MPP) data warehouses, B8 logs, and data processing
applications.

For more use cases, see Instance Types.

©2013-2022 Tencent Cloud. All rights reserved.

Page 8 of 26

Cloud Virtual Machine

Configuring Disk：

Last updated 2024-01-06 18:00:25
When configuring an instance, you can choose a local disk or a cloud disk as your system disk or data disk. Before
you choose a storage media, please familiarize yourself with the characteristics and the use cases of local disks andCloud Block Storage.
Note:
The types of system disks and data disks on the purchase page vary by the different instance specifications you
select. For example, SSD local disks are only available for IO instances.
You cannot upgrade the hardware (CPU, memory, or storage) of a CVM instance with local disks. You can only
upgrade its bandwidth.
The media type of system disks cannot be changed after purchase.
The following table lists the different strengths and use cases of different storage media such as the SATA HDD local
disk, the NVME SSD disk, Premium Cloud Storage, and SSD.
Storage MediaStrengths

Use Cases
Acts as a temporary read cache: NVME SSD has
excellent random read performance (4 KB/8 KB/16 KB
random read) and is suitable for read-only slave
databases for relational databases such as MySQL

NVME SSD
local disks (onlyavailable for IO

Low latency: provides
microsecond-level accessinstances suchlatency.

as IT3 and IT5)

and Oracle.
Since the cost of using memories is still higher than thecost of using SSDs, NVME SSD local disks can also be
used as the secondary cache of Redis, Memcache,and other cache business.
Note: NVME SSD carries the risk of a single point of
failure. Therefore, we recommend that you implement
data redundancy at the application layer to ensure
reliability and use SSD cloud disks for your corebusiness.

SATA HDD local
disk (onlyProvides the same data
persistence as that of SSD at a

It is suitable for scenarios that involve thesequential reading and writing of large files, such

available for big
data instances

fraction of the cost. It can beused as the cold data backup

as EMR and big data processing.

such as D2)

and the archive for importantbusiness, with a maximum
capacity of 16 TB for a single
disk.
High throughput: provides thesame throughput as those of©2013-2022 Tencent Cloud. All rights reserved.

Page 9 of 26

Cloud Virtual Machine

local HDDs.

Premium Cloud
Storage

It is the most cost-effective

It is suitable for small and medium databases, webservers, and other scenarios, and provides consistentoption that is suitable for 90%
of I/O scenarios.

and stable I/O performance.
It meets the I/O demands for testing core business anddeveloping joint testing environments.

High performance and highdata reliability: SSD uses thebest-in-class NVMe solid state
SSD

storage as the disk media. It is
suitable for I/O-intensive
business and provides longterm and ultra-excellent single
disk performance.

Applicable use cases:
Medium and large databases: supports medium andlarge relational database applications containing tables
with millions of rows, such as MySQL, Oracle, andSQL Server.
Core business systems: supports I/O-intensive
applications and other core business systems with highdata reliability requirements.
Big data analysis: supports the distributed processingof TB- and PB-level data for data analysis, data mining,business intelligence, and other applications.

For more information about the types and use cases of cloud disks, see Cloud Disk Types.
For more information about the prices of cloud disks, see Pricing List.

©2013-2022 Tencent Cloud. All rights reserved.

Page 10 of 26

Cloud Virtual Machine

Network Planning：

Last updated 2024-01-06 18:00:25
A Tencent Cloud Virtual Private Cloud (VPC) instance is a user-defined logically isolated network space on Tencent
Cloud. In this instance, users can customize IP ranges, IP addresses, and routing policies. Therefore, Tencent Cloudrecommends that you use a VPC instance for your businesses.
To help you better use Tencent Cloud VPC instances, Tencent Cloud provides the following network planningrecommendations.

Determining the number of VPC instances
Features:
VPC instances can not communicate with each other by default. If there is a need for intercommunication between
different VPC instances, it can be achieved through Peering Connection or Cloud Connect Network.
By default, different availability zones in the same VPC instance can communicate with each other.
Recommendations:If your business requires cross-region system deployment, multiple VPC instances are required. In this case, you canbuild a VPC instance that is close to the region where your customers are located to reduce access latency andimprove the access speed.
If you have deployed multiple businesses in the current region and want to implement network isolation among
different businesses, you can build a VPC instance for each business in the current region.
If you do not require cross-region business deployment or network isolation among businesses, you can use one VPC
instance.

Determining subnet division
Features:
Subnets are IP address blocks in a VPC instance. All cloud resources in a VPC instance must be deployed in subnets.
In the same VPC instance, the IP ranges of subnets must not overlap.
Tencent Cloud automatically assigns initial private IP addresses from VPC IP ranges. The Tencent Cloud VPC CIDR
block can be any of the following VPC IP ranges. For an IP address within these ranges, its mask ranges from 16 to
28, and the actual mask is determined by the private network where the instance resides.
10.0.0.0-10.255.255.255
172.16.0.0-172.31.255.255
192.168.0.0-192.168.255.255
After a VPC instance is created, its IP range cannot be modified.
Recommendations:
If only VPC subnets need to be divided and communication with the basic network or IDC is not involved, choose anyof the preceding IP ranges to create a subnet.

©2013-2022 Tencent Cloud. All rights reserved.

Page 11 of 26

Cloud Virtual Machine

If communication with the basic network is required, establish a VPC instance with the IP range of 10.[0-47].0.0/16
and its subsets as required.
If a VPN is required, the local IP range (of the VPC instance) and the peer IP range (of your IDC) cannot overlap.
Therefore, do not use the peer IP range when creating a subnet.
During subnet division, you also need to consider the number of available IP addresses within an IP range.
We recommend that subnets be divided according to the business modules for businesses in the same VPC instance.
For example, subnet A is used for the web layer, subnet B is used for the logic layer, and subnet C is used for the
database layer. This facilitates access control and filtering by using the network ACL.

Determining route policies
Features:
A route table consists of a series of routing rules that control the traffic flow of subnets in a VPC instance.
Each subnet must be associated with only one route table.
A single route table can be associated with multiple subnets.
When a VPC instance is created, the system automatically generates a default route table for the instance, which
defines that VPC instances can communicate with each other through the private network.
Recommendations:If you do not need to control the traffic flow of subnets and VPC instances are interconnected through the private
network by default, you can use the default route table without needing to configure a custom routing policy.
If you need to control the traffic flow of subnets, see Overview on the official website.
For more information on VPC instances, see VPC.

©2013-2022 Tencent Cloud. All rights reserved.

Page 12 of 26

Cloud Virtual Machine

Configuring Security Groups：

Last updated 2024-01-06 18:00:25
This document describes how to create and configure a security group for an instance. For more information, pleasesee Security Group.

Configuring a Security Group
1. Select New security group.
Note:
If you have available security groups, you can select Existing Security Groups.

2. Select IP addresses or ports to open based on your actual requirements.
Rules for a new security group are as follows:
ICMP: opens to the ICMP protocol and allows the pinging of the server over the public network.
TCP:80: opens port 80 and allows access to Web services over HTTP.
TCP:22: opens port 22 and allows a remote connection to Linux CVMs over SSH.
TCP:443: opens port 443 and allows access to Web services over HTTPS.
TCP:3389: opens port 3389 and allows a remote connection to Windows CVMs over RDP.
Private network: opens to the private network and allows private network access among different cloud resources(IPv4).
Note:©2013-2022 Tencent Cloud. All rights reserved.

Page 13 of 26

Cloud Virtual Machine

After you select the IP addresses or ports to be opened, the detailed inbound and outbound rules appear on the
Security Group Rule tab page.
To open other ports for your business, refer to Security Group Use Cases to create security groups. For security
reasons, we recommend that you only open ports when absolutely necessary to avoid unnecessary security risks.
3. Configure other information as prompted.

Security Group Rules
Inbound rules: allows traffic to CVMs associated with a security group.
Outbound rules: indicates outbound traffic from the CVMs.
Rules in a security group are prioritized from top to bottom.
When a CVM is bound to a security group without rules, all inbound and outbound traffic is rejected by default. If a ruleis available, the rule prevails.
When a CVM is bound to multiple security groups, the security groups with smaller numbers have higher priority.
When a CVM is bound to multiple security groups, the rejection rule takes effect for the security group with the lowest
priority by default.

Security Group Limits
For more information, please see Security Group Limits.

©2013-2022 Tencent Cloud. All rights reserved.

Page 14 of 26

Cloud Virtual Machine

Estimating Costs：

Last updated 2024-06-25 15:47:06
Other than your CVM model and VPC configuration, these factors also influence how much your service costs:
Billing method
Resource used
Quantity

Billing method：

Pay as you go is a flexible billing method for CVM instances. You can launch/terminate a CVM at any time and arebilled by the actual usage of the CVM. You pay by the second and no up-front payment is required. A bill is generated
every hour on the dot. This billing method is suitable for use cases such as an e-commerce flash sale where thedemand for resources can fluctuate greatly.

：

Spot Instance A novel operational mode for CVM services, similar to the pay-as-you-go mode, falls under the postpayment category, where charges are calculated by the second and settlements are made on the hour. Spot instances
utilize a market-based floating billing system, where prices fluctuate in response to shifts in supply and demand
dynamics. Compared to the pay-as-you-go mode, significant discounts are offered, with the price typically ranging
from 3% to 20% of the pay-as-you-go price. However, spot instances may be subject to system-initiated reclamation
due to dwindling resource inventories or competitive bidding by other users.

Resources used
Region:The price is the same for the same instance model in different regions in Mainland China.
The price might be the same for the same instance model in different regions outside Mainland China.
Image:
Public images: all public images in Mainland China hosted by Tencent Cloud are free. Windows images outside
Mainland China require licensing fees.
Custom image: creating custom images, importing custom images, and copying custom images across regions arefree of charge.
Shared images: shared images from other Tencent Cloud users are free of charge.
Network:
VPC, Subnet, Route Table, Network ACL, Security Group, Direct Connect Gateway, VPN Tunnel, and Customer
Gateway are free of charge.
Bandwidth costs are not applicable to inter-instance communication within different subnets. Intra-region peering
connections are free as well.
Refer to this article for details on the public network billing method.
For details on charges for NAT Gateway, VPN Gateway, and Cross-region Peering connection.

©2013-2022 Tencent Cloud. All rights reserved.

Page 15 of 26

Cloud Virtual Machine

Storage:
For the prices of local disks and cloud disks, refer to this article.

Quantity
The number of CVMs you purchase also affects the price you pay. More CVMs means a higher price.

©2013-2022 Tencent Cloud. All rights reserved.

Page 16 of 26

Cloud Virtual Machine

Customizing Linux CVM Configurations：

Last updated 2024-06-25 15:48:42
Besides the quick configuration template, you can also create CVMs with custom configurations as needed.

Registration
Before using a CVM instance, you need to perform the following operations:
1. A new user needs to sign up for an account on the Tencent Cloud website. For detailed directions, see Signing Up.
2. Visit the Tencent Cloud CVM introduction page and click Buy Now.

Basic Configuration
Note:
For accounts that are making purchases for the first time, the Quick Configuration page appears by default. For
accounts that have made purchases before, the Custom Configuration page appears by default. If you have neverpurchased a CVM instance, select Custom Configuration.
1. Configure the following information as prompted by the page:
Item

Required

Description
Select one as needed:

Billing
Mode

Yes

RegionYes：：

Pay-as-you-go It is an elastic billing method of CVM applicable to scenarios suchas e-commerce flash sales, where demand will fluctuate significantly in an instant.
Spot instance A novel operational mode for instances, aptly suited for scenarios
such as big data computing, and load-balanced online services and website
services. As market supply and demand dynamics shift, the price of spot instances
fluctuates accordingly, typically ranging from 3% to 20% of the pay-as-you-go price.
Select the region closest to your users to minimize the access latency and improve
the access speed
Select one as needed. If you want to purchase multiple CVM instances, we

AZInstance

Yes

Yes

recommend you select different AZs to implement disaster recovery. For more
information, see Regions and AZs.
Tencent Cloud provides different instance types based on the underlying hardware.
For optimal performance, we recommend you use instance types of the latest
generation.
For more information on instances, see Instance Types.

©2013-2022 Tencent Cloud. All rights reserved.

Page 17 of 26

Cloud Virtual Machine

Image

Yes

Tencent Cloud provides public images, custom images, and shared images. For
more information on images, see Image Types.
We recommend new Tencent Cloud users select a public image.
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.

Systemdisk

Yes

Data disk

No

Scheduled
SnapshotNo

A scheduled snapshot policy can be set for the system disk or data disk. For more
information, see Scheduled Snapshots.

QuantityYes

It indicates the quantity of CVM instances to be purchased.

For more information on cloud disks, see Cloud Disk Types.
It is used to scale up the storage capacity of the CVM instance to ensure highefficiency and reliability. It is not added by default.
For more information on cloud disks, see Cloud Disk Types.

2. Click Next: Set Network and CVM to enter the instance settings page.

Network and CVM
1. Configure the following information as prompted by the page:
Item

Required

Description
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 eachregion.

NetworkYes

If the existing VPC or subnet does not meet your requirements, you cancreate 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.
If your CVM instance needs to access the public network, you need to assign

Public IPNoa public IP for it. You can assign the public IP when creating the CVM
instance or configure an EIP after the creation.

Bill-by-bandwidth
mode

No

Tencent Cloud provides two network billing modes. You can select one asneeded.
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©2013-2022 Tencent Cloud. All rights reserved.

Page 18 of 26

Cloud Virtual Machineloss will occur when the instantaneous bandwidth exceeds this value. This isapplicable to scenarios where the network connection fluctuates significantly.
Bill-by-bandwidth package: Select this aggregated billing mode when yourpublic network instances have traffic peaks at different times. It is applicableto large-scale businesses where traffic can be staggered between different
instances using the public network.
For more information, see Public Network Billing.
Bandwidth valueNo

You can set the maximum public network bandwidth of the CVM instance asneeded. For more information, see Public Network Bandwidth Cap.
Used to configure the network access policies for one or more CVM

Security group

Yes

Tag

No

Instance nameNo

instances. Make sure that login port 22 is open. For more information,see Security Group.
You can add tags for the CVM instance as needed, which can be used tocategorize, search for, and aggregate cloud resources. For more information,
see Overview.
The name of the CVM to be created.
It is user-defined. We recommendCVM-01.
Configure the method to log in to the CVM as needed.

Login Methods

Yes

Set Password: Customize the password for logging in to the instance.
SSH Key Pair: Associate the instance with an SSH key to ensure securelogin to the CVM. 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 toyou in Message Center.

Instance
Termination
Protection
Securityenhancement
Tencent Cloud
Observability
Platform
Automation
Assistant

It is not enabled by default. You can enable it as needed. Then, you cannot
No

No

No

No

terminate an instance in the console or via the API. For more information, see
Enabling Instance Termination Protection.
By default, security service is enabled for free to help you build a CVM
security system to prevent data leakage.
CM is activated by default. It provides comprehensive CVM data monitoring,smart data analysis, real-time fault alarms, and custom data reports toprecisely monitor Tencent Cloud services and the health conditions of CVM
instances.
It is enabled free of charge by default. As the native Ops and deployment toolof CVM, it can automatically run shell commands in batches and complete
various tasks such as running automated Ops scripts, polling processes,©2013-2022 Tencent Cloud. All rights reserved.

Page 19 of 26

Cloud Virtual Machine

installing/uninstalling software, updating applications, and installing patches,
without the need to connect to the instance remotely.
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 viewthe hostname.
Project: The default project is selected. You can select an existing project asneeded to manage different CVM instances.
CAM Role: You can set a role and use it to grant role entity the permissions

Advancedsettings

Noto 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 toimprove 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 launched. If multiple
CVM instances are purchased together, the custom data will run on all CVM
instances. The Linux operating system supports the Shell format and amaximum of 16 KB of raw data. For more information, see Configuring
Custom Data (Linux CVM).
Note: Custom data configuration only supports certain public images with the
Cloud-Init service. For more information, see Cloud-Init.

2. Click Next: Confirm Configuration to enter the configuration information confirmation page.

Confirming Configuration
1. Check the configuration items and billing details of the CVM instance to be purchased.
2. Read and indicate your consent to the Tencent Cloud Terms of Service.
3. 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.
4. 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©2013-2022 Tencent Cloud. All rights reserved.

Page 20 of 26

Cloud Virtual Machine

to and manage your instances. To ensure the security of your CVM, please change your CVM login password as soon
as possible.

Logging in to 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:
Logging in to Linux Instance Using Standard Login Method
Logging In to Linux Instances (Remote Login)
Log in to a Linux Instance via an SSH Key

Disk Formatting and Partitioning
If you added a data disk when selecting the instance type, you need to format and partition the data disk after logging
in to the CVM instance. If you have not added any data disks, skip this step.
Select the appropriate operations guide according to the disk capacity and the CVM operating system.
For a disk smaller than 2 TB:
Initializing a Cloud Disk (Linux)
For a disk equal to or larger than 2 TB:
Initializing a Cloud Disk (Linux)
For more operations, see Initialization Scenarios.

©2013-2022 Tencent Cloud. All rights reserved.

Page 21 of 26

Cloud Virtual Machine

Customizing Windows CVM Configurations：

Last updated 2024-06-25 15:49:21
Besides the quick configuration template, you can also create CVMs with custom configurations as needed.

Registration
Before using a CVM instance, you need to perform the following operations:
1. A new user needs to sign up for an account on the Tencent Cloud website. For detailed directions, see Signing Up.
2. Visit the Tencent Cloud CVM introduction page and click Buy Now.

Basic Configuration
Note:
For accounts that are making purchases for the first time, the Quick Configuration page appears by default. For
accounts that have made purchases before, the Custom Configuration page appears by default. If you have neverpurchased a CVM instance, select Custom Configuration.
1. Configure the following information as prompted by the page:Type

Required

Configuration Description
Select one as needed:

Billing
Mode

Yes

RegionYes

Pay-as-you-go: It is an elastic billing method of CVM applicable to scenarios suchas e-commerce flash sales, where demand will fluctuate significantly in an instant.
Spot instance: A novel operational mode for instances, aptly suited for scenarios
such as big data computing, and load-balanced online services and website
services. As market supply and demand dynamics shift, the price of spot instances
fluctuates accordingly, typically ranging from 3% to 20% of the pay-as-you-go price.
Select the region closest to your users to minimize the access latency and improve
the access speed
Select one as needed. If you want to purchase multiple CVM instances, we

AZInstance

Yes

Yes

recommend you select different AZs to implement disaster recovery. For more
information, see Regions and AZs.
Tencent Cloud provides different instance types based on the underlying hardware.
For optimal performance, we recommend you use instance types of the latest
generation.
For more information on instances, see Instance Types.

©2013-2022 Tencent Cloud. All rights reserved.

Page 22 of 26

Cloud Virtual Machine

Image

Yes

Tencent Cloud provides public images, custom images, and shared images. For
more information on images, see Image Types.
We recommend new Tencent Cloud users select a public image.

Systemdisk

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.
It is used to scale up the storage capacity of the CVM instance to ensure highefficiency and reliability.
It is not added by default.
For more information on cloud disks, see Cloud Disk Types.

Data disk

No

Scheduled
SnapshotNo

A scheduled snapshot policy can be set for the system disk or data disk. For more
information, see Scheduled Snapshots.

QuantityYes

It indicates the quantity of CVM instances to be purchased.

2. Click Next: Set Network and CVM to enter the instance settings page.

Network and CVM
1. Configure the following information as prompted by the page:Type

Required

Configuration Description
It is a logically isolated network space built in Tencent Cloud. A VPC includes atleast one subnet. The system provides a default VPC and subnet for each region.

NetworkYes

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

Bill-bybandwidth
mode

No

If your CVM instance needs to access the public network, you need to assign apublic IP for it. You can assign the public IP when creating the CVM instance orconfigure an EIP after the creation.
Tencent Cloud provides two network billing modes. You can select one asneeded.
Bill-by-traffic: Billing is based on traffic that is actually used. You can specify apeak bandwidth to prevent charges incurred by unexpected traffic. Packet loss

©2013-2022 Tencent Cloud. All rights reserved.

Page 23 of 26

Cloud Virtual Machine

will occur when the instantaneous bandwidth exceeds this value. This isapplicable to scenarios where the network connection fluctuates significantly.
Bill-by-bandwidth package: Select this aggregated billing mode when yourpublic network instances have traffic peaks at different times. It is applicable tolarge-scale businesses where traffic can be staggered between different
instances using the public network.
For more information, see Public Network Billing.
Bandwidthvalue
Securitygroup

No

You can set the maximum public network bandwidth of the CVM instance asneeded. For more information, see Public Network Bandwidth Cap.

Yes

Used to configure the network access policies for one or more CVM instances.
Make sure that login port 3389 is open. For more information, see Security
Group.
You can add tags for the CVM instance as needed, which can be used to

Tag

No

Instance
name

No

The name of the CVM to be created.
It is user-defined. We recommend CVM-01.

Yes

Configure the method to log in to the CVM as needed.
Set Password: Customize the password for logging in to the instance.
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.

Securityenhancement

No

By default, security service is enabled for free to help you build a CVM security
system to prevent data leakage.

No

CM is activated by default. It provides comprehensive 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.

No

It is enabled free of charge by default. As the native Ops and deployment tool of
CVM, it can automatically run shell commands in batches and complete various
tasks such as running automated Ops scripts, polling processes,
installing/uninstalling software, updating applications, and installing patches,
without the need to connect to the instance remotely.

No

Configure additional settings for the instance as needed.

Login
Methods

Tencent
Cloud
Observability
Platform

Automation
Assistant

Advancedsettings

categorize, search for, and aggregate cloud resources. For more information, see
Overview.

©2013-2022 Tencent Cloud. All rights reserved.

Page 24 of 26

Cloud Virtual Machine

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 thehostname.
Project: The default project is selected. You can select an existing project asneeded to manage different CVM instances.
CAM Role: You can set a role and use it to grant role entity the permissions toaccess 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 improveyour business availability. For detailed directions, see Placement Group.
Custom Data: You can configure an instance by specifying custom data, and theconfigured 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 Windows
operating system supports the PowerShell format and a maximum of 16 KB of
raw data. For more information, see Configuring Custom Data (Windows CVM).
Note: Custom data configuration applies only to certain Windows public images.
For more information, see Configuring Custom Data (Windows CVM).

2. Click Next: Confirm Configuration to enter the configuration information confirmation page.

Confirming the Configuration
1. Check the configuration items and billing details of the CVM instance to be purchased.
2. Read and indicate your consent to the Tencent Cloud Terms of Service.
3. 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.
4. 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.

Logging in to the Instance©2013-2022 Tencent Cloud. All rights reserved.

Page 25 of 26

Cloud Virtual Machine

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:
Log in to a Windows instance using the standard method (recommended)
Log in to a Linux instance using the RDP file
Log in to a Windows instance using remote desktop

Disk Formatting and Partitioning
If you added a data disk when selecting the instance type, you need to format and partition the data disk after logging
in to the CVM instance. If you have not added any data disks, skip this step.
Select the appropriate operations guide according to the disk capacity and the CVM operating system.
For a disk smaller than 2 TB:
Initializing a Cloud Disk (Windows)
For a disk equal to or larger than 2 TB:
Initializing a Cloud Disk (Windows)
For more operations, see Initialization Scenarios.

©2013-2022 Tencent Cloud. All rights reserved.

Page 26 of 26