CN114281360A - Method, equipment and storage medium for automatically deploying operating systems in batches - Google Patents

Method, equipment and storage medium for automatically deploying operating systems in batches Download PDF

Info

Publication number
CN114281360A
CN114281360A CN202111571734.1A CN202111571734A CN114281360A CN 114281360 A CN114281360 A CN 114281360A CN 202111571734 A CN202111571734 A CN 202111571734A CN 114281360 A CN114281360 A CN 114281360A
Authority
CN
China
Prior art keywords
host
deployed
message
operating system
bootstrap program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111571734.1A
Other languages
Chinese (zh)
Inventor
赵胜平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Jingmei Integrated Circuit Design Co ltd
Changsha Qianzhilong Micro Electronics Co ltd
Changsha Jingjia Microelectronics Co ltd
Original Assignee
Changsha Jingmei Integrated Circuit Design Co ltd
Changsha Qianzhilong Micro Electronics Co ltd
Changsha Jingjia Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Jingmei Integrated Circuit Design Co ltd, Changsha Qianzhilong Micro Electronics Co ltd, Changsha Jingjia Microelectronics Co ltd filed Critical Changsha Jingmei Integrated Circuit Design Co ltd
Priority to CN202111571734.1A priority Critical patent/CN114281360A/en
Publication of CN114281360A publication Critical patent/CN114281360A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application provides a method, equipment and a storage medium for automatically deploying operating systems in batches, wherein the method comprises the following steps: acquiring a message broadcasted by a host to be deployed; analyzing the message, and determining a target system installation bootstrap program; and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed. Because the messages broadcasted by the hosts of different types of CPU architectures are inconsistent, and the CPU information included in the host broadcast of the same type of CPU architecture is the same, the CPU architecture type of the host to be deployed can be obtained by analyzing the messages, and then the system installation bootstrap program corresponding to the type is obtained, the corresponding operating system deployment is carried out, and the automatic deployment of the operating system of the hosts of different types of CPU architectures is realized.

Description

Method, equipment and storage medium for automatically deploying operating systems in batches
Technical Field
The present application relates to the field of operating system deployment technologies, and in particular, to a method, a device, and a storage medium for automatically deploying operating systems in batches.
Background
At present, the types of CPUs (Central Processing units) at home and abroad are increasing, but at present, one automation deployment server can only deploy an operating system for a host with the same type of CPU architecture.
If the operating systems need to be deployed for the hosts of different types of CPU architectures at the same time, only a plurality of automatic deployment servers can be built, so that the number of the automatic deployment servers is increased, and the cost for installing the operating systems is increased.
Disclosure of Invention
In order to solve one of the technical defects, the application provides a method, equipment and a storage medium for automatically deploying operating systems in batches.
In a first aspect of the present application, a method for batch automatic deployment of operating systems is provided, the method comprising:
acquiring a message broadcasted by a host to be deployed;
analyzing the message and determining a target system installation bootstrap program;
and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed.
Optionally, the message is automatically broadcast after the host to be deployed is started through a network pre-start execution environment.
Optionally, the packet includes: the supplier information of the host to be deployed and the central processor information.
Optionally, the analyzing the message and determining the target system installation bootstrap includes:
analyzing the message through a multi-thread analysis program to obtain central processor information in the message;
and determining a target system installation bootstrap program according to the central processing unit information.
Optionally, the determining, according to the central processor information, a target system installation bootstrap program includes:
determining the type corresponding to the information of the central processing unit;
and determining the system installation bootstrap program corresponding to the type as a target system installation bootstrap program.
Optionally, the installing a bootstrap program based on the target system, and performing operating system deployment on the host to be deployed includes:
determining an installation file corresponding to the target system installation bootstrap program;
and downloading the target system installation bootstrap program and the installation file to the host to be deployed for operating system deployment.
Optionally, the installation file is an operating system file and an operating system configuration file.
Optionally, the operating system configuration file includes a response option defining an operating system installation process.
In a second aspect of the present application, there is provided an electronic device comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method according to the first aspect.
In a third aspect of the present application, there is provided a computer readable storage medium having a computer program stored thereon; the computer program is executed by a processor to implement the method according to the first aspect as described above.
The application provides a method, equipment and a storage medium for automatically deploying operating systems in batches, wherein the method comprises the following steps: acquiring a message broadcasted by a host to be deployed; analyzing the message, and determining a target system installation bootstrap program; and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed. Because the messages broadcasted by the hosts of different types of CPU architectures are inconsistent, and the CPU information included in the host broadcast of the same type of CPU architecture is the same, the CPU architecture type of the host to be deployed can be obtained by analyzing the messages, and then the system installation bootstrap program corresponding to the type is obtained, the corresponding operating system deployment is carried out, and the automatic deployment of the operating system of the hosts of different types of CPU architectures is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a method for batch automatic deployment of operating systems according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another method for batch automatic deployment of operating systems according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In the process of implementing the application, the inventor finds that now, one automation deployment server can only deploy the operating system to the host computers with the same type of CPU architecture. If the operating systems need to be deployed for the hosts of different types of CPU architectures at the same time, only a plurality of automatic deployment servers can be built, so that the number of the automatic deployment servers is increased, and the cost for installing the operating systems is increased.
In view of the foregoing problems, embodiments of the present application provide a method, an apparatus, and a storage medium for batch automatic deployment of operating systems, where the method includes: acquiring a message broadcasted by a host to be deployed; analyzing the message, and determining a target system installation bootstrap program; and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed. Because the messages broadcasted by the hosts of different types of CPU architectures are inconsistent, and the CPU information included in the host broadcast of the same type of CPU architecture is the same, the CPU architecture type of the host to be deployed can be obtained by analyzing the messages, and then the system installation bootstrap program corresponding to the type is obtained, the corresponding operating system deployment is carried out, and the automatic deployment of the operating system of the hosts of different types of CPU architectures is realized.
Referring to fig. 1, the implementation flow of the method for automatically deploying operating systems in batch according to this embodiment is as follows:
101, obtaining a message broadcasted by a host to be deployed.
The message is automatically broadcast after the host to be deployed is started through a network PXE (Preboot eXecution Environment).
Specifically, the message includes: vendor information of the host to be deployed and CPU information (e.g., CPU type information).
And 102, analyzing the message and determining the installation guide program of the target system.
In particular, the method comprises the following steps of,
1. and analyzing the message through a multi-thread analysis program to obtain the CPU information in the message.
2. And determining a target system installation bootstrap program according to the CPU information.
For example, the type to which the CPU information corresponds is determined. And determining the system installation bootstrap program corresponding to the type as the target system installation bootstrap program.
Because the messages broadcasted by the hosts of different types of CPU architectures are inconsistent, and the CPU information included in the host broadcast of the same type of CPU architecture is the same, the CPU architecture type of the host to be deployed can be obtained by analyzing the messages, and the system installation bootstrap program corresponding to the type can be obtained for carrying out corresponding operation system deployment, thereby realizing the automatic deployment of the operation systems of the hosts of different types of CPU architectures.
In specific implementation, the multi-thread analysis program may be an analyze _ host program, and the analyze _ host program may analyze multiple pieces of request information by adopting multi-thread synchronization, determine a corresponding system installation bootstrap program, download the installation bootstrap program, the operating system file, and the system configuration file corresponding to the host to be deployed for operation, and perform automatic installation.
103, installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed.
In particular, the method comprises the following steps of,
1. and determining an installation file corresponding to the installation bootstrap program of the target system.
The installation files are operating system files and operating system configuration files.
The operating system configuration file includes response options that define the operating system installation process.
2. And downloading the installation bootstrap program and the installation file of the target system to a host to be deployed for operating system deployment.
In the prior art, a server is built to support machines with the same type of CPU architecture to simultaneously install operating systems in batch through a network, but the machines with different types of CPU architectures cannot be simultaneously and automatically identified to be installed.
By the method for automatically deploying the operating systems in batches, a server can be set up, and the host which can simultaneously support various types of CPU architectures can automatically deploy the operating systems.
Specifically, the server deployed with the method for automatically deploying operating systems in batches provided by this embodiment continuously receives a message automatically broadcast by a host to be deployed after being started through a network PXE (Preboot eXecution Environment), analyzes CPU information in the message, obtains a corresponding system installation bootstrap program according to the CPU information, and then automatically deploys based on the corresponding system installation bootstrap program.
The requirements of system installation bootstrap programs corresponding to the hosts of the CPUs with different architectures are different, because the messages sent by the hosts of the CPUs with different architectures are inconsistent after the hosts of the CPUs with different architectures are started through a network, and the information of the CPUs in the request messages sent by the hosts of the CPUs with the same architectures is the same after the hosts of the CPUs with the same architectures are started through the network. Therefore, the server deployed with the method for automatically deploying operating systems in batches provided by this embodiment receives the message sent by the machine to be deployed continuously and automatically, analyzes the message synchronously, determines the type of the message according to different message information, determines the corresponding system installation bootstrap program according to the type, and downloads the corresponding operating system file and the operating system configuration file associated with the corresponding system to the host to be deployed to run so as to implement automatic deployment; the system configuration file defines response options of an operating system installation process, so that unattended automatic deployment is achieved.
As shown in fig. 2, a host 1 to be deployed broadcasts a message 1 when starting from a network, a host 2 to be deployed broadcasts a message 2 when starting from the network, a host 3 to be deployed broadcasts a message 3 when starting from the network, and a host 4 to be deployed broadcasts a message 4 when starting from the network. After receiving each message, the batch automatic deployment operating system provided by this embodiment is deployed, and then each message is synchronously and automatically analyzed, and the type is determined, and a corresponding system installation bootstrap program is determined. And downloading a system installation bootstrap program, an operating system file and a system configuration file corresponding to the host 1 to be deployed for running, and automatically installing. And downloading a system installation bootstrap program, an operating system file and a system configuration file corresponding to the host 2 to be deployed for running and automatically installing. And downloading a system installation bootstrap program, an operating system file and a system configuration file corresponding to the host 3 to be deployed for running and automatically installing. And downloading a system installation bootstrap program, an operating system file and a system configuration file corresponding to the host 4 to be deployed for running and automatically installing.
The method for automatically deploying operating systems in batches provided by the embodiment obtains a message broadcasted by a host to be deployed; analyzing the message, and determining a target system installation bootstrap program; and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed. Because the messages broadcast by the hosts of different types of CPU architectures are inconsistent, and the CPU information included in the host broadcast of the same type of CPU architecture is the same, the embodiment can obtain the type of the CPU architecture of the host to be deployed by analyzing the messages, and further obtain the system installation bootstrap program corresponding to the type, perform corresponding operating system deployment, and implement automatic deployment of the operating systems of the hosts of different types of CPU architectures.
Based on the same inventive concept of the method for automatically deploying operating systems in batches, the embodiment provides an electronic device, which includes: memory, processor, and computer programs.
Wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method for batch automated deployment of operating systems as described above with reference to figure 1.
In particular, the method comprises the following steps of,
and acquiring a message broadcasted by the host to be deployed.
And analyzing the message and determining the installation guide program of the target system.
And installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed.
Optionally, the message is automatically broadcast after the host to be deployed is started through a network pre-start execution environment.
Optionally, the message includes: supplier information of the host to be deployed and central processor information.
Optionally, parsing the message to determine the target system installation bootstrap includes:
and analyzing the message through a multi-thread analysis program to obtain the information of the central processing unit in the message.
And determining the installation bootstrap program of the target system according to the information of the central processing unit.
Optionally, determining the target system installation bootstrap program according to the central processor information includes:
and determining the type corresponding to the central processor information.
And determining the system installation bootstrap program corresponding to the type as the target system installation bootstrap program.
Optionally, installing a bootstrap program based on the target system, and performing operating system deployment on the host to be deployed, including:
and determining an installation file corresponding to the installation bootstrap program of the target system.
And downloading the installation bootstrap program and the installation file of the target system to a host to be deployed for operating system deployment.
Optionally, the installation files are operating system files and operating system configuration files.
Optionally, the operating system configuration file includes a response option defining an operating system installation process.
In the electronic device provided in this embodiment, a computer program on the electronic device is executed by a processor to obtain a message broadcasted by a host to be deployed; analyzing the message, and determining a target system installation bootstrap program; and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed. Because the messages broadcast by the hosts of different types of CPU architectures are inconsistent, and the CPU information included in the host broadcast of the same type of CPU architecture is the same, the embodiment can obtain the type of the CPU architecture of the host to be deployed by analyzing the messages, and further obtain the system installation bootstrap program corresponding to the type, perform corresponding operating system deployment, and implement automatic deployment of the operating systems of the hosts of different types of CPU architectures.
The present embodiment provides a computer on which a computer program can be stored, based on the same inventive concept of a method of batch automated deployment of operating systems. The computer program is executed by a processor to implement the method for batch automated deployment of operating systems described above with respect to FIG. 1.
In particular, the method comprises the following steps of,
and acquiring a message broadcasted by the host to be deployed.
And analyzing the message and determining the installation guide program of the target system.
And installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed.
Optionally, the message is automatically broadcast after the host to be deployed is started through a network pre-start execution environment.
Optionally, the message includes: supplier information of the host to be deployed and central processor information.
Optionally, parsing the message to determine the target system installation bootstrap includes:
and analyzing the message through a multi-thread analysis program to obtain the information of the central processing unit in the message.
And determining the installation bootstrap program of the target system according to the information of the central processing unit.
Optionally, determining the target system installation bootstrap program according to the central processor information includes:
and determining the type corresponding to the central processor information.
And determining the system installation bootstrap program corresponding to the type as the target system installation bootstrap program.
Optionally, installing a bootstrap program based on the target system, and performing operating system deployment on the host to be deployed, including:
and determining an installation file corresponding to the installation bootstrap program of the target system.
And downloading the installation bootstrap program and the installation file of the target system to a host to be deployed for operating system deployment.
Optionally, the installation files are operating system files and operating system configuration files.
Optionally, the operating system configuration file includes a response option defining an operating system installation process.
In the computer-readable storage medium provided in this embodiment, a computer program on the computer-readable storage medium is executed by a processor to obtain a message broadcasted by a host to be deployed; analyzing the message, and determining a target system installation bootstrap program; and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed. Because the messages broadcast by the hosts of different types of CPU architectures are inconsistent, and the CPU information included in the host broadcast of the same type of CPU architecture is the same, the embodiment can obtain the type of the CPU architecture of the host to be deployed by analyzing the messages, and further obtain the system installation bootstrap program corresponding to the type, perform corresponding operating system deployment, and implement automatic deployment of the operating systems of the hosts of different types of CPU architectures.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The scheme in the embodiment of the application can be implemented by adopting various computer languages, such as object-oriented programming language Java and transliterated scripting language JavaScript.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for automatically deploying operating systems in batches, the method comprising:
acquiring a message broadcasted by a host to be deployed;
analyzing the message and determining a target system installation bootstrap program;
and installing a bootstrap program based on the target system, and deploying the operating system of the host to be deployed.
2. The method of claim 1, wherein the message is automatically broadcasted by the host to be deployed after being started up through a network pre-boot execution environment.
3. The method according to claim 1 or 2, wherein the message comprises: the supplier information of the host to be deployed and the central processor information.
4. The method of claim 1, wherein parsing the message to determine a target system installation bootstrap comprises:
analyzing the message through a multi-thread analysis program to obtain central processor information in the message;
and determining a target system installation bootstrap program according to the central processing unit information.
5. The method of claim 4, wherein determining a target system installation bootstrap program based on the central processor information comprises:
determining the type corresponding to the information of the central processing unit;
and determining the system installation bootstrap program corresponding to the type as a target system installation bootstrap program.
6. The method according to claim 1, wherein the installing a bootstrap program based on the target system to perform operating system deployment on the host to be deployed comprises:
determining an installation file corresponding to the target system installation bootstrap program;
and downloading the target system installation bootstrap program and the installation file to the host to be deployed for operating system deployment.
7. The method of claim 6, wherein the installation files are operating system files and operating system configuration files.
8. The method of claim 7, wherein the operating system configuration file includes a response option that defines an operating system installation process.
9. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-8.
10. A computer-readable storage medium, having stored thereon a computer program; the computer program is executed by a processor to implement the method of any one of claims 1-8.
CN202111571734.1A 2021-12-21 2021-12-21 Method, equipment and storage medium for automatically deploying operating systems in batches Pending CN114281360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111571734.1A CN114281360A (en) 2021-12-21 2021-12-21 Method, equipment and storage medium for automatically deploying operating systems in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111571734.1A CN114281360A (en) 2021-12-21 2021-12-21 Method, equipment and storage medium for automatically deploying operating systems in batches

Publications (1)

Publication Number Publication Date
CN114281360A true CN114281360A (en) 2022-04-05

Family

ID=80873499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111571734.1A Pending CN114281360A (en) 2021-12-21 2021-12-21 Method, equipment and storage medium for automatically deploying operating systems in batches

Country Status (1)

Country Link
CN (1) CN114281360A (en)

Similar Documents

Publication Publication Date Title
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US8291402B2 (en) Using system fingerprints to accelerate package dependency resolution
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
EP2907099B1 (en) Testing framework for applications
US10303490B2 (en) Apparatus and method for optimizing startup of embedded system
WO2017186066A1 (en) Software management method and apparatus
CN107193609B (en) Function module calling method and device in application and electronic equipment
US9513889B2 (en) System and method of automating installation of applications
CN103036770B (en) The system and method pushed for message
CN106502717B (en) Application program running method and device
CN111427596A (en) Software upgrading method and device and terminal equipment
WO2008013393A1 (en) Apparatus, system and method for software upgrade
CN108733398B (en) Software upgrading processing method and device
CN111061496A (en) PXE installation method and device for Linux operating system
CN107220085A (en) A kind of method of automatic upgrading RAID card firmware
CN114281360A (en) Method, equipment and storage medium for automatically deploying operating systems in batches
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
CN106648788B (en) Application program installation method and device
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
CN110209402B (en) Application installation method, electronic device and computer storage medium
CN112328288A (en) Method, system, equipment and storage medium for updating server component
US11425203B2 (en) Commissioning a virtualized network function
CN113641419A (en) File loading method and computer readable storage medium
CN111708567B (en) Application processing method and device
CN113377491B (en) Drive data processing method, drive data processing device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination