Step 1: Create a BMS
Scenarios
You can create a BMS on the management console by performing the steps in this section. This section describes how to create a BMS quickly to deploy a web application server. Not all parameters are included. For details about the parameters required for creating a BMS, see Creating a BMS. To create a BMS by calling an API, see Creating a BMS.
Procedure
- Log in to the Cloud Server Console https://console.huaweicloud.com/ecm/?locale=en-us.
- In the navigation pane, choose Bare Metal Server.
- In the upper right corner, click Buy BMS.
- Configure required parameters.
- Specify Region and AZ. For example, select CN North-Beijing1 for Region and retain the default value of AZ.
After the BMS is created successfully, you cannot change its region or AZ.
- Set Flavor.
Available flavors vary depending on the region and AZ you select. Web servers are mainly used for web page access and do not require strong computing capabilities. In addition, only a small amount of storage is required for recording logs. Based on this, select physical.d1.large.
- Set Image.
In this example, select Public image and CentOS 7.4 64bit for BareMetal.
After the BMS is created successfully, you cannot change its OS. Therefore, select a proper image here.
- Specify Disk.
Whether EVS disks can be attached to a BMS is determined by the flavor and image you select. In this example, EVS disks cannot be attached to the BMS.
- Set VPC and NIC.
When you use cloud services for the first time, the system automatically creates a VPC (default-vpc) and a subnet default-subnet for you. Retain the default values.
The system creates a security group for you by default. The default security group rule is to allow all outgoing data packets and restrict incoming data packets. The BMS is protected by the default security group, and the default security group rule only ensures basic communication.
- Set EIP.
BMSs without an EIP cannot communicate with the Internet and are only used for deploying services in a private network or used in a cluster. In this example, select Automatically Assign and set Bandwidth.
- Set Login Mode.
In this example, select Password and set the password of user root.
- Configure Advanced Settings.
In this example, select Do not configure.
- Set BMS Name.
The BMS name is in the format bms-four random digits. To distinguish BMSs, you can add the function of a BMS to its name, for example, bms-7676-nginx.
- Set Required Duration.
The value ranges from 1 month to 1 year. In this example, set the value to 1 month.
- Set Quantity.
In this example, set the value to 1.
- Specify Region and AZ. For example, select CN North-Beijing1 for Region and retain the default value of AZ.
- Click Buy Now. Confirm the specifications, read Huawei Image Disclaimer, select I have read and agree to the Huawei Image Disclaimer, and click Pay Now.
- Select a payment method and click Pay.
Result
After about 5 to 30 minutes, the BMS creation progress is complete. Refresh the BMS list. After the BMS status changes from Creating to Running, the BMS is created successfully.
Follow-up Operations
A BMS functioning as a web server must allow ICMP traffic on ports 80 and 443. These rules are not configured for the default security group. You need to add the rules after the BMS is created. For details, see Adding Security Group Rules.
|
Protocol |
Direction |
Port Range |
Source |
|---|---|---|---|
|
TCP |
Inbound |
80 |
0.0.0.0/0 |
|
TCP |
Inbound |
443 |
0.0.0.0/0 |
|
ICMP |
Inbound |
All |
0.0.0.0/0 |
Last Article: Making Preparations
Next Article: Step 2: Log In to the BMS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.