Creating an Instance

Last updated: 2019-11-12 11:10:36

Scenario

This topic guides you through how to create a Tencent Cloud Virtual Machine (CVM) instance. The custom configuration mode is used as an example.

Prerequisites

Before creating a CVM instance, you need to complete the following steps:

Steps

  1. Log in to Tencent Cloud. Choose Products > Compute > Cloud Virtual Machine. Click Contact Sales to open the CVM purchase page.

    • Quick Configuration: This mode is applicable to general scenarios. It helps users quickly purchase a CVM instance that meets general requirements.
    • Custom Configuration: This mode is applicable to specific scenarios. It allows users to purchase a CVM instance that meets their specific requirements.
  2. Configure the following information as prompted by the page:

    ConfigurationRequiredDescription
    Billing modeYesSelect 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.
    For more information about billing modes, see Billing Modes.
    Region/Availability zoneYes
    • 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.
    For more information about options for regions and availability zones, see Regions and Availability Zones.
    NetworkYesLogically 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.
    InstanceYesTencent 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.
    ImageYesTencent Cloud provides public images, custom images, shared images, and marketplaces. For more information about images, see Image Types.
    System diskYesUsed 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 diskNoUsed 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 bandwidthYesA 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.
    Note: The allocated free independent public IP address cannot be unbound from the instance. To unbind this IP address, convert the public IP address to an elastic public IP address, and then unbind the elastic public IP address. For more information about the elastic public IP address, see Elastic Public IP Address.
    Public gatewayYesApplicable 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.
    QuantityYesThe number of CVMs to be purchased.
    DurationYesApplicable only to CVMs with monthly subscription.
    It indicates the usage duration of a CVM.
  3. Click Next: Security Group and CVM to open the Security Group and CVM page.

  4. Configure the following information as prompted by the page:

    ConfigurationRequiredDescription
    ProjectYesThe default project is selected by default. You can select an existing project as required to manage different CVMs.
    Security groupYes
    • If no security group is available, you can choose **Create Security Group**.
    • If there are available security groups, you can choose **Existing Security Group**.
    For more information about the security groups, see Security Groups.
    Instance NameNoCustomized by users to indicate the name of the CVM to be created.
    Note: This name is displayed only in the console, but not the hostname of the CVM.
    Login MethodYesThe 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 ReinforcementNoBy default, DDoS protection and host security are enabled for free to help users build a CVM security protection system against data leakage.
    Cloud MonitoringNoBy 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 DateNoApplicable 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-renewalNoApplicable 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 SettingsNoSpecifies 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.
  5. Click Next: Confirm to open the configuration information confirmation page.

  6. Check the information of the CVM to be purchased and the costs details of each configuration item.

  7. Select Agree with the Refund Rule. (This option is applicable only to CVMs with monthly subscription.)

  8. 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.