After you import the image, you can use the imported image to create an ECS instance. Perform the following steps to create a RHEL instance in the ECS console. You can also call the RunInstances operation to create an instance.
- Log on to the ECS console.
- In the left-side navigation pane, click Instances.
- On the Instances page, click Create Instance.
- Complete the configurations in the Basic Configurations step.
- Set Billing Method.Select Subscription or Pay-As-You-Go. For more information, see Comparison of billing methods.
- Set Region.Select the region where the imported image is located and then select a zone.
- Set Zone.Select a zone to deploy the instance.Note Zones are physical areas within a region that have their own power grids and networks. The network latency for instances within the same zone is low.
- If your application requires high disaster recovery capabilities, we recommend that you deploy your instances in different zones of the same region.
- If your application requires low network latency between instances, we recommend that you deploy your instances in the same zone. For more information about regions and zones, see Alibaba Cloud's Global Infrastructure.
- Set Instance Type.Select an instance type supported by Red Hat. For more information, visit Which Instance Types are RHEL Guest supported with on Aliyun.
- Set Image.Click the Custom Image tab and select the imported image from the drop-down list.
- Set Storage.Specify the category and size of the system disk. The size of the system disk cannot be smaller than that of the image.
- Click Next: Networking.
- Set Billing Method.
- Complete the configurations in the Networking step.
- Set Network Type.Click VPC and select a VPC and a VSwitch. If you did not create a VPC or a VSwitch, use the default one.
- (Optional) Set Public IP Address.If you want to use a public IP address (NatPublicIp), select Assign Public IP Address and set the peak bandwidth. If you want to use an elastic IP address, do not select Assign Public IP Address.
- Set Security Group.If you want to add the instance to a specified security group, click Select Security Group and select the specified security group.
- (Optional) Set Elastic Network Interface.If the selected instance type supports elastic network interfaces (ENIs), you can add an ENI and select a VSwitch to which you want to assign the ENI.
- Click Next: System Configurations.
- Set Network Type.
- (Optional) Complete the configurations in the System Configurations step.
- Logon Credentials: We recommend that you select a key pair as the logon credential because cloud-init
disables password-based logon by default. For more information, see Connect to a Linux instance by using an SSH key pair.Note cloud-init disables password-based logon by default. If you want to enable password-based logon, see Step 6 of the "Optional. Install the native cloud-init" section in Install cloud-init. This step shows you how to modify the configuration before cloud_init_modules in the
- Instance Name: Enter a valid instance name or use the default name.
- Host: Enter a valid hostname.
- Advanced: Make advanced settings such as RAM Role and User Data.
- Click Next: Grouping.
- Logon Credentials: We recommend that you select a key pair as the logon credential because cloud-init disables password-based logon by default. For more information, see Connect to a Linux instance by using an SSH key pair.
- (Optional) Complete the configurations in the Grouping step: You can bind tags to the instance to simplify future management.
- Click Preview. In the Configurations Selected section, confirm all of the configurations. You can change the settings.
- Set Duration or Automatic Release
- If you create a Pay-As-You-Go instance, you can select Automatic Release and specify a time to release the instance.
- If you create a Subscription instance, you can set Duration and the subscription period. You can also select Auto-renewal.
- Confirm the Total configuration fee. The configuration fee is the sum of the costs for the instance type (vCPUs and memory), the system disk, and data disks (if any). If the instance type has local storage, the configuration fee also includes the costs for the local storage. If a public IP address is assigned and Bandwidth Billing is set to Pay-By-Traffic, Internet Traffic Fees is also displayed.
- Read and select ECS Terms of Service.
- Click Create Order or Create Instance.
After the instance is created, you can go to the ECS console to view the instance details, such as the instance name, public IP address, and private IP address. If the instance is in the Running state, the RHEL instance is created on Alibaba Cloud.