Batch automatic deployment method, system and equipment for multiple operating systems and medium

By realizing high availability configuration, automated deployment of multiple operating systems and patch management on the Cobbler server, the problem of batch automation deployment of multiple versions of operating systems is solved, the deployment efficiency and system stability are improved, and the operation and maintenance costs are reduced.

CN119739394AActive Publication Date: 2025-04-01SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411897274.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-01
Estimated Expiration
2044-12-23

AI Technical Summary

Technical Problem

The existing technology is difficult to realize batch automation deployment of multiple versions of operating systems, resulting in low efficiency in data center computer rooms and delivery operation and maintenance deployment, and insufficient system stability and security.

Method used

Through high availability configuration based on the Cobbler server, automated deployment of multiple operating systems and patch configuration updates, batch automatic deployment and patch management of multiple operating systems can be realized, ensuring high availability and stability of the system.

Benefits of technology

It realizes unmanned deployment of multiple operating systems, improves the deployment efficiency of data center computer rooms and delivery operations and maintenance, reduces labor costs and error probability, and ensures the security and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119739394A_ABST
    Figure CN119739394A_ABST
Patent Text Reader

Abstract

The invention discloses a batch automatic deployment method, system and equipment for multiple operating systems and a medium, belongs to the technical field of operating system deployment, and aims to solve the technical problems of how to realize batch automatic deployment of multiple versions of operating systems and improve the deployment efficiency of a data center machine room and delivery operation and maintenance. In order to improve system stability and security, the technical scheme adopted by the invention is as follows: high-availability service configuration: based on keepalived, configuring a data synchronization service and health monitoring and triggering scripts of a Cobbler service, and completing high-availability configuration of the Cobbler service; automatic deployment of various operating systems: centrally managing installation and configuration of various server operating systems, realizing automatic installation of the operating systems, and managing related configuration of the operating systems; and updating patch configuration: configuring a plurality of patch sources at the Cobbler server for storing and managing system patches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of operating system deployment, and in particular to a method, system, equipment and medium for batch automatic deployment of multiple operating systems. Background Art

[0002] With the rapid development of modern information technology and the increasing complexity of IT infrastructure, coupled with the development of big data and cloud computing technologies, the scale of enterprises is constantly expanding, and the number and complexity of IT infrastructure are also increasing. In order to meet the needs of business development, enterprises need to quickly and efficiently deploy a large number of servers and client devices. As the core of enterprise IT infrastructure, data centers need to bear a large number of server requirements. Batch deployment of operating systems can ensure the efficient operation of data centers and quickly respond to business needs.

[0003] The traditional way to automate operating systems is to use PXE+Kickstart to automatically install the operating system. However, the effect of using Kickstart is relatively simple. It can only install one operating system and does not support the selection of multiple operating systems. In actual delivery and operation work, different versions and types of operating systems will be encountered.

[0004] Therefore, how to achieve batch automated deployment of multiple versions of operating systems, improve the deployment efficiency of data center computer rooms and delivery operations, and improve system stability and security is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical task of the present invention is to provide a method, system, device and medium for batch automatic deployment of multiple operating systems to solve the problem of how to achieve batch automatic deployment of multiple versions of operating systems, improve the deployment efficiency of data center computer rooms and delivery operation and maintenance, and improve system stability and security.

[0006] The technical task of the present invention is achieved in the following way: a method for batch automatic deployment of multiple operating systems, the method is as follows:

[0007] High availability service configuration: Based on keepalived configuration data synchronization service, Cobbler service health monitoring and trigger scripts, complete the high availability configuration of Cobbler service;

[0008] Automated deployment of multiple operating systems: Centrally manage the installation and configuration of multiple server operating systems, realize automated installation of operating systems, and manage operating system-related configurations;

[0009] Patch configuration update: Configure multiple patch sources on the Cobbler server to store and manage system patches. After the client machine completes the operating system installation, it automatically connects to the patch source provided by the Cobbler server to update and install patches.

[0010] As a preferred method, the data synchronization service is configured as follows: rsyn+notify-tools is used to configure the data synchronization service. When a file in the directory is modified, deleted or added, inotify-tools triggers rsync to perform a synchronization operation to achieve data synchronization between the system image file and the cobbler configuration file.

