Customizing Linux CVM Configurations

Last updated: 2020-06-03 14:59:34

    To create a Tencent Cloud Virtual Machine (CVM), custom configuration provides more image platforms and advanced configurations for storage, bandwidth, and security group. You can select the configuration mode as needed. This topic uses custom configuration as an example.

    Registration and verification

    Before using a CVM, you need to perform the following operations:

    1. Sign up for a Tencent Cloud account and complete identity verification.
      A new user needs to sign up for an account on the official website of Tencent Cloud. For detailed operations, see Signing up for a Tencent Cloud Account.
    2. Visit the Tencent CVM Introduction page, and click Get Started.

    Selecting a device model

    1. Configure the following information as prompted by the page:
      Select Region and Model
      CategoryRequired/OptionalConfiguration Description
      Billing ModeRequired
      • Pay as you go: an elastic billing mode for the CVM.
      RegionRequiredWe recommend you select a region closest to your customer to reduce access latency and increase access speed.
      Availability ZoneRequiredSelect a value as needed.
      If you want to purchase multiple CVMs, we recommend that you select different availability zones to implement disaster recovery.
      NetworkRequiredLogically isolated network space built in Tencent Cloud. A virtual private cloud (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.
      InstanceRequiredTencent Cloud provides different instance types based on the underlying hardware. To optimize performance, we recommend you use instance types of the latest generation.
      For more information on instances, see Instance Types.
      ImageRequiredTencent Cloud provides public images, custom images, and shared images. For more information on images, seeImage Types Overview.
      If you have just started using Tencent Cloud, choose public images.
      System DiskRequiredUsed to install the operating system. By default, its capacity is 50 GB.
      Available Cloud Block Storage (CBS) types vary with regions. Select as instructed by the page.
      For more information on CBS, see CBS Types.
      Data DiskOptionalUsed to scale up the storage capacity of the CVM to to ensure high efficiency and reliability. CBS data disks are not added by default.
      For more information on CBS, see CBS Types.
      Public Network BandwidthRequiredTencent Cloud provides two network billing modes. Set a value as needed.
      • Bill-by-bandwidth: select a fixed bandwidth. Packet loss occurs when the bandwidth exceeds this value. This is applicable to scenarios where network connection fluctuates slightly.
      • 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 loss occurs when the instantaneous bandwidth exceeds this value. This is applicable to scenarios where network connection fluctuates significantly.
      Public GatewayOptionalAs 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.
      Note: Tencent Cloud discontinues configuring public gateway on the CVM purchase page after December 6, 2019. To configure it, see Configuring a Public Gateway.
      QuantityRequiredNumber of CVMs to be purchased.
    2. Click Next: Complete Configuration to open the CVM configuration page.

    Configuring the CVM

    1. Configure the following information as prompted by the page:
      Security Group and CVM
      CategoryRequired/OptionalConfiguration Description
      ProjectRequiredThe default project is selected by default. You can select an existing project as needed to manage different CVMs.
      Security GroupRequired/td>Used to configure the network access policies for one or more CVMs.
      Ensure that login port 22 is open.For more information, see Security Group.
      Instance NameOptionalThe name of the CVM to be created.
      It is defined by the user. We recommend **CVM-01**.
      Login methodYesConfigure the method to log in to the CVM as needed.
      • Custom Password: customize the password for logging in to the instance.
      • SSH Key Pair: associate the instance with an SSH key to ensure secure login 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 Key.
      • Random Password: an automatically generated password will be sent through Message Center.
      Security ReinforcementOptionalBy default, security reinforcement is enabled for free to help you build a CVM security system against data leakage.
      Cloud MonitoringOptionalBy default, cloud monitoring is enabled for free. It provides comprehensive CVM data monitoring, intelligent data analysis, real-time fault alarms, and custom data reports to precisely monitor Tencent Cloud services and the health conditions of CVMs.
      Advanced SettingsOptionalConfigure additional settings for the instance as needed.
      • Hostname: you can customize the name of the computer in the CVM operating system. After a CVM is created, you can log in to the CVM to view the hostname.
      • Placement Group: you can add an instance to a placement group as needed to improve service availability. For more information, see Placement Group.
      • Tag: you can specify a tag to manage CVM resources by categories. For more information, see Tag.
      • Custom Data: you can configure an instance by specifying custom data, and the configured scripts will run 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 a maximum of 16 KB raw data. For details, see Configuring Custom Data.
        Note: custom data configuration only supports certain common images with the Cloudinit service. For more information, see Cloud-Init.
    2. Click Next: Confirm Configuration Information to open the configuration information confirmation page.

    Confirming configuration information

    1. Check the information of the CVM to be purchased and the cost details of each configuration item.
    2. Click Purchase and complete the payment. You can then 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 through Message Center. You can use this information to log in to and manage your instances. To ensure security, change your CVM login password as soon as possible.

    Logging in to and connecting the instance

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

    Partitioning and Formatting the Data Disk

    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 did not add any data disk, skip this step.
    Select the appropriate operations guide according to the disk capacity and the CVM operating system.

    For more operations, see Initialization Scenarios.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help