Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the ECS Mirror Specification Detection tool to shorten the cycle of image creation and instance creation

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to use the ECS image specification detection tool to shorten the cycle of image production and instance creation. I hope you will learn a lot after reading this article. Let's discuss it together.

Mirror specification detection tool

ECS supports creating instances using custom images. The custom image can be created by a CVM based on offline server, virtual machine or other cloud platform. The image you imported needs to meet certain image requirements. For more information, please see Import Image must read. To shorten the period of image creation and instance creation, we recommend that you use the ECS image specification detection tool, which is referred to as the detection tool, to create images that meet the specifications. Based on the server environment, the detection tool can detect various configuration indicators, locate the causes of non-compliance, generate TXT and JSON format inspection reports and give solutions.

Use restriction

Currently, detection tools only support detection of Linux-type images, including Ubuntu, CentOS, Debian, RedHat, SLES (SUSE Linux Enterprise Server), OpenSUSE, FreeBSD, CoreOS and Others Linux distributions.

Use the example

Take the CentOS 7.4 64-bit server as an example.

Log in to a CVM on your server, virtual machine or other cloud platform.

Download the detection tool.

Run image_check with root permissions to prevent the detection tool from being unable to read the configuration file with permission control.

Chmod + x image_checksudo image_check-p [destination path]

Description

You can use-p [destination path] to specify the path where the test report is generated. If you do not specify it, the default output is in the path where the detection tool is located.

Wait for the detection tool to detect the system configuration.

Begin check your system... The report is generating. -- The information you need to input when you import your image to Alibaba Cloud website: Current system: CentOS # system Information 1: server operating system Architecture: x86 GB 64 # system Information 2: system Architecture System disk size: 42 system Information 3: Server system disk capacity-- # Test item Check driver [OK] Check shadow file authority [OK] Check security [OK] Check qemu-ga [ OK] Check network [OK] Check ssh [OK] Check firewall [OK] Check filesystem [OK] Check device id [OK] Check root account [OK] Check password [OK ] Check partition table [OK] Check lvm [FAILED] Check lib [OK] Check disk size [OK] Check disk use rate [WARNING] Check inode use rate [OK]- -15 items are OK 1 items are failed 1 items are warning-- The report is generated: / root/image_check_report_2018-05-14 May 18-18-10.txt Please read the report to check the details

View the test report in the appropriate location. The report format is image_check_report_ date _ time .txt or image_check_report.json.

Detection item

To avoid incomplete ECS instances created using your custom image, the detection tool mainly detects the following configuration items in the server.

The test tool will give the test results of OK, FAILED or WARNING based on the test items.

OK: all the test items meet the requirements.

FAILED: the test item does not meet the requirements, and the ECS instance created with this custom image cannot be started normally. It is recommended that you fix the error items before creating an image to improve the startup efficiency of the instance.

WARNING: the detection item does not meet the requirements. The ECS instance created with this custom image can be started safely, but ECS cannot interfere with your instance configuration in an effective way. You can choose to fix it immediately, or you can ignore the problem for the time being and go to create a mirror.

Output term

After testing the system environment, the inspection report is output in both TXT and JSON formats. The output path can be specified using-p [destination path]. If not specified, the default output is in the path where the detection tool is located.

The TXT format report, named image_check_report_ date _ time .txt, includes server configuration information and test results. Take the CentOS 7.4 64-bit server as an example:

The information you need to input when you import your image to Alibaba Cloud Website: Current system is: CentOS # server operating system Architecture: x86 server 64 # system architecture System disk size: 42 GB # server system disk capacity-Check driver # Test item name Pass: kvm drive is exist # Test result Alibaba Cloud supports kvm virtualization technology We strongly recommend installing kvm driver.

The JSON format report, named image_check_report.json, includes server configuration information and test results. Take the CentOS 7.4 64-bit server as an example:

"platform": "CentOS",\\ server operating system "os_big_version": "7",\\ operating system version number (high) "os_small_version": "4",\\ operating system version number (low) "architecture": "x86x64",\\ system architecture "system_disk_size": "42" \\ Server system disk capacity "version": "1.0.2",\\ Test tool version "time": "2018-05-14019-18-10",\\ Test time "check_items": [{"name": "driver",\\ Test item name "result": "OK",\\ Test result "error_code": "0" \\ error code "description": "Pass: kvm driver exists.",\\ describe "comment": "Alibaba Cloud supports kvm virtualization technology. We strongly recommend installing kvm driver. "}]}

Next step

View considerations for importing images

Install the virtio driver

(optional) convert image format

Import Mirror

Create an instance using a custom image

After reading this article, I believe you have a certain understanding of how to use ECS image specification detection tools to shorten the cycle of image production and instance creation. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report