Operation system mirror image generation method of energy management equipment and program product

By generating and integrating automation profiles and adding energy management functional components, the problems of server heterogeneity management and high operation and maintenance costs in cross-regional projects are solved, efficient automation deployment and compatibility are achieved, and operation and maintenance costs are reduced.

CN118897682APending Publication Date: 2024-11-05HAIER ENERGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410931066.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-05-27
Filing Date
2024-07-11
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Enterprises face server heterogeneity management problems, system configuration complexity and high operation and maintenance costs in cross-regional projects, resulting in inefficient deployment and high cost.

Method used

By generating a collection of automated configuration files of different boot methods and integrating them into the target operating system, energy management functional components, including application software packages and support software, automated installation and configuration can be achieved, reducing human resources costs, and improving deployment efficiency.

Benefits of technology

It realizes efficient automation of server management, reduces operation and maintenance costs, improves market response speed and service quality, ensures compatibility between energy management application software packages and operating systems, and simplifies the deployment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897682A_ABST
    Figure CN118897682A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of software, and particularly provides an operating system mirror image generation method of energy management equipment and a program product. The operating system mirror image generation method of the energy management equipment comprises the following steps: preparing a mirror image environment of a target operating system; generating an automatic configuration file set of different guide modes to ensure that the target operating system can be automatically installed; the automatic configuration file is integrated into the target operating system, so that the automatic configuration file can be correctly read and executed when the target operating system is started; a functional component used for achieving energy management is added, the functional component comprises an energy management application software package and supporting software thereof, and the supporting software comprises middleware and / or a database; and executing a packaging operation to form an installation mirror image of the target operating system. According to the scheme, the installation efficiency is improved, and the compatibility of the energy management application software package and the operating system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of software technology, and specifically provides an operating system image generation method and a program product of an energy management device. Background Art

[0002] With the rapid development of information technology, the business scale of many enterprises has been rapidly expanded, driving the demand for high-performance computing infrastructure. Especially in cross-regional project deployment, enterprises generally need to configure dedicated servers at each customer's site to run their core management software and ensure the private operation of customer projects. However, in this process, enterprises face a series of challenges caused by the heterogeneity of servers, the complexity of system configuration and high operation and maintenance costs.

[0003] First, the diversity of server equipment has become a major management problem. There are not only servers purchased and provided by enterprises, but also servers provided by customers themselves, which leads to a high degree of differentiation in server hardware specifications, operating system versions, and pre-installed software. As a result, the server management team must have extensive Linux system expertise and practical skills to properly handle compatibility and dependency issues under different configurations and maintain stable system operation.

[0004] Secondly, manually performing Linux system optimization, basic service software configuration, and deployment of enterprise-developed software for each server constitutes a time-consuming and complex process. At the basic system level, optimizing operations and service configuration involves a lot of details, and any minor configuration errors may lead to poor system performance or service interruptions. Furthermore, the installation of enterprise-developed software often requires customized configuration and meticulous debugging to ensure its seamless integration with the system environment and third-party services, which undoubtedly greatly increases the difficulty and time investment of deployment work.

[0005] Finally, considering that servers are spread all over the country and the demand for deployment continues to rise, while professional technical personnel resources are relatively scarce, this contradiction between insufficient manpower and wide geographical distribution directly pushes up the labor and time costs of operation and maintenance. Dispatching technicians for on-site installation is not only time-consuming and inefficient, but also requires additional expenses such as travel expenses, which seriously restricts the company's operational efficiency and cost control capabilities.

[0006] Therefore, the current server deployment process has problems such as difficulty in managing device heterogeneity, high complexity of system and software configuration, and high costs of manpower and material resources. There is an urgent need for a set of innovative technical solutions to achieve efficient automation of server management, reduce operation and maintenance costs, and improve the company's market response speed and service quality. Summary of the invention

[0007] An object of the present invention is to solve at least one of the above technical problems.

[0008] To achieve the above object, the present invention provides, in a first aspect, a method for generating an operating system image of an energy management device, comprising:

[0009] Prepare the image environment of the target operating system;

[0010] Generate a set of automated configuration files for different boot modes to ensure that the target operating system can be automatically installed;

[0011] Integrate the automation configuration file into the target operating system so that the automation configuration file can be correctly read and executed when the target operating system is started;