[0011] The health monitoring and triggering scripts of the Cobbler service are written using shell technology. The purpose is to regularly check the running status of the Cobbler service, including the self-starting of the cobbler and http services. If a service abnormality is detected, the script is triggered to send an alarm email to the operation and maintenance personnel in a timely manner.

[0012] Preferably, centrally manage the installation and configuration of multiple server operating systems as follows:

[0013] Configure image repositories and installation scripts for multiple operating systems on the Cobbler server;

[0014] Create a separate image repository for each operating system version and store it in a network location accessible to the Cobbler server.

[0015] Preferably, the automated installation of the operating system is as follows:

[0016] Through the configured installation template and configuration file (when installing the operating system automatically, there is a list of operating systems to choose from on the cobbler page), the installation is automatically performed when the client server is started, without manual intervention;

[0017] Using PXE boot, the client server can obtain the files and configuration information required for installation from the Cobbler server in batches over the network, realizing unattended operating system installation;

[0018] The client accesses the network where the Cobbler server is located, supports the loading of Kickstart files, and writes corresponding Kickstart files to guide the automated installation process of the operating system;

[0019] After the client is started through PXE, it loads the startup file provided by the Cobbler server and executes the Kickstart script to complete the installation of the operating system.

[0020] Preferably, the management operating system related configuration is as follows: the Cobbler server uses Kickstart (% post script segment) technology to complete the management server configuration file, and defines network configuration, host name, user account configuration files, and automatically applies network configuration, host name and user account configuration files during the installation process.

[0021] Preferably, the patch source is configured as a YUM source, which makes it easier for clients to update and install patches through YUM commands, and regularly synchronize the latest patch packages from the upstream source to ensure that the client obtains the latest security updates and fixes.

[0022] A system for automatically deploying multiple operating systems in batches, the system comprising:

[0023] High availability service configuration module, which is used to configure data synchronization service, health monitoring and trigger scripts of Cobbler service based on keepalived, and complete the high availability configuration of Cobbler service;

[0024] Multiple operating system automated deployment modules are used to centrally manage the installation and configuration of multiple server operating systems, realize automated installation of operating systems, and manage operating system-related configurations;

[0025] The patch configuration update module is used to configure multiple patch sources on the Cobbler server to store and manage system patches. After the client machine completes the operating system installation, it automatically connects to the patch source provided by the Cobbler server to update and install patches.

[0026] As a preferred embodiment, the working process of the system is as follows:

[0027] (1) The Cobbler server uses a high-availability cluster configuration (to prevent single point failure) to provide web access services, operating system deployment, and patch updates.

[0028] (2) Ensure that the client and the Cobbler server are in the same network environment and check the network status:

[0029] If the network is abnormal, check the client network information;

[0030] (3) Check the service configuration information of the Cobbler server to ensure that the server-side cobbler, DHCP, http, and keepalived services are in normal operation;

[0031] (4) Obtain the version information of the operating system or update patch, obtain a list of all operating system version information that can be deployed and installed, and determine whether the version information is obtained:

[0032] If the version information is not obtained, recheck or update the service configuration;

[0033] (5) Based on actual needs, determine whether the required version information is included:

[0034] If the required version information is included, the execution instruction is sent and the execution starts automatically. After the execution is completed, the operating system deployment status or patch installation status is checked, and the installation process is completed;

[0035] (6) After the installation is complete, check whether the version information matches:

[0036] If the versions do not match, you need to check the server configurations, re-update the configuration service, and restart the client.

[0037] An electronic device, characterized in that it comprises: a memory and at least one processor;

[0038] Wherein, the memory stores computer-executable instructions;

[0039] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the above-mentioned method for batch automatic deployment of multiple operating systems.

[0040] A computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the above-mentioned method for batch automatic deployment of multiple operating systems is implemented.

[0041] The method, system, device and medium for batch automatic deployment of multiple operating systems of the present invention have the following advantages:

[0042] (1) The present invention realizes the automated deployment, patch configuration update and high-availability configuration of multiple operating systems. The corresponding operating system can be selected according to actual needs to realize unattended deployment;

