Configuring the ECS and Creating a Linux System Disk Image

Scenarios

After installing an OS for the temporary ECS, configure the ECS and install native Xen and KVM drivers to ensure that ECSs created subsequently are available.

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

Procedure

  1. Configure the ECS.

    For details, see Step 4: "Configure the ECS" in What Do I Do If the Initial Configurations of a Linux External Image File Are Not Completed Before the File Is Exported?

    1. Configuring 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 in the network rule directory as instructed in Deleting Files in the Network Rule Directory.
      • Check whether the 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 the PV driver.

      Disable your antivirus and intrusion detection software. You can enable the software after Xen and KVM drivers are installed.

      After the drivers are installed, you need to clear log files and historical records. For details, see Clearing System Logs.

    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 additional fees.