[0012] Adding functional components for implementing energy management, the functional components including: an energy management application software package and its supporting software, the supporting software including middleware and / or a database;

[0013] Perform packaging and packaging operations to form an installation image of the target operating system.

[0014] Optionally, preparing the image environment of the target operating system includes:

[0015] Obtaining an image of a base operating system corresponding to the target operating system and recording it as a base image;

[0016] Minimize the installation of the base image using a virtual machine;

[0017] The base image is mounted to the virtual system.

[0018] Optionally, obtaining an image of a base operating system corresponding to the target operating system and recording it as a base image includes:

[0019] Obtaining an image of a base operating system that matches the target operating system;

[0020] Verifying the integrity and consistency of the acquired image of the basic operating system;

[0021] If the verification passes, the image of the basic operating system is recorded as the basic image.

[0022] Optionally, the preparing the image environment of the target operating system further includes:

[0023] Configuring a target software source to obtain a target software package group through the target software source;

[0024] Enable local caching of packages installed by the target package manager;

[0025] Install the image creation tool.

[0026] Optionally, after configuring the target software source, the method for generating an operating system image of the energy management device further includes:

[0027] Obtaining the target software package group;

[0028] Modify the configuration file of the target software package group to customize the software grouping.

[0029] Optionally, after the step of generating a set of automatic configuration files for different boot modes, the method for generating an operating system image of the energy management device further includes:

[0030] Set up automatic disk partition configuration for each of the boot modes.

[0031] Optionally, the method for generating an operating system image of the energy management device further comprises: detecting the installation image to ensure the integrity and reliability of the installation image.

[0032] In a second aspect, the present invention provides a computer program product, comprising computer instructions, which, when executed by a processor, can implement the method for generating an operating system image of an energy management device described in any one of the first aspects.

[0033] In a third aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, can implement the method for generating an operating system image of an energy management device described in any one of the first aspects.

[0034] In a fourth aspect, the present invention provides a computer device, comprising a processor and a memory, wherein the memory stores computer instructions, and when the processor executes the computer instructions, the method for generating an operating system image of the energy management device described in any one of the first aspects can be implemented.

[0035] Based on the foregoing description, those skilled in the art can understand that, in the aforementioned technical solution of the present invention, after preparing the image environment of the target operating system, by generating a set of automatic configuration files for different boot modes and integrating the automatic configuration files into the target operating system, the installation image of the target operating system can be automatically installed through the automatic configuration files when it is installed, thereby saving the human resource costs of professional and technical personnel. The operating system image generated by the method of the present invention pre-adds functional components for implementing energy management, integrates the energy management application software package and its supporting software, automatically completes the installation and configuration of necessary application software, improves installation efficiency, ensures the compatibility of the energy management application software package with the operating system, and improves the configuration efficiency of energy management equipment.

[0036] Furthermore, by adding target software components, the target software components developed by the enterprise itself can be seamlessly integrated with the target operating system and can run on the target operating system, which greatly reduces the difficulty and time investment of the enterprise's deployment work.

[0037] Furthermore, by detecting the installation image, the integrity and reliability of the installation image are ensured.

[0038] Other beneficial effects of the present invention will be described in detail below in conjunction with the accompanying drawings so that those skilled in the art can more clearly understand the improved purposes, features and advantages of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solution of the present invention, some embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood by those skilled in the art that the same reference numerals indicate the same or similar components or parts in different drawings; the drawings of the present invention are not necessarily drawn to scale.

[0040] In the attached figure:

[0041] Figure 1 This is a flowchart of the main steps of the method for generating an operating system image of an energy management device in the first embodiment of the present invention;

[0042] Figure 2 yes Figure 1 A flowchart of the steps for preparing the image environment of the target operating system;

[0043] Figure 3 yes Figure 2 Flowchart of the steps to determine the base image in ;

[0044] Figure 4 is a flowchart of the main steps of the method for generating an operating system image of an energy management device in the second embodiment;

[0045] Figure 5 is a schematic block diagram of a computer program product in a third embodiment of the present invention;

[0046] Figure 6 is a schematic block diagram of a computer-readable storage medium in a fourth embodiment of the present invention;

[0047] Figure 7 is a schematic block diagram of a computer device in a fifth embodiment of the present invention. DETAILED DESCRIPTION

[0048] It should be understood by those skilled in the art that the embodiments described below are only some embodiments of the present invention, rather than all embodiments of the present invention, and these embodiments are intended to explain the technical principles of the present invention, rather than to limit the protection scope of the present invention. Based on the embodiments provided by the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should still fall within the protection scope of the present invention.

[0049] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or equipment (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or equipment and execute instructions), or used in combination with these instruction execution systems, devices or equipment.

[0050] like Figure 1 As shown, in a first embodiment of the present invention, a method for generating an operating system image of an energy management device of an operating system image includes:

[0051] Step S110, preparing the mirror environment of the target operating system;

[0052] Step S120, generating a set of automatic configuration files for different boot modes to ensure that the target operating system can be automatically installed;

[0053] Step S130, integrating the automation configuration file into the target operating system, so that the automation configuration file can be correctly read and executed when the target operating system is started;

[0054] Step S140, adding functional components for implementing energy management, the functional components including: an energy management application software package and its supporting software, the supporting software including middleware and / or database.

[0055] Step S150, performing packaging and packaging operations to form an installation image of the target operating system.

[0056] It will be understood by those skilled in the art that, after preparing the image environment of the target operating system, by generating a set of automated configuration files for different boot modes and integrating the automated configuration files into the target operating system, the installation image of the target operating system can be automatically installed through the automated configuration files when being installed, thereby saving the human resource costs of professional and technical personnel.

[0057] The operating system image generated by applying the method has pre-added functional components for implementing energy management, integrated the energy management application software package and its supporting software, automatically completed the installation and configuration of necessary application software, improved installation efficiency, ensured the compatibility of the energy management application software package, and improved the configuration efficiency of energy management equipment.

[0058] like Figure 2 As shown, step S100 further includes:

[0059] Step S111, obtaining an image of a basic operating system corresponding to the target operating system, and recording it as a basic image.

[0060] The base image may be an image of CentOS 7. The CentOS 7 (Community ENTerprise Operating System) is an open source operating system based on Linux, which is mainly aimed at the enterprise and server markets.

[0061] Alternatively, in other embodiments of the present invention, the base image is set to be an image of any other feasible base operating system.

[0062] Step S111 may further include:

[0063] Step S111a, obtaining an image of a basic operating system that matches the target operating system;

[0064] Step S111b, verifying the integrity and consistency of the acquired image of the basic operating system;

[0065] Step S111c: if the verification is successful, the image of the basic operating system is recorded as the basic image.

[0066] Those skilled in the art will appreciate that steps S111a to S111c not only improve the efficiency and quality of system deployment by ensuring the accuracy and security of the image of the basic operating system, but also provide a solid foundation for subsequent operation and maintenance management, resource optimization and technology iteration, and are key technical measures for achieving an efficient, secure and scalable IT environment.

[0067] Specifically, the basic image can be obtained through the Internet.

[0068] Step S112: Use the virtual machine to minimize the installation of the basic image.

[0069] The virtual machine may be VMware Workstation, Virtual Box or any other feasible virtual software.

[0070] Step S113, mounting the basic image to the virtual system.

[0071] Specifically, a specific directory structure may be created in the Linux system, and the base image mounting and copying operations may be performed.

[0072] Those skilled in the art will appreciate that step S130 is intended to prepare a working environment for image customization or backup.

[0073] Specifically, step S130 may first create a necessary directory structure, then mount a CD image, and finally copy the content of the image to another directory to serve as a basis for subsequent customization or backup.

[0074] Step S114, configuring the target software source to obtain the target software package group through the target software source.

[0075] The target software source can be a cloud software source, such as a software park that provides cloud services by a third party, to download software packages faster, which can significantly improve download speed and reduce network problems. The target software source can use cloud software sources such as Alibaba Cloud Software, Tsinghua Cloud Software Source, and NetEase Cloud Software Source.

[0076] Exemplarily, the operating instructions of the software warehouse are configured on CentOS7, thereby adding the software sources of the base (CentOS7-Base), EPEL, and Docker.

[0077] Step S115, opening the local cache of the target software package manager to install the software package.

[0078] The target package manager may be Yum, DNF, or any other feasible package manager.

