Updated on 2024-07-12 GMT+08:00

Configuring the ECS and Creating a Linux System Disk Image

Scenarios

After installing an OS for the temporary ECS, configure the ECS and install Xen and KVM drivers to ensure that ECSs created from this temporary ECS can work properly.

This section describes how to configure a Linux ECS, install drivers, and create a Linux system disk image.

Procedure

  1. Configure the ECS.

    1. Configure the network.
      • Run the ifconfig command to check whether the private IP address of the ECS is the same as that displayed on the console. If they are inconsistent, delete files from the network rule directory as instructed in Deleting Files from the Network Rule Directory.
      • Check whether NICs are set to DHCP. If the ECS is configured with a static IP address, change its IP address assignment mode to DHCP as instructed in Setting the NIC to DHCP.
      • Run the service sshd status command to check whether SSH is enabled. If it is disabled, run the service sshd start command to enable it. Ensure that your ECS firewall, for example, Linux iptables, allows access to SSH.
    2. Install drivers.

      To ensure that the network performance and basic functions of the ECSs created from the private image are normal, install native Xen and KVM drivers on the ECS used to create the image. Before installing native Xen and KVM drivers, uninstall PV drivers.

      Disable your antivirus and intrusion detection software. You can enable them after the installation of Xen and KVM drivers.

    3. Configure a file system.
    4. (Optional) Configure value-added functions.

  2. Create a Linux system disk image.

    For details, see Creating a System Disk Image from a Linux ECS.

Follow-up Procedure

After the system disk image is created, delete the temporary ECS in a timely manner to avoid generating any additional charges.