[0043] (ii) The present invention can realize batch unattended deployment of multiple operating systems, saving manual deployment time and reducing the probability of errors compared to traditional image installation; at the same time, it adopts high-availability architecture deployment to improve service reliability; it integrates patch management functions to uniformly manage patches and installation package versions;

[0044] (III) The present invention is based on cobbler technology, and only needs to deploy its server and dependent services (DHCP, TFTP, HTTP, etc.), and the client machine only needs to access the network; it realizes the installation of multiple versions of operating systems without manual intervention. It greatly improves the deployment efficiency of data center computer rooms and delivery and operation and maintenance, reduces labor costs, reduces the probability of errors, and ensures the security and stability of the system;

[0045] (iv) The present invention abandons the traditional ISO image mounting or USB disk booting method and uses the cobbler tool technology to deploy the operating system unattended, thereby improving the deployment efficiency and reducing the errors that occur during the installation of the operating system;

[0046] (V) The server of the present invention can deploy a variety of common operating system sources to meet different business needs and solve the problems of temporary operating system download and long waiting time for customers;

[0047] (VI) The server of the present invention can regularly update patches and provide external services as a YUM source, saving patch download time and managing system installation package versions in a unified manner;

[0048] (VII) The present invention adopts a high-availability architecture deployment, which automatically switches to a backup machine after a service failure, thus avoiding service unavailability caused by the failure;

[0049] (VIII) The present invention can be used to deploy common operating systems with one click in the same local area network environment, realizing unattended deployment; and can also upgrade related system patches;

[0050] (IX) The present invention solves the problems of business dependence on too many operating system versions, incorrect image versions caused by manual image installation, inconsistent system installation packages, long deployment time, etc. It has diversity, practicality, and high availability. While providing the main service of deploying the operating system, it also provides related practical services such as related NTP updates, patch updates, etc., which can reduce operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The present invention is further described below in conjunction with the accompanying drawings.

[0052] Attached Figure 1 A flowchart of a method for batch automatic deployment of multiple operating systems;

[0053] Attached Figure 2 Flowchart for high availability configuration;

[0054] Attached Figure 3 A flowchart of the system working process for batch automatic deployment of multiple operating systems. DETAILED DESCRIPTION

[0055] The method, system, device and medium for batch automatic deployment of multiple operating systems of the present invention are described in detail below with reference to the accompanying drawings and specific embodiments of the specification.

[0056] Embodiment 1:

[0057] As attached Figure 1 As shown, this embodiment provides a method for batch automatic deployment of multiple operating systems, and the method is specifically as follows:

[0058] S1. High availability service configuration: Based on keepalived, configure the data synchronization service, health monitoring and trigger scripts of the Cobbler service to complete the high availability configuration of the Cobbler service; among them, Keepalived is a lightweight high availability solution for Linux. It is a service software based on the VRRP protocol to ensure the high availability of the cluster. Its main function is to achieve fault isolation of real machines and failure switching between load balancers to prevent single point failures;

[0059] S2. Automated deployment of multiple operating systems: Centrally manage the installation and configuration of multiple server operating systems, realize automated installation of operating systems, and manage operating system-related configurations;

[0060] S3, patch configuration update: Configure multiple patch sources on the Cobbler server to store and manage system patches. After the client machine completes the operating system installation, it automatically connects to the patch source provided by the Cobbler server to update and install patches.

[0061] As attached Figure 2 As shown, the high availability service configuration in step S1 of this embodiment is specifically as follows:

[0062] S101. Configure data synchronization service: Use rsyn+notify-tools to configure data synchronization service. When a file in the directory is modified, deleted, or added, inotify-tools triggers rsync to perform synchronization operations to achieve data synchronization between system image files and cobbler configuration files.

[0063] S102. Health monitoring script and trigger script of cobbler service: The health monitoring and trigger script of Cobbler service is written using shell technology. The purpose is to regularly check the running status of Cobbler service, including the self-starting of cobbler and http services. If a service abnormality is detected, the script will be triggered to send an alarm email to the operation and maintenance personnel in time.

[0064] The specific details of the automatic deployment of multiple operating systems in step S2 of this embodiment are as follows:

[0065] S201, Centralized Management: Centrally manage the installation and configuration of multiple server operating systems, configure image repositories and installation scripts for multiple operating systems on the Cobbler server, and create independent image repositories for each operating system version and store them in a network location accessible to the Cobbler server.

[0066] S202, automatic installation of operating system: through the configured installation template and configuration file (when automatically installing the operating system, there is an operating system list to choose from on the cobbler page), the installation is automatically performed when the client server starts, without manual intervention; using PXE boot, the client server can obtain the files and configuration information required for installation from the Cobbler server in batches through the network, realizing unattended operating system installation; at the same time, the client accesses the network where the Cobbler server is located, supports the loading of Kickstart files, and writes corresponding Kickstart files to guide the automatic installation process of the operating system; after the client starts through PXE, it loads the startup file provided by the Cobbler server and executes the Kickstart script to complete the installation of the operating system;

[0067] S203. Manage operating system related configurations: The Cobbler server uses Kickstart (% post script segment) technology to complete the configuration files of the management server, and defines network configuration, host name, user account configuration files, and automatically applies network configuration, host name and user account configuration files during the installation process.

[0068] The patch source in step S4 of this embodiment is configured as a YUM source, which facilitates the client to update and install patches through the YUM command, and regularly synchronizes the latest patch packages from the upstream source to ensure that the client obtains the latest security updates and fixes.

[0069] Embodiment 2:

[0070] This embodiment provides a system for batch automatic deployment of multiple operating systems, the system comprising:

[0071] High availability service configuration module, which is used to configure data synchronization service, health monitoring and trigger scripts of Cobbler service based on keepalived, and complete the high availability configuration of Cobbler service;

[0072] Multiple operating system automated deployment modules are used to centrally manage the installation and configuration of multiple server operating systems, realize automated installation of operating systems, and manage operating system-related configurations;

[0073] The patch configuration update module is used to configure multiple patch sources on the Cobbler server to store and manage system patches. After the client machine completes the operating system installation, it automatically connects to the patch source provided by the Cobbler server to update and install patches.

[0074] As attached Figure 3 As shown in the figure, the working process of the system is as follows:

[0075] (1) The Cobbler server uses a high-availability cluster configuration (to prevent single point failure) to provide web access services, operating system deployment, and patch updates.

[0076] (2) Ensure that the client and the Cobbler server are in the same network environment and check the network status:

[0077] If the network is abnormal, check the client network information;

[0078] (3) Check the service configuration information of the Cobbler server to ensure that the server-side cobbler, DHCP, http, and keepalived services are in normal operation;

[0079] (4) Obtain the version information of the operating system or update patch, obtain a list of all operating system version information that can be deployed and installed, and determine whether the version information is obtained:

[0080] If the version information is not obtained, recheck or update the service configuration;

[0081] (5) Based on actual needs, determine whether the required version information is included:

[0082] If the required version information is included, the execution instruction is sent and the execution starts automatically. After the execution is completed, the operating system deployment status or patch installation status is checked, and the installation process is completed;

[0083] (6) After the installation is complete, check whether the version information matches:

[0084] If the versions do not match, you need to check the server configurations, re-update the configuration service, and restart the client.

[0085] Embodiment 3:

[0086] This embodiment also provides an electronic device, including: a memory and at least one processor;

[0087] Wherein, the memory stores computer-executable instructions;

[0088] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for batch automatic deployment of multiple operating systems as described in any one of the present inventions.

[0089] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.

[0090] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.

[0091] Embodiment 4:

[0092] This embodiment also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the method for batch automatic deployment of multiple operating systems in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0093] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0094] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0095] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0096] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for batch automatic deployment of multiple operating systems, characterized in that: The method is as follows: High availability service configuration: Based on keepalived configuration data synchronization service, Cobbler service health monitoring and trigger scripts, complete the high availability configuration of Cobbler service; Automated deployment of multiple operating systems: Centrally manage the installation and configuration of multiple server operating systems, realize automated installation of operating systems, and manage operating system-related configurations; Patch configuration update: Configure multiple patch sources on the Cobbler server to store and manage system patches. After the client machine completes the operating system installation, it automatically connects to the patch source provided by the Cobbler server to update and install patches.

2. The method for batch automatic deployment of multiple operating systems according to claim 1, characterized in that: The specific configuration of data synchronization service is as follows: Use rsyn+notify-tools to configure data synchronization service. When a file in the directory is modified, deleted, or added, inotify-tools triggers rsync to perform synchronization operations to achieve data synchronization between system image files and cobbler configuration files. The health monitoring and triggering scripts of the Cobbler service are written using shell technology. The purpose is to regularly check the running status of the Cobbler service, including the self-starting of the cobbler and http services. If a service abnormality is detected, the script is triggered to send an alarm email to the operation and maintenance personnel in a timely manner.

3. The method for batch automatic deployment of multiple operating systems according to claim 1 or 2, characterized in that: Centrally manage the installation and configuration of multiple server operating systems as follows: Configure image repositories and installation scripts for multiple operating systems on the Cobbler server; Create a separate image repository for each operating system version and store it in a network location accessible to the Cobbler server.

4. The method for batch automatic deployment of multiple operating systems according to claim 3, characterized in that: The details of automatic installation of the operating system are as follows: Automatically install when the client server starts through the configured installation template and configuration file; Using PXE boot, the client server can obtain the files and configuration information required for installation from the Cobbler server in batches over the network, realizing unattended operating system installation; The client accesses the network where the Cobbler server is located, supports the loading of Kickstart files, and writes corresponding Kickstart files to guide the automated installation process of the operating system; After the client is started through PXE, it loads the startup file provided by the Cobbler server and executes the Kickstart script to complete the installation of the operating system.

5. The method for batch automatic deployment of multiple operating systems according to claim 4, characterized in that: The specific configurations related to the management operating system are as follows: the Cobbler server uses Kickstart technology to complete the configuration files of the management server, and defines various configuration files such as network configuration, host name, and user account, and automatically applies various configuration files such as network configuration, host name, and user account during the installation process.

6. The method for batch automatic deployment of multiple operating systems according to claim 5, characterized in that: The patch source is configured as a YUM source, which makes it easy for clients to update and install patches through the YUM command, and regularly synchronize the latest patch packages from the upstream source to ensure that the client obtains the latest security updates and fixes.

7. A system for automatic batch deployment of multiple operating systems, characterized in that: The system includes: High availability service configuration module, which is used to configure data synchronization service, health monitoring and trigger scripts of Cobbler service based on keepalived, and complete the high availability configuration of Cobbler service; Multiple operating system automated deployment modules are used to centrally manage the installation and configuration of multiple server operating systems, realize automated installation of operating systems, and manage operating system-related configurations; The patch configuration update module is used to configure multiple patch sources on the Cobbler server to store and manage system patches. After the client machine completes the operating system installation, it automatically connects to the patch source provided by the Cobbler server to update and install patches.

8. The system for automatic batch deployment of multiple operating systems according to claim 7, characterized in that: The working process of the system is as follows: (1) The Cobbler server uses a high-availability cluster configuration to provide web access services, operating system deployment, and patch updates. (2) Ensure that the client and the Cobbler server are in the same network environment and check the network status: If the network is abnormal, check the client network information; (3) Check the service configuration information of the Cobbler server to ensure that the server-side cobbler, DHCP, http, and keepalived services are in normal operation; (4) Obtain the version information of the operating system or update patch, obtain a list of all operating system version information that can be deployed and installed, and determine whether the version information is obtained: If the version information is not obtained, recheck or update the service configuration; (5) Based on actual needs, determine whether the required version information is included: If the required version information is included, the execution instruction is sent and the execution starts automatically. After the execution is completed, the operating system deployment status or patch installation status is checked, and the installation process is completed; (6) After the installation is complete, check whether the version information matches: If the versions do not match, you need to check the server configurations, re-update the configuration service, and restart the client.

9. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for batch automatic deployment of multiple operating systems as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method for batch automatic deployment of multiple operating systems as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method, device and system for automatically deploying and configuring servers in batches

    CN111427624A

  • Device and method for batch deployment of Linux operating systems

    CN115617357A

  • System deployment method and device, computer readable storage medium and electronic equipment

    CN116755728A

  • Systems and methods for software provisioning in multiple network configuration environment

    US20100054156A1