Creating a BMS

Scenarios

This section describes how to create a BMS on the management console. When creating a BMS, you need to configure basic information such as the specifications, image, storage, network, and security groups for the BMS. You can also configure additional information for personalized deployment and management.

Prerequisites

Step 1: Configure Basic Settings

  1. Log in to the management console.
  2. Under Computing, click Bare Metal Server.

    The BMS console is displayed.

  3. Click Buy BMS. On the displayed page, click Go to New Edition on the right.

    The page for you to purchase a BMS is displayed.

  4. Select a region.

    BMSs in different regions cannot communicate with each other over an intranet. You are advised to select the region closest to your services to lower the network delay and improve the access speed. Note that after a BMS is created, its region cannot be changed.

  5. Select an AZ.

    An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network.

    • It is recommended that you create BMSs in different AZs to ensure high availability of applications running on the BMSs.
    • To lower the network delay, create BMSs in the same AZ.
  6. Select a flavor.

    Flavor contains the flavor name and the CPU, memory, local disks, and extended configuration of the BMS. After you select a flavor, the name and use scenarios of the flavor are displayed under the flavor list.

    Extended Configuration provides the NIC information of the selected flavor. For example, 2 x 2*10GE indicates that a 10GE NIC with two ports connects to the VPC network and a 10GE extended NIC with two ports supports high-speed interconnection between BMSs.

    • Configuration in the flavor, such as the CPU, memory, and local disks, cannot be changed.
    • The bandwidth of different BMS flavors varies. Choose a flavor that meets your requirements.
    • Some flavors support quick BMS provisioning. If you select a flavor of this type, parameter System Disk is displayed under Disk. The OS of this type of BMS is installed on an EVS disk.
  7. Set Image.
    • Public Image

      A public image is a common standard OS image that is available to all users. It contains an OS and pre-installed public applications, such as the SDI iNIC driver, bms-network-config (a network configuration program), and Cloud-Init (an initialization tool). You can configure the applications and software in a public image as needed.

    • Private Image

      A private image is an image available only to the user who created it using an external image file or a BMS. It contains an OS, preinstalled public applications, and the user's private applications. Using a private image to create BMSs frees you from configuring BMSs repeatedly.

    • Shared Image

      A shared image is a private image shared by another user.

    After the BMS is created successfully, you cannot change its OS. Therefore, select a proper image here.

  8. Set Disk.

    Disks are classified as EVS disks, DSS disks, and DESS disks based on whether the disks use dedicated storage resources. DSS and DESS disks provide dedicated storage resources.

    • If you have obtained a DSS storage pool, click the DSS tab and create disks in the obtained storage pool.
    • If you have enabled DESS, click the DESS tab and create disks.
    • If you have not obtained a dedicated storage pool, click the EVS tab and create EVS disks that use public storage resources.
    • When you use DSS resources to create a disk, the disk type must be the same as that of the obtained storage pool. For example, both are of the high I/O type.
    • For details about different disk types, see Disk Types.

    A BMS has one system disk and one or more data disks. You can add multiple data disks for a BMS and customize the system disk size.

    • System disk

      If you select a flavor that supports quick provisioning, parameter System Disk is available. You can set the system disk type and size as needed.

    • Data disk

      You can add multiple data disks for a BMS and enable sharing for each data disk.

      • Currently, BMSs only support SCSI disks.
      • Share: indicates that the EVS disk can be shared. A shared disk can be attached to multiple BMSs simultaneously.
    • After a system disk is detached from a BMS charged in yearly/monthly mode, the disk can only be used as a system disk and can only be attached to this BMS.
    • If you detach a non-shared data disk purchased when you buy a BMS charged in yearly/monthly mode and want to attach it again, you can only attach it to the original BMS as a data disk.
    • The non-shared data disk purchased when you buy a BMS charged in yearly/monthly mode does not support separate renewal, unsubscription, automatic service renewal, conversion to pay-per-use payment, or release.
  9. Click Next: Configure Network.

Step 2: Configure Network

When you use VPC for the first time, the system automatically creates a VPC for you, including the security group and NIC. The default subnet segment is 192.168.1.0/24 and the subnet gateway is 192.168.1.1. Dynamic Host Configuration Protocol (DHCP) is enabled for the subnet.

If you are not using VPC for the first time, perform the following operations to configure the network:

  1. Configure the BMS network. That is, configure the primary and extension NICs.

    Select a VPC and then a subnet in the VPC, and set a private IP address for the primary NIC by selecting Automatically-assigned IP address or Manually-specified IP address.

    You can add extension NICs for the BMS as needed. Click next to Extension NIC. Then, select a subnet and set a private IP address for the NIC.

    • The primary NIC cannot be deleted because it is used to provide the default route.
    • If you choose to assign an IP address automatically, do not change the private IP address of the BMS after the BMS is provisioned. Otherwise, the IP address may conflict with that of another BMS.
  2. (Optional) Configure high-speed NICs.

    High-speed NICs provide high-speed network ports for communication between BMSs. They provide high bandwidth.

    You cannot configure the same high-speed network for multiple high-speed NICs of a BMS.

    In some regions, high-speed networks have been upgraded to enhanced high-speed networks with higher performance. You need to configure enhanced high-speed NICs.

  3. Configure enhanced high-speed NICs.

    A BMS has a maximum of two enhanced high-speed NICs and depends on the total bandwidth of the extension NICs. For example, if the total bandwidth allowed for the extension NICs is 2 x 10GE and the bandwidth of the first enhanced high-speed NIC is 2 x 10GE, you cannot add another enhanced high-speed NIC.

    You can view the total bandwidth of extension NICs in the Extended Configuration column in Flavor.

    • If a flavor's Extended Configuration contains 2*10GE (for example, the Extended Configuration of flavor physical.h2.large is 1*100G IB + 2*10GE), BMSs of this flavor has only one NIC without extension NIC, and the total bandwidth of extension NICs is 0.
    • If a flavor's Extended Configuration contains 2 x 2*10GE (for example, the Extended Configuration of flavor physical.s3.large is 2 x 2*10GE), BMSs of this flavor has two NICs, of which one is an extension NIC, and the total bandwidth of extension NICs is 2*10GE.
  4. Configure a security group.

    Similar to firewall, a security group is a logical group used to control network access. You can define different access control rules for a security group, and these rules take effect for all BMSs added to this security group.

    When creating a BMS, you can select only one security group. After a BMS is created, you can associate it with multiple security groups. For details, see Changing a Security Group.

    Security group rules determine BMS access and usage. For instructions about how to configure a security group rule, see Adding Security Group Rules. Enable the following common protocols and ports as needed:

    • Port 80: used to view web pages by default through HTTP.
    • Port 443: used to view web pages through HTTPS.
    • ICMP: pings BMSs to check their communication statuses.
    • Port 22: reserved for logging in to a Linux BMS using SSH.
    • Port 3389: reserved for logging in to a Windows BMS using SSH.

    Before initializing a BMS, ensure that security group rules in the outbound direction meet the following requirements:

    • Protocol: TCP
    • Port Range: 80
    • Remote End: 169.254.0.0/16

    If you use the default outbound security group rule, the preceding requirements are met, and the BMS can be initialized.

  5. Set EIP.

    An EIP is a static public IP address bound to a BMS in a VPC. Using the EIP, the BMS provides services externally.

    You can select one of the following three options for EIP as needed:

    • Automatically assign: The system automatically assigns an EIP with a dedicated bandwidth to the BMS. The bandwidth is configurable.
    • Use existing: An existing EIP is assigned to the BMS.
    • Not required: The BMS cannot communicate with the Internet and can only be used to deploy services or clusters in a private network.

    If you select Use existing, you can create only one BMS at a time.

  6. (Optional) Set Specifications, Bandwidth Type, Billed By, and Bandwidth for the EIP.

    These parameters are available only when you set EIP to Automatically assign in 5.

    Table 1 Parameter description

    Parameter

    Description

    Specifications

    • Dynamic BGP: When changes occur on a network using dynamic BGP, network configurations can be promptly adjusted using the specified routing protocol, ensuring network stability and optimal user experience.
    • Static BGP: When changes occur on a network using static BGP, carriers cannot adjust network configurations in real time to ensure optimal user experience.

    Bandwidth Type

    • Dedicated: The bandwidth can be used by only one EIP.
    • Shared: The bandwidth can be used by multiple EIPs.
      NOTE:
      • A bandwidth can be shared between a limited number of EIPs. If the number of EIPs cannot meet service requirements, switch to a higher shared bandwidth or apply to expand the EIP quota of the existing bandwidth.
      • EIPs that are charged yearly/monthly do not support shared bandwidths.
      • When a shared bandwidth that is charged yearly/monthly expires, the system automatically deletes the bandwidth and creates an exclusive bandwidth charged by traffic for the EIPs sharing the deleted bandwidth.

    Billed By

    • Bandwidth: You specify a maximum bandwidth and pay for the time you use the bandwidth. This is suitable for heavy or stable traffic.
    • Traffic: You are charged based on the actual traffic you have used. This is suitable for light or sharply traffic.

    Bandwidth

    Specifies the bandwidth size in Mbit/s.

  7. Click Next: Configure Advanced Settings.

Step 3: Configure Advanced Settings

  1. Set BMS Name.

    The name can be customized but can contain only letters, digits, underscores (_), hyphens (-), and periods (.).

    If you create multiple BMSs at a time, suffixes will be added to the BMSs in sequence. For example, if you enter bms, the BMS names will be bms-0001, bms-0002, ... If you create multiple BMSs again, the values in the new BMS names increase from the existing maximum value. For example, the existing BMS with the maximum number in name is bms-0010. If you enter bms, the names of the new BMSs will be bms-0011, bms-0012, .... When the value reaches 9999, it will start from 0001 again.

  2. Set Login Mode.

    Key pair is recommended because it features higher security than Password. If you select Password, ensure that the password meets complexity requirements described in Table 2 to prevent malicious attacks.

    • Key pair

      A key pair is used for BMS login authentication. You can select an existing key pair, or click Create Key Pair to create one.

      If you use an existing key pair, ensure that you have saved the key file locally. Otherwise, you will fail to log in to the BMS.

    • Password

      In this mode, the initial password is used for authentication. You can log in to the BMS using the username and its initial password.

      If the BMS runs Linux, you can use username root and its initial password to log in to the BMS. If the BMS runs Windows, you can use username Administrator and its initial password to log in to the BMS. The passwords must meet the requirements described in Table 2.

      Table 2 Password requirements

      Parameter

      Requirements

      Example Value

      Password

      • Consists of 8 characters to 26 characters.
      • Must contain at least three of the following character types:
        • Uppercase letters
        • Lowercase letters
        • Digits
        • Special characters !@$%^-_=+[]{}:,./?
      • Cannot contain the username or the username spelled backwards.
      • Cannot contain more than two characters in the same sequence as they appear in the username. (This requirement applies only to Windows BMSs.)

      Test12$@

  3. Select an enterprise project.

    This parameter is available only when you have enabled the enterprise project function, or your account is an enterprise account. To enable this function, contact your customer manager.

    An enterprise project is a cloud resource management mode, in which cloud resources and members are centrally managed by project. The default project is default.

    Select an enterprise project from the drop-down list. For details about enterprise projects, see Enterprise Management User Guide.

  4. (Optional) Enable automatic backup.

    After automatic backup is enabled, the system automatically backs up the BMS based on the preset backup policy.

    The automatic backup function applies only to BMSs that support quick provisioning. To enable this function, you must select a flavor that supports quick provisioning in step 6.

    1. Select Enable auto backup.
    2. Configure Backup Policy.

      In the drop-down list, select a backup policy. Alternatively, you can click Manage Backup Policy and set the backup policy on the Cloud Server Backup Service (CSBS) page. If you have not created any backup policy but have selected Enable auto backup, the system will use the default backup policy.

      Figure 1 Default backup policy

    For details about CSBS, see Cloud Backup and Recovery Overview.

  5. (Optional) Configure Advanced Options.

    To use functions listed in Advanced Options, click Configure now. Otherwise, click Do not configure.

    • User Data Injection enables the BMS to automatically inject user data when the BMS starts for the first time. After this function is enabled, the BMS automatically injects user data upon its first startup.

      This parameter is available only when Key pair is selected for Login Mode. For detailed operations, see Injecting User Data into BMSs.

    • (Optional) Tag

      Tagging BMSs helps you better identify and manage your BMSs. You can add up to nine tags to a BMS.

      For detailed operations on tags, see Adding Tags.

    • Agency

      An agency provides BMSs with temporary security credentials for accessing other cloud services. The agency is created by the tenant administrator on the IAM console.

      If you have created an agency in IAM, you can select the agency from the drop-down list and obtain specified operation permissions. If you have no agency, click Create Agency to create one. Currently, agencies are mainly used for server monitoring.

  6. Click Next: Confirm.

Step 4: Confirm

  1. Check the configurations. If any configuration is incorrect or needs to be modified, click next to Configure Basic Settings, Configure Network, or Configure Advanced Settings to return to the corresponding page for modification.
  2. Set Required Duration.
    Set the service duration if you select the Yearly/Monthly billing mode. The service duration ranges from one month to one year.

    BMSs charged in yearly/monthly mode cannot be deleted. They support only resource unsubscription. If you no longer need a BMS, you can unsubscribe from it using either of the following methods:

    • Locate the row that contains the BMS, click More in the Operation column, and select Unsubscribe from the drop-down list. On the Unsubscribes page, click Unsubscribe.
    • Choose Billing Center > Unsubscriptions and Changes > Unsubscriptions. Locate the row that contains the BMS, click More in the Operation column, and select Unsubscribe from the drop-down list.
  3. Set Quantity.

    You can purchase BMSs of the remaining quota at a time.

    You can purchase only one BMS at a time if you:
    • Manually specify an IP address for a NIC or high-speed NIC.
    • Use an existing EIP.
  4. Select I have read and agree to the Huawei Image Disclaimer and click Buy Now.

    If you have any question about the price, click Pricing details.

  5. On the Order Details page, confirm the BMS information and click Submit Order.
  6. Pay the fees as prompted and click OK.

    The BMS console is displayed.

  7. Wait for the system to create your requested BMSs.

    The BMS status changes to Running after about 30 minutes. If you select a flavor that supports quick provisioning, you can obtain a BMS within about five minutes.

    You can view the BMS creation status. For details, see Viewing BMS Creation Statuses.

Follow-up Operations