Mirror image installation method and device, compiling server, medium and product
By automatically processing mirror installation files, the problem of time-consuming and reliant on manual intervention in traditional system deployment methods is solved, and efficient, secure and automated image file installation is achieved, reducing costs and improving deployment reliability and flexibility.
Patent Information
- Application Number
- CN202411915621.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-18
AI Technical Summary
Traditional system deployment methods require manual production of ISO image files, which is time-consuming and error-prone, and requires manual intervention when installing the operating system, limiting the flexibility of the installation process and increasing dependence on on-site support.
By obtaining the initial installation file and file configuration information, the initial installation file is cropped and compiled based on the file configuration information, forming a mirror installation package, and mounting it on the mirror server. Obtain the installation request for the target device, configure the device information of the target device based on the installation request, so that it can obtain the mirror installation package by accessing the mirror server, and perform automatic installation.
It realizes efficient, secure and automated image file installation, reduces labor costs and media costs, simplifies system deployment process, and improves deployment reliability and flexibility.
Smart Images

Figure CN119847546A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a mirror image installation method, device, compilation server, medium and product. Background Art
[0002] In the field of information technology, system deployment and software distribution are key links in ensuring the efficient operation of computer networks.
[0003] In the traditional system deployment method, ISO image files are burned on mobile hard disks or other physical media for on-site installation. This method requires a certain amount of purchase and maintenance costs, and there may be image file security issues caused by hard disk failure or data loss during data transmission. In addition, when installing the operating system, manual intervention is usually required to select the correct startup item and boot the installation program from the network card, which means that a technician must be on-site to monitor during the device restart process. This not only limits the flexibility of the installation process, but also increases the reliance on on-site support. Summary of the invention
[0004] The present invention provides an image installation method, device, compilation server, medium and product, which realize efficient, safe and automatic image file installation, reduce labor cost and medium cost, simplify system deployment process, and improve deployment reliability and flexibility.
[0005] In a first aspect, an embodiment of the present disclosure provides an image installation method, which is applied to a compilation server, wherein the compilation server is connected to an image server and a device cluster respectively, wherein the image server is connected to the device cluster, and wherein the device cluster includes at least one target device, wherein the method includes:
[0006] Acquire an initial installation file and file configuration information, perform trimming and compiling processing on the initial installation file based on the file configuration information to form an image installation package, and mount the image installation package on the image server;
[0007] An installation request for the target device is obtained, and device information of the target device is configured based on the installation request, so that the target device obtains the mirror installation package by accessing the mirror server, and installs the mirror installation package based on the configured device information.
[0008] In a second aspect, an embodiment of the present disclosure provides a mirror installation device, including:
[0009] An installation package generation module, used to obtain an initial installation file and file configuration information, cut and compile the initial installation file based on the file configuration information to form an image installation package, and mount the image installation package on the image server;
[0010] The image installation module is used to obtain an installation request for a target device, configure device information for the target device based on the installation request, so that the target device obtains the image installation package by accessing the image server, and installs the image installation package based on the configured device information.
[0011] In a third aspect, an embodiment of the present disclosure provides a compile server, including:
[0012] at least one processor; and
[0013] a memory communicatively connected to at least one processor; wherein,
[0014] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute an image installation method provided by the first aspect embodiment above.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement an image installation method provided in the embodiment of the first aspect above when executed.
[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the image installation method provided in the embodiment of the first aspect is implemented.
[0017] The embodiment of the present invention provides a mirror installation method, device, compilation server, medium and product, which obtains the initial installation file and file configuration information, cuts and compiles the initial installation file based on the file configuration information to form a mirror installation package, and mounts the mirror installation package on the mirror server; obtains the installation request for the target device, configures the device information of the target device based on the installation request, so that the target device obtains the mirror installation package by accessing the mirror server, and installs the mirror installation package based on the configured device information. The above technical solution realizes efficient, safe and automatic installation of mirror files, reduces labor costs and media costs, simplifies the system deployment process, and improves the reliability and flexibility of deployment.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a flow chart of a mirror image installation method provided in Embodiment 1 of the present invention;
[0021] Figure 2 This is a schematic diagram of system interactions involved in a mirror image installation method provided in Embodiment 1 of the present invention;
[0022] Figure 3 is a flow chart of a mirror image installation method provided by Embodiment 2 of the present invention;
[0023] Figure 4 is a structural schematic diagram of a mirror image installation device provided in Embodiment 3 of the present invention;
[0024] Figure 5 It is a structural diagram of a compilation server provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second" and "target" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] In the field of information technology, system deployment and software distribution are key links to ensure the efficient operation of computer networks. ISO is a pre-configured operating system image used to quickly deploy and manage high-performance computing cluster environments. Traditional system deployment methods usually involve manually making ISO image files, which is not only time-consuming but also prone to errors. Once the ISO image is ready, it also needs to be burned to a removable hard drive or other bootable media for on-site installation. This method requires technicians to be on-site in person, which increases labor costs and time expenses.
[0028] In addition, when installing an operating system using an ISO image, manual intervention is usually required to select the correct boot item and boot the installation program from the network card, which means that a technician must be present to monitor the device during the restart process. This not only limits the flexibility of the installation process, but also increases the reliance on on-site support.
[0029] With the development of technology, network boot technologies such as Preboot Execution Environment (PXE) have emerged, allowing computers to boot and load operating systems or applications through the network. However, even with PXE, it is still necessary to manually select the boot item and start the installation from the network card, which also requires technicians to operate on site and cannot achieve true remote deployment and management.
[0030] Therefore, the existing system deployment methods have the following shortcomings: manually making ISO images is time-consuming and error-prone; ISO image installation requires physical media and on-site supervision; the installation process lacks flexibility and cannot be remotely intervened; although PXE and other methods provide network booting, they still rely on manual selection of startup items. Therefore, the present invention provides a method for realizing remote unattended automatic installation of image files.
[0031] Embodiment 1
[0032] Figure 1 This is a flowchart of an image installation method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of unattended automatic update of computing clusters. The method can be executed by an image installation device, which can be implemented in the form of hardware and / or software.
[0033] Figure 2 is a schematic diagram of system interactions involved in a mirror image installation method provided in the first embodiment of the present invention, such as Figure 2As shown, the image installation system includes a compilation server, an image server and a device cluster. The compilation server is connected to the image server and is used to mount the image installation package on the image server. The compilation server is also connected to each computing device in the device cluster and is used to implement remote control of each computing device. Among the computing devices in the computing cluster, the computing device on which the image file is to be installed is the target device; the image server is also connected to each computing device in the device cluster and is used for each computing device to obtain the mounted image installation package when an image installation requirement is generated.
[0034] like Figure 1 As shown, the method includes:
[0035] S101, obtaining an initial installation file and file configuration information, cutting and compiling the initial installation file based on the file configuration information to form an image installation package, and mounting the image installation package on an image server.
[0036] In this embodiment, the initial installation file can be understood as the initial ISO image file, which is a file with complete field configurations. The file configuration information can be understood as information such as the cropping content and cropping method required for the initial installation file. The image installation package can be understood as the installation package file that is ultimately transmitted to the target device and implements the image installation on the target device. The target device can be understood as a computing device designated for image installation in a computing cluster, and there can be multiple target devices at the same time to achieve batch installation of the computing cluster. The image server can be understood as a server used to mount the image installation package for the target device to obtain.
[0037] Specifically, the initial ISO image file and the file configuration information for the file are obtained, the initial installation file is trimmed according to the file configuration information to obtain the trimmed installation file, the default device boot file and Internet Protocol Address (IP) settings in the system are modified based on the trimmed installation file, and other script files are merged into the library, such as the device boot code for starting the target device, etc. The trimmed installation file, the modified device boot file and IP setting information, and other script files are integrated and compiled to form an image installation package. The image installation package is transmitted to the image server so that it is mounted on the image server for acquisition by the target device connected to the image server.
[0038] S102: Obtain an installation request for a target device, and configure device information for the target device based on the installation request, so that the target device obtains a mirror installation package by accessing a mirror server, and installs the mirror installation package based on the configured device information.
[0039] In this embodiment, the compiling server is also connected to the client to obtain various request information uploaded by the client. The installation request can be understood as the request information obtained from the client to specify a target device for mirror installation based on certain device parameters. The device information can be understood as parameter attribute information of the target device, etc., including but not limited to the startup sequence of each startup item in the Basic Input / Output System (BIOS) on the target device. The Basic Input / Output System BIOS is a set of programs solidified on a memory chip on the computer motherboard, which is responsible for providing the lowest level of hardware control and settings.
[0040] Specifically, the installation request configured by the client for the target device is obtained, and in response to the installation request, a corresponding instruction is generated, and the instruction is transmitted to the basic input and output system BIOS through a specific interface protocol to modify or configure the device information in the BIOS based on the instruction content. After the target device modifies the device information according to the instruction content, it restarts, and after restarting, it obtains the mounted image installation package from the image server based on a specific service, and based on the device boot file in the image installation package and the modified device information of the target device, executes the installation of the system configuration file in the image installation package, thereby realizing unattended batch automatic image installation.
[0041] An image installation method provided by an embodiment of the present invention includes obtaining an initial installation file and file configuration information, cutting and compiling the initial installation file based on the file configuration information to form an image installation package, and mounting the image installation package on an image server; obtaining an installation request for a target device, configuring device information for the target device based on the installation request, so that the target device obtains the image installation package by accessing the image server, and installs the image installation package based on the configured device information. The above technical solution realizes efficient, safe and automated image file installation, reduces labor costs and media costs, simplifies the system deployment process, and improves the reliability and flexibility of deployment.
[0042] Embodiment 2
[0043] Figure 3 It is a flowchart of an image installation method provided in the second embodiment of the present invention. This embodiment is a further optimization of any of the above embodiments and can be applied to the situation of unattended automatic update of computing clusters. The method can be executed by an image installation device, which can be implemented in the form of hardware and / or software.
[0044] like Figure 3 As shown, the method includes:
[0045] S201, obtaining an initial installation file and file configuration information, and cutting the initial installation file based on the file configuration information to form a system configuration file.
[0046] In this embodiment, the system configuration file can be understood as a file containing a series of parameters and instructions set to ensure that the computer system and related software can run normally.
[0047] Specifically, the initial installation file and file configuration information are obtained. The initial installation file usually contains all components and resources required for software or system installation. These files may include executable files, library files, configuration files, help documents, etc. The file configuration information is customized configuration information, including the cropping method and cropping content for the initial installation file. The initial installation file is cropped based on the file configuration information, and unnecessary components or resources are removed from the initial installation file, or some components are customized to form a cropped system configuration file.
[0048] Tailoring the initial installation files can improve the flexibility and usability of its application, reduce unnecessary memory resource usage, and improve operating efficiency. The tailored system configuration files meet the specific operating environment.
[0049] Optionally, the initial installation file is trimmed based on the file configuration information to form a system configuration file, including:
[0050] S2011. Modify the target configuration items in the initial installation file based on the file configuration information to form a system configuration file, where the target configuration items at least include boot items.
[0051] In this embodiment, the target configuration item can be understood as the component to be modified in the initial installation file determined based on the file configuration information, including at least the boot item, and may also include drivers, etc., or include other content based on actual needs, which is not limited in this embodiment. The boot item is usually related to the system startup process, and determines which device or program the system starts to boot from, that is, the startup location.
[0052] Specifically, before making the modification, it is necessary to obtain the initial installation file and related file configuration information. The initial installation file usually contains the basic components and default configuration of the software or system, parse the file configuration information, and determine the target configuration items to be modified and their specific values. Then, based on the parsing results of the file configuration information, modify the target configuration items such as the boot items in the initial installation file to form a new and more flexible system configuration file.
[0053] S202: modify the initial boot file and the initial network protocol address according to the system configuration file, and obtain the target boot file and the target network protocol address accordingly.
[0054] In this embodiment, the initial boot file can be understood as the system default initial device boot file, and the target boot file can be understood as the modified device boot file. The device boot file is a Kickstart configuration file, which is a key component in the computer startup process. It is responsible for guiding the operating system to load and is searched and loaded by the basic input and output system BIOS to start the operating system. The initial network protocol address can be understood as the IP address corresponding to the initial default or the last image installation. The target network protocol address can be understood as the IP address corresponding to the target device to be installed in this image installation, that is, the IP address of the target device.
[0055] Specifically, the system configuration file (the initial installation file is also a system configuration file) includes a directory of device boot files, and the initial installation file corresponds to the initial boot file. Since the initial installation file is cut down, the system configuration file is formed. Therefore, based on the modified content from the initial installation file to the system configuration file, the initial boot file is adjusted accordingly to form a target boot file corresponding to the cut system configuration file, or a corresponding device boot file is directly generated based on the new system configuration file, that is, the target boot file. The system configuration file contains an indication of the target device to be installed, thereby modifying the original initial network protocol address to the target network protocol address corresponding to the target device to be installed.
[0056] S203, integrating and compiling the code on the library to form a mirror installation package, wherein the code on the library at least includes a system configuration file and a target boot file.
[0057] In this embodiment, the library code can be understood as the code that can be provided in the current ISO customization process, at least including the pre-written ISO customization-related code that the code library can provide and the real-time custom-written code. The specific implementation of the library code at least includes a system configuration file and a target boot file, as well as a device startup code for the target device, etc., and may also include other custom code scripts related to specific functional requirements.
[0058] Specifically, all existing code scripts in the ISO customization process are integrated and compiled to form a complete image installation package.
[0059] S204: Mount the image installation package on the image server.
[0060] In this embodiment, the image installation package is transmitted to the image server through the communication connection relationship between the compilation server and the image server, so that the image server mounts the image installation package, eliminating the process of manually copying the ISO image installation package.
[0061] S205: Configure the services required for the mirror server to connect to the target device.
[0062] In this embodiment, after mounting the mirror installation package to the mirror server, in order to realize the automatic unattended batch installation of the target device, the communication service between the target device and the mirror server needs to be pre-configured, and the services to be configured include at least the Trivial File Transfer Protocol (TFTP) service, the Dynamic Host Configuration Protocol (DHCP) service and the Network File System (NFS) service. The TFTP service is used to realize the file transfer between the mirror server and the target device, the DHCP service is used to realize the automatic configuration of the network parameters, and the NFS service is used to realize the shared file system.
[0063] S206: Obtain an installation request for the target device, and generate a device information configuration command based on the installation request, where the device information configuration command includes at least a serial port mapping command and a startup item sequence modification command.
[0064] In this embodiment, the device information configuration command can be understood as a command for configuring the device information, corresponding to the installation request. The device information configuration command includes at least a serial port mapping command and a startup item order modification command. Among them, the serial port mapping command can be understood as a command for mapping the serial port on the mainboard (Central Processing Unit, CPU) board of the target device to the baseboard management controller (Baseboard Management Controller, BMC), wherein the BMC is a dedicated microcontroller independent of the server operating system and the main processor, built into the mainboard of the server, network equipment and other complex electronic systems, mainly responsible for monitoring and managing the status of the system hardware, and providing remote management and control functions. The startup item order modification command can be understood as a command for modifying the startup order of each startup item in the device information of the target device through the window command line of the basic input and output system BIOS.
[0065] Specifically, an installation request for the target device is obtained, the installation request including a serial port mapping request and a startup item order modification request. A serial port mapping command is formed based on the serial port mapping request, and a startup item order modification command is formed based on the startup item order modification request.
[0066] S207. Configure the target device's device information based on the device information configuration command, so that the target device restarts, accesses the image server after restarting, obtains the image installation package mounted on the image server, and installs the image installation package according to the configured device information.
[0067] Specifically, based on the serial port mapping command in the device information configuration command, the CPU motherboard serial port of the target device is mapped to the BMC on the baseboard management controller; based on the startup item order modification command in the device information configuration command, the startup order of each startup item in the basic input and output system on the target device is modified. At this time, the configuration of the device information on the target device is completed through the compilation server, and the operating system will be started based on this configuration information when the target device restarts. After completing the configuration of the device information, start the device restart script to restart the target device and start it in PXE form. After the target device restarts, access the image server through the configured service, obtain the image installation package mounted on the image server, and complete the image installation according to the device information. Realize the unattended installation function.
[0068] Optionally, device information is configured for the target device based on the device information configuration command, including:
[0069] S2071. Map the mainboard serial port of the target device to the baseboard management controller based on the serial port mapping command in the device information configuration command.
[0070] Specifically, the motherboard serial port on the target device that needs to be mapped to the BMC is identified. Based on the serial port mapping command in the device information configuration command, or based on a specific management tool, the motherboard serial port of the target device that needs to be mapped is mapped to the baseboard management controller BMC to achieve remote monitoring and control of the target device.
[0071] S2072: based on the startup item sequence modification command in the device information configuration command, modify the startup sequence of each startup item in the basic input and output system of the target device.
[0072] Specifically, the BMC and BIOS communicate by setting an interface protocol, such as the Intelligent Platform Management Interface (IPMI). The BMC sends the boot item order modification command in the device information configuration command to the BIOS through the IPMI protocol to modify the boot order of each boot item in the BBIOS. By adjusting the BIOS settings and updating the BIOS functions through the serial port, it is no longer necessary to enter the BIOS interface through the monitor of the local access target device and manually change the BIOS boot items.
[0073] An image installation method provided by an embodiment of the present invention includes obtaining an initial installation file and file configuration information, cutting and processing the initial installation file based on the file configuration information to form a system configuration file; modifying an initial boot file and an initial network protocol address according to the system configuration file, and correspondingly obtaining a target boot file and a target network protocol address; integrating and compiling a library code to form an image installation package, wherein the library code at least includes a system configuration file and a target boot file; mounting the image installation package on an image server; configuring services required for the image server to connect to a target device; obtaining an installation request for the target device, and generating a device information configuration command based on the installation request; the device information configuration command at least includes a serial port mapping command and a startup item sequence modification command; configuring device information of the target device based on the device information configuration command so that the target device restarts, and accessing the image server after restarting, obtaining the image installation package mounted on the image server, and installing the image installation package according to the configured device information. In the above technical solution, ISO image files do not need to be manually burned to physical media, and unattended automatic batch installation and deployment can be achieved. The target device can be flexibly selected for image installation and device information can be configured. There is no need for local supervision or logging in to the BMC interface to change the device startup items. Adjustments can be made by sending commands remotely, which is more flexible.
[0074] Embodiment 3
[0075] Figure 4 Schematic diagram of the structure of a mirror image installation device provided by the third embodiment of the present invention. Figure 4 As shown, the device comprises:
[0076] An installation package generation module 31 is used to obtain an initial installation file and file configuration information, cut and compile the initial installation file based on the file configuration information to form an image installation package, and mount the image installation package on the image server;
[0077] The image installation module 32 is used to obtain an installation request for a target device, configure device information for the target device based on the installation request, so that the target device obtains the image installation package by accessing the image server, and installs the image installation package based on the configured device information.
[0078] The image installation device adopted by this technical solution realizes efficient, safe and automatic image file installation, reduces labor costs and media costs, simplifies the system deployment process, and improves the reliability and flexibility of deployment.
[0079] Optionally, the installation package generation module 31 includes:
[0080] A configuration file cutting unit, used for obtaining an initial installation file and file configuration information, and cutting the initial installation file based on the file configuration information to form a system configuration file;
[0081] A boot file modification unit, used to modify an initial boot file and an initial network protocol address according to the system configuration file, and obtain a target boot file and a target network protocol address accordingly;
[0082] An installation package generating unit, used for integrating and compiling the code on the library to form a mirror installation package, wherein the code on the library at least includes the system configuration file and the target boot file;
[0083] The installation package mounting unit is used to mount the image installation package on the image server.
[0084] Optional, configuration file clipping unit, specifically used for:
[0085] The target configuration items in the initial installation file are modified based on the file configuration information to form a system configuration file, wherein the target configuration items at least include boot items.
[0086] Optionally, the device further includes: a service configuration module, configured to:
[0087] After the mirror installation package is mounted on the mirror server, services required for the mirror server to connect with the target device are configured.
[0088] Optionally, the image installation module 32 includes:
[0089] A configuration command generating unit, configured to obtain an installation request for the target device, and generate a device information configuration command based on the installation request, wherein the device information configuration command includes at least a serial port mapping command and a startup item sequence modification command;
[0090] The image installation unit is used to configure the device information of the target device based on the device information configuration command so that the target device restarts, and accesses the image server after restarting to obtain the image installation package mounted on the image server, and installs the image installation package according to the configured device information.
[0091] Optional, mirror mounted unit, specifically for:
[0092] Based on the serial port mapping command in the device information configuration command, mapping the mainboard serial port of the target device to the baseboard management controller;
[0093] Based on the startup item sequence modification command in the device information configuration command, the startup sequence of each startup item in the basic input and output system of the target device is modified.
[0094] The image installation device provided in the embodiment of the present invention can execute the image installation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0095] Embodiment 4
[0096] Figure 5 : is a schematic diagram of the structure of a compilation server provided in Embodiment 4 of the present invention. The compilation server is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The compilation server may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0097] like Figure 5 As shown, the compile server 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the compile server 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0098] A number of components in the compilation server 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the compilation server 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0099] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the image installation method.
[0100] In some embodiments, the image installation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the compilation server 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the image installation method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the image installation method in any other appropriate manner (e.g., by means of firmware).
[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on a compilation server having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the compilation server. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A mirror image installation method, characterized in that: Applied to a compiling server, the compiling server is connected to a mirror server and a device cluster respectively, the mirror server is connected to the device cluster, the device cluster includes at least one target device, the method includes: Acquire an initial installation file and file configuration information, perform trimming and compiling processing on the initial installation file based on the file configuration information to form an image installation package, and mount the image installation package on the image server; An installation request for the target device is obtained, and device information of the target device is configured based on the installation request, so that the target device obtains the mirror installation package by accessing the mirror server, and installs the mirror installation package based on the configured device information.
2. The method according to claim 1, characterized in that: The obtaining of the initial installation file and the file configuration information, cutting and compiling the initial installation file based on the file configuration information to form an image installation package, and mounting the image installation package on the image server includes: Acquire an initial installation file and file configuration information, and perform tailoring processing on the initial installation file based on the file configuration information to form a system configuration file; Modify the initial boot file and the initial network protocol address according to the system configuration file, and obtain the target boot file and the target network protocol address accordingly; Integrate and compile the code on the library to form a mirror installation package, wherein the code on the library at least includes the system configuration file and the target boot file; The mirror installation package is mounted on the mirror server.
3. The method according to claim 2, characterized in that The tailoring of the initial installation file based on the file configuration information to form a system configuration file includes: The target configuration items in the initial installation file are modified based on the file configuration information to form a system configuration file, wherein the target configuration items at least include boot items.
4. The method according to claim 1, characterized in that: After mounting the mirror installation package on the mirror server, the method further includes: Configure the services required for the mirror server to connect to the target device.
5. The method according to claim 1, characterized in that The obtaining of the installation request for the target device, configuring the device information of the target device based on the installation request so that the target device obtains the image installation package by accessing the image server, and installing the image installation package based on the configured device information, includes: Obtaining an installation request for the target device, and generating a device information configuration command based on the installation request, wherein the device information configuration command includes at least a serial port mapping command and a startup item sequence modification command; The target device is configured with device information based on the device information configuration command, so that the target device restarts, accesses the mirror server after restarting, obtains the mirror installation package mounted on the mirror server, and installs the mirror installation package according to the configured device information.
6. The method according to claim 5, characterized in that The configuring device information of the target device based on the device information configuration command includes: Based on the serial port mapping command in the device information configuration command, mapping the mainboard serial port of the target device to the baseboard management controller; Based on the startup item sequence modification command in the device information configuration command, the startup sequence of each startup item in the basic input and output system of the target device is modified.
7. A mirror image mounting device, characterized in that: include: An installation package generation module, used to obtain an initial installation file and file configuration information, cut and compile the initial installation file based on the file configuration information to form an image installation package, and mount the image installation package on the image server; The image installation module is used to obtain an installation request for a target device, configure device information for the target device based on the installation request, so that the target device obtains the image installation package by accessing the image server, and installs the image installation package based on the configured device information.
8. A compile server, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute an image installation method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement an image installation method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements an image installation method according to any one of claims 1 to 6.