[0079] Yum is the abbreviation of Yellowdog Updater, Modified, and is a command-line package manager widely used on RPM (Red Hat Package Manager) systems. It is mainly used to automatically handle the installation, update, uninstallation, and query of software packages in Linux distributions (such as Red Hat Enterprise Linux, CentOS, Fedora, etc.). Yum searches and retrieves software packages and their dependencies by accessing repository metadata, and automatically resolves these dependencies, making the software management process simpler and more efficient.

[0080] Among them, DNF (Dandified Yum) aims to solve some limitations of Yum, such as performance issues and complex dependency processing. DNF maintains compatibility with the Yum command line interface so that users familiar with Yum can easily transition to DNF. However, DNF has been refactored at the bottom level, using a more modern librepo library to process software repository metadata, and libsolv to resolve software package dependencies, which makes DNF more efficient and reliable when dealing with complex dependency issues.

[0081] Exemplarily, modify the configuration of Yum in CentOS7 to change the storage location of the package cache and set the cached packages to be retained after installation.

[0082] Step S116, installing a tool for making an image.

[0083] The tool can be any feasible tool, such as ISO Workshop, UltraISO, Rufus, Etcher, BuildKit, AnyToISO, etc.

[0084] like Figure 4 As shown, step S300 further includes:

[0085] In a second embodiment of the present invention, a method for generating an operating system image of an energy management device of an operating system image includes:

[0086] Step S201, obtain the image of the basic operating system corresponding to the target operating system, and record it as the basic image. Please refer to step S111 for details.

[0087] Step S202: Use the virtual machine to minimize the installation of the basic image. Please refer to step S112 for details.

[0088] Step S203, mount the basic image to the virtual system. Please refer to step S113 for details.

[0089] Step S204, configure the target software source. Please refer to step S114 for details.

[0090] Step S205: Open the local cache of the target software package manager to install the software package. Please refer to step S115 for details.

[0091] Step S206: Install the image creation tool. Please refer to step S116 for details.

[0092] Step S207, obtaining the target software package group.

[0093] In this embodiment, the target software package group may be an RPM (Red Hat Package Manager) package, a Snap package, a Flatpak package, or the like.

[0094] Among them, RPM (Red Hat Package Manager) is a software package management format widely used in Linux operating systems.

[0095] Snap is a cross-Linux distribution package format developed by Canonical for use in systems such as Ubuntu. The Snap package contains all the dependencies required for the application to run, ensuring the consistency and isolation of the application.

[0096] Among them, Flatpak is another cross-platform package management solution designed to achieve sandboxing and distribution of applications. It allows users to install and run applications on any Linux distribution that supports Flatpak.

[0097] Furthermore, step S207 includes: installing basic software, for example, installing the latest GNOME desktop for CentOS7, obtaining the latest Google Chrome browser, and copying all cached RPM packages into the image file.

[0098] Among them, GNOME is an open source graphical desktop environment, mainly designed for Unix-like systems (such as Linux) distributions. It aims to provide users with a friendly, easy-to-use and efficient computer operation interface.

[0099] Step S208, modifying the configuration file of the target software package group to customize the software grouping.

[0100] Exemplarily, modify comps.xml to introduce the RPM package you want to install.

[0101] The comps.xml file is usually related to package group management and software repositories. It is a file used by package managers such as Yum (YellowdogUpdater Modified) or DNF (Dandified Yum) to define the structure of package groups. These package groups can contain multiple packages, making it easier for users to install software in batches based on function or purpose.

[0102] Among them, repodata is a special directory in the software repository of RPM-based Linux distributions (such as Red Hat Enterprise Linux, CentOS, Fedora, etc.), which contains metadata information about all software packages in the repository.

[0103] Those skilled in the art will appreciate that, after completing step S320, when the user searches or installs a package group through the package manager, the newly added or modified RPM package will be correctly reflected, thereby achieving the purpose of customized software distribution.

[0104] Step S209: adding a functional component for implementing energy management so that the energy management application software package can be run on the target operating system.

[0105] Among them, the functional components include energy management application software packages and their supporting software, and the supporting software includes middleware and / or databases. The energy management application software packages may include any one or more of the following application software: distributed energy management software, photovoltaic power generation control software, energy storage control software, etc. The energy management application software packages can be configured according to the functions of the energy management equipment.

