Check item | Priority | Description | Impact of incompliance |
Virtio | High | Check whether the virtio driver is installed in the image. ECS instances are VMs that are built based on the Kernel-based Virtual Machine (KVM) architecture, and require that the virtio driver be installed in the image. | An ECS instance startup exception occurs. |
NVMe | High | Check whether the Non-Volatile Memory Express (NVMe) driver is installed in the image. Specific ECS instance types, such as ecs.g7se, use NVMe disks and require that the NVMe driver be installed in the image. NVMe delivers faster response speed and higher bandwidth than traditional driver protocols, such as Small Computer System Interface (SCSI) and virtio-blk. We recommend that you install the NVMe driver in the image to support specific instance types. For more information, see NVMe protocol. | Instance types that use NVMe disks, such as ecs.g7se, cannot be used. |
Fstab | High | Check configurations in the /etc/fstab file. Incorrect configurations in the /etc/fstab file, such as configurations of nonexistent devices and incorrect universally unique identifiers (UUIDs), cause system startup exceptions. | The operating system cannot start as expected. |
GRUB | High | Check the GRand Unified Bootloader (GRUB) configuration file. GRUB is a tool used to load and boot the kernel and is an important configuration item of operating systems. Incorrect configurations lead to system startup exceptions. We recommend that you check the GRUB configuration file in the operating system. For example, check the GRUB configuration file to ensure that device names are not used to specify boot partitions. Example: root=/dev/sda1. Device names may vary based on the environment. We recommend that you use UUIDs instead to specify boot partitions. | An operating system startup exception occurs. |
DHCP | High | Check whether Dynamic Host Configuration Protocol (DHCP) is configured in the network configuration file of the image. We recommend that you configure DHCP for network devices to assign dynamic IP addresses to instances. If a static IP address is configured in the image, network configuration exceptions may occur and the instances that use the image cannot start. We also recommend that you add the net.ifnames parameter as a kernel startup parameter in the GRUB configuration file and set the parameter to 0 to prevent network interfaces from being renamed in the kernel. This way, the network interface controller (NIC) remains named eth0. | A network error occurs. |
SELinux | Medium | Check whether Security-enhanced Linux (SELinux) is disabled in the image. We recommend that you disable SELinux. | An ECS instance startup exception occurs. |
OnlineResizeFS | High | Check whether file systems in the image can be extended online. For example, the size of the virtual disk space in your image is 10 GB, and you create an instance that has a 100-GB system disk from the image and install components, such as cloud-init and growpart, on the instance. The root partition and file systems are automatically extended to the size of the system disk (100 GB) when the instance is initialized. For more information, see Extend the partitions and file systems of disks on a Linux instance. | The root partition of an ECS instance cannot be extended. |
CloudInit | High | Check whether cloud-init is installed in the image. cloud-init initializes system configurations on instance startup and executes user data scripts. The system configurations include the Network Time Protocol (NTP) settings, software repositories, hostnames, and SSH key pairs. | Specific system initialization configurations are missing. |
DiskUsage | High | Check the usage of disk space in the image. You can run the df -h command to check the usage of your disk space and ensure that sufficient disk space is available. | An operating system startup exception occurs. |
InodeUsage | High | Check the index node (inode) usage of disks in the image. You can run the df -i command to check the inode usage of disks. | An operating system startup exception occurs. |
SystemFileAttribute | High | Check whether the attributes of critical configuration files are correct. | An instance startup exception or a feature exception occurs. |
CriticalUser | High | Check whether a critical user, such as root, exists in the operating system. The absence of critical users leads to system startup exceptions and instance feature exceptions. For example, you cannot use the username and password to connect to an instance. | An instance startup exception or a feature exception occurs. |
QemuGuestAgent | Medium | Check whether Quick EMUlator (QEMU) guest agent (qemu-guest-agent) is installed in the operating system. The QEMU guest agent runs on VMs to interact with hosts. If the QEMU guest agent is installed, specific services that are required by ECS are unavailable, and the instance is not full-featured. | An exception occurs on a specific instance feature. |
SshConfig | High | Check whether the sshd configuration file contains errors. In most cases, the sshd configuration file is /etc/ssh/sshd_config. If the sshd configuration file contains errors, the sshd service cannot start and SSH connections to ECS instances that use the image cannot be established. You must check the correctness and validity of the sshd configuration file. You can run the following commands: Run the sudo sshd -T command to view all sshd configuration options. Run the sudo sshd -t command to verify the validity of the sshd configuration file. If the sshd configuration file is valid, no information is returned.
| An SSH connection to an ECS instance that uses the image cannot be established. |
Firewall | Medium | Check whether the firewall service is enabled. We recommend that you disable the firewall service in the operating system and use ECS security groups to manage inbound and outbound traffic of instances. For information about security groups, see Overview. | The system firewall service may cause an instance access failure. |
LibDirectory | High | In Red Hat operating systems, /lib and /lib64 are symbolic links that point to /usr/lib and /usr/lib64. Do not modify these links. Otherwise, system exceptions may occur. | The operating system cannot run as expected. |
SupportMocInstanceTypes | High | Check whether the image supports instance types that are based on the SHENLONG architecture. The latest Alibaba Cloud ECS instance families are based on the SHENLONG architecture, such as ecs.g6 and ecs.g7. If the operating system version and kernel version of the image are too earlier, exceptions may occur when the image is started on a SHENLONG architecture-based ECS instance. For more information, see Overview of instance families. | The SHENLONG architecture-based ECS instance families, such as ecs.g6 and ecs.g7, cannot be used. |
CloudAssistant | Medium | Check whether Cloud Assistant Agent is installed in the image. Cloud Assistant is a native automated O&M tool that is developed for ECS. We recommend that you install Cloud Assistant Agent in the image for efficient O&M of ECS. For more information, see Overview. | Cloud-based O&M efficiency is adversely affected. |
SecurityCenterAgent | Medium | Check whether the Security Center agent is installed in the image. An instance can be protected by Security Center only after the Security Center agent is installed on the instance. | Vulnerabilities in an instance that uses the image cannot be identified, and the instance runs without Security Center protection. |