• Image Management Service

ims
  1. Help Center
  2. Image Management Service
  3. User Guide
  4. Creating a Private Image
  5. Creating a Linux System Disk Image Using an External Image File
  6. Configuring an ECS

Configuring an ECS

Scenarios

After the ECS is created, you must configure it to ensure that ECSs created subsequently are available.

This section describes how to configure the ECS.

NOTE:

For how to enable the NIC multi-queue feature, see the Elastic Cloud Server User Guide.

Procedure

  1. You have logged in to the Linux ECS.

    For detailed operations, see the Elastic Cloud Server User Guide.

  1. Check whether the private IP address of the ECS is consistent with that is displayed on the management console. The methods of checking this vary depending on the OSs. Take CentOS 6 as an example and run the following command to check the private IP address of the ECS:

    ifconfig

    If the IP address is incorrect, check and delete network udev rules on the Linux ECS. For details, see (Optional) Deleting Network Rule Files.

  2. Verify that DHCP has been configured for the NICs of the ECS. If the Linux ECS is using a static IP address, configure the ECS by following the instructions provided in Configuring the Linux ECS.
  3. Run the following command to check the SSH service status:

    service sshd status

    Run the following command to enable the SSH service for remote access:

    service sshd start

    Ensure that your ECS firewall, for example, Linux iptables, allows access to SSH.

  4. Check whether Cloud-Init has been installed and configured.
    • If yes, go to 6.
    • If no, install and configure Cloud-Init.
  5. Perform the following steps to check and delete automatic attaching information about data disks in the /etc/fstab configuration file to prevent adverse impacts on future data disk attaching operations:
    • Run the following command to edit the fstab file:

      vi /etc/fstab

    • Delete the configuration information about relevant data disks from the fstab file.
      The /etc/fstab file contains configuration information about all disks automatically attached to the ECS when the ECS starts. Such configuration information needs to be deleted. For example, the last row shown in Figure 1 is the data disk configuration information which needs to be deleted from the fstab file.
      Figure 1 Data disk configuration contained in the fstab file
NOTE:
  • To use an image to create a memory-optimized second-generation (M2) ECS, ensure that the VirtIO driver is installed.
  • To use an image to create a high-performance generation II (H2) ECS, ensure that the VirtIO and InfiniBand drivers are installed. Download the appropriate version of the InfiniBand NIC driver based on the InfiniBand type from the Mellanox official website and install the driver by following the instructions provided by Mellanox.

    InfiniBand NIC type: Mellanox Technologies ConnectX-4 Infiniband HBA (MCX455A-ECAT)

    Mellanox official website: http://www.mellanox.com/