[0106] In some embodiments, when adding a functional component for implementing energy management, a configuration script may be pre-set for the functional component, and the configuration script is used to detect the installation environment when installing the operating system image, and set the installation parameters of the energy management application software package and its supporting software according to the detection results. For example, when installing database software, the configuration script may configure data partitions, cache sizes, network interfaces, etc. according to the hardware information of the installed device.

[0107] An optional embodiment of adding functional components for implementing energy management is: collecting functional requirements of the installed equipment, obtaining the corresponding energy management application software package based on the functional requirements, and generating a configuration script for the energy management application software package, and adding the energy management application software package and the configuration script to the target operating system.

[0108] Step S210: Generate a set of automation configuration files for different boot modes.

[0109] The automation configuration file set may be a Kickstart file.

[0110] Among them, the Kickstart file is a configuration file that automates the Linux system installation process. The Kickstart file follows the Kickstart protocol and allows system administrators to predefine installation settings, thereby achieving unattended installation. This means that no manual intervention is required during the installation process, which is very useful for mass deployment or standardized settings. Once the Kickstart file is provided, the installation program will automatically install the system according to the configuration in the file.

[0111] Furthermore, the boot mode includes a legacy boot mode and a UEFI boot mode.

[0112] Legacy boot mode, also known as legacy boot or BIOS boot, is a more traditional method of booting a computer system. Legacy boot mode relies on the Basic Input Output System (BIOS) firmware to initialize hardware components and boot the operating system.

[0113] UEFI (Unified Extensible Firmware Interface) boot mode is an advanced boot standard in modern personal computer systems, designed to replace the traditional Legacy BIOS boot mode. UEFI boot mode has become the mainstream choice for current computer system booting due to its efficiency, security and flexibility, especially on new hardware platforms. However, in order to maintain backward compatibility, most modern motherboards still provide the option of switching to Legacy BIOS boot mode.

[0114] Those skilled in the art will appreciate that this step enables the packaged computer program product 100 (eg Figure 5 As shown in the figure, it supports automatic installation of both Legacy and UEFI boot modes, thus supporting screenless, screened, external monitor, and touch-screen servers, and can adapt to the automatic installation of most servers on the market.

[0115] Furthermore, automatic disk partition settings are performed for both Legacy and UEFI boot modes to implement intelligent disk space management functions, so that when the computer program product 100 of the present invention is installed on a server, disk partitioning can be performed adaptively to fully utilize hardware resources while avoiding installation failures due to disk space issues.

[0116] Step S211, setting automatic disk partition configuration for each boot mode.

[0117] It is understood by those skilled in the art that by setting automatic disk partition configuration for each boot mode, the disk space management function can be intelligently implemented, which not only fully utilizes hardware resources, but also avoids installation failures caused by disk space problems, thereby enhancing the reliability and stability of the system.

[0118] Step S212: Integrate the automation configuration file into the target operating system to guide the user to install it.

[0119] Step S213, performing encapsulation and packaging operations to form an installation image of the target operating system.

[0120] Step S214: Check the installation image to ensure the integrity and reliability of the installation image. Specifically, the following contents may be included:

[0121] Basic functional test:

[0122] Deploy in a virtual environment: Use virtual machine software such as VMware Workstation, VirtualBox, etc. to install and start the installation image in an isolated environment. Check whether basic functions are working properly, such as network connection, file system operation, hardware identification, etc.

[0123] Compatibility Test:

[0124] Multi-platform testing: Try to deploy on virtual machines with different hardware configurations (CPU architecture, memory size, storage type) to ensure that the installation image can run normally in multiple environments.

[0125] Driver compatibility: Tests whether common peripherals (such as keyboard, mouse, monitor, network adapter) can be correctly identified and used normally.

[0126] Stability test:

[0127] Stress testing: Run system stability testing tools such as Prime95 (for CPU), memtest86+ (memory), etc. for a long time to check the stability of the system under high load.

[0128] Long-term operation: Let the system run for a period of time (for example, 72 hours) to observe whether there are crashes, error logs, or other abnormal phenomena.

[0129] Security Scan:

[0130] Use anti-virus software: Scan the image file to confirm that it does not contain malware or viruses.

[0131] Audit source code (if applicable): For systems built on open source components, review the code to ensure that no security vulnerabilities or backdoors have been introduced.

[0132] Performance Benchmarks:

[0133] Use benchmarking tools (such as Geekbench, PCMark, etc.) to evaluate system performance and compare it with known stable system versions.

[0134] Software compatibility:

[0135] Application testing: Install and run a set of commonly used software, including enterprise-developed software, browsers, etc., to verify whether they can be installed and run normally.

[0136] Network function test:

[0137] Network connection: Test the stability of network connection, including LAN, Internet access, DNS resolution, etc.

[0138] Update and Patch Management:

[0139] Update Mechanism: If the system includes an update capability, test whether it can successfully check for, download, and install updates.

[0140] User Interface and User Experience:

[0141] Interaction testing: Ensure that user interface elements (such as menus, settings, notifications) are responsive and behave as expected.

[0142] After completing the above tests, if the installation image passes all tests without obvious problems, it can be considered to have a certain degree of reliability.

[0143] Based on the foregoing description, those skilled in the art can understand that the present invention has at least the following technical effects:

[0144] Automated installation and configuration optimization: By generating and integrating a collection of automated configuration files for different boot modes (such as Kickstart files), unattended automatic installation of the target operating system is achieved, significantly reducing dependence on professional technicians, improving the efficiency of large-scale deployment, and reducing human resource costs.

[0145] Flexible boot mode support: Supports both Legacy BIOS and UEFI boot modes, enhancing the compatibility of the operating system and being able to adapt to a variety of server hardware from traditional to modern. Whether it is a screenless, screened, externally-connected monitor, or touch-screen server, it can be automatically installed, expanding the application scope of the technical solution.

[0146] Intelligent Disk Management: Automated disk partition settings are performed for Legacy and UEFI boot respectively, realizing intelligent disk space management, ensuring that disk space can be adaptively allocated during the installation process, avoiding problems caused by insufficient space, maximizing the use of hardware resources, and improving the success rate of installation and the stable operation of the system.

[0147] Software source optimization: By configuring efficient software sources (such as Alibaba Cloud, Tsinghua Cloud, etc.), the software package download speed is significantly improved, network delays and interruption risks are reduced, and the installation experience and efficiency are optimized.

[0148] Local cache and package management optimization: Enable the local cache function of the package manager and install the necessary image creation tools. Combined with advanced package managers such as Yum or DNF, it not only improves the speed and reliability of software installation, but also simplifies the processing of package dependencies, making system maintenance and upgrades more efficient.

[0149] Customized software distribution: By modifying the software package group configuration file (such as comps.xml) and adding specific target software components (such as enterprise self-developed software, database, middleware, etc.), deep customization of the operating system image is achieved, meeting the personalized needs of specific scenarios or enterprises, and promoting the flexibility of software distribution and management.

[0150] Enhanced user experience and compatibility: Minimized installation, configuration and optimization on basic images such as CentOS7, combined with support for the GNOME desktop environment and modern software package formats (such as RPM, Snap, Flatpak), not only improves the friendliness of the user interface, but also ensures the compatibility and ease of use of cross-platform software, suitable for a variety of application scenarios.

[0151] At the same time, you can also encapsulate any file into the image and automatically put it into the newly installed system when installing the program.

[0152] Furthermore, since the backend service starts much slower than the frontend, in order to avoid the situation where the frontend page is ready but the customer cannot use it, you can also set Chrome delayed self-start for the front-end and back-end separated businesses for servers with screens to optimize the user experience.

[0153] Furthermore, although not shown in the figure, the target operating system described in any of the foregoing embodiments of the present invention is applicable to a server.

[0154] It should be noted that the above Figures 1 to 4 The order of describing the steps in the order shown in the figure does not mean that the steps in each embodiment of the present invention must be described in the order shown in the figure. Figures 1 to 4 The steps in the above embodiments are executed in the order described in the above embodiments. Those skilled in the art may also make appropriate modifications to the execution order, operating conditions and quantity of the steps in the above embodiments according to actual needs. The modified embodiments do not deviate from the technical concept and / or technical principle of the present invention and should still fall within the scope of protection of the present invention.

[0155] like Figure 5 As shown, the present invention provides a computer program product 100 in the third embodiment, including a computer executable program 110. When the computer executable program 110 is executed by the processor 310, the operating system image generation method of the energy management device described in the first embodiment can be implemented.

[0156] like Figure 6 As shown, the present invention provides a computer-readable storage medium 200 in a fourth embodiment, on which a computer executable program 110 is stored. When the computer executable program 110 is executed by the processor 310, the operating system image generation method of the energy management device described in the first embodiment can be implemented.

[0157] It should be noted that the essence of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0158] like Figure 7 As shown, the present invention provides a computer device 300 in the fifth embodiment, including a processor 310 and a memory 320, wherein a computer executable program 110 is stored in the memory 320, and when the processor 310 executes the computer executable program 110, the operating system image generation method of the energy management device described in the first embodiment can be implemented.

[0159] The memory 320 may include a memory and a non-volatile memory 320 (non-volatile memory), and provide execution instructions and data to the processor 310. Exemplarily, the memory may be a high-speed random access memory (Random-Access Memory, RAM), and the non-volatile memory may be at least one disk storage.

[0160] The processor 310 is an integrated circuit chip that has the ability to process signals. The processor 310 can be general, such as a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, microprocessors and any other conventional processors.

[0161] Finally, it should be noted that in the present invention, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0162] In the present invention, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0163] So far, the technical solution of the present invention has been described in combination with the above multiple embodiments, but it is easy for those skilled in the art to understand that the protection scope of the present invention is not limited to these specific embodiments. Without departing from the technical principles of the present invention, those skilled in the art can split and combine the technical solutions in the above embodiments, and can also make equivalent changes or replacements to the relevant technical features. Any changes, equivalent replacements, improvements, etc. made within the technical concept and / or technical principles of the present invention will fall within the protection scope of the present invention.

Claims

1. A method for generating an operating system image of an energy management device, include: Prepare the image environment of the target operating system; Generate a set of automated configuration files for different boot modes to ensure that the target operating system can be automatically installed; Integrate the automation configuration file into the target operating system so that the automation configuration file can be correctly read and executed when the target operating system is started; Adding functional components for implementing energy management, the functional components including: an energy management application software package and its supporting software, the supporting software including middleware and / or a database; Perform packaging and packaging operations to form an installation image of the target operating system.

2. The method for generating an operating system image of an energy management device according to claim 1, in, The step of preparing the image environment of the target operating system includes: Obtaining an image of a base operating system corresponding to the target operating system and recording it as a base image; Minimize the installation of the base image using a virtual machine; The base image is mounted to the virtual system.

3. The method for generating an operating system image of an energy management device according to claim 2, in, The step of obtaining an image of a base operating system corresponding to the target operating system and recording the image as a base image includes: Obtaining an image of a base operating system that matches the target operating system; Verifying the integrity and consistency of the acquired image of the basic operating system; If the verification passes, the image of the basic operating system is recorded as the basic image.

4. The method for generating an operating system image of an energy management device according to claim 2, in, The step of preparing the image environment of the target operating system further includes: Configuring a target software source to obtain a target software package group through the target software source; Enable local caching of packages installed by the target package manager; Install the image creation tool.

5. The method for generating an operating system image of an energy management device according to claim 4, in, After configuring the target software source, the generating method further includes: Obtaining the target software package group; Modify the configuration file of the target software package group to customize the software grouping.

6. The method for generating an operating system image of an energy management device according to claim 1, in, After the step of generating a set of automatic configuration files for different boot modes, the generation method further includes: setting automatic disk partition configuration for each boot mode to ensure optimal storage resource allocation and data protection under different hardware configurations.

7. The method for generating an operating system image of an energy management device according to any one of claims 1 to 6, further comprising: include: The installation image is tested to ensure the integrity and reliability of the installation image.

8. A computer program product, comprising computer instructions, which, when executed by a processor, can implement the method for generating an operating system image of an energy management device according to any one of claims 1 to 7.

9. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, can implement the method for generating an operating system image of an energy management device according to any one of claims 1 to 7.

10. A computer device, comprising a processor and a memory, wherein the memory stores computer instructions, and when the processor executes the computer instructions, the method for generating an operating system image of an energy management device according to any one of claims 1 to 7 can be implemented.