CN110716753B - Cloud host initialization method and device, storage medium and electronic equipment - Google Patents

Cloud host initialization method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110716753B
CN110716753B CN201910839180.5A CN201910839180A CN110716753B CN 110716753 B CN110716753 B CN 110716753B CN 201910839180 A CN201910839180 A CN 201910839180A CN 110716753 B CN110716753 B CN 110716753B
Authority
CN
China
Prior art keywords
initialization
target
starting
cloud host
strategy
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.)
Active
Application number
CN201910839180.5A
Other languages
Chinese (zh)
Other versions
CN110716753A (en
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.)
Shenzhen Ping An Communication Technology Co Ltd
Original Assignee
Shenzhen Ping An Communication Technology 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 Shenzhen Ping An Communication Technology Co Ltd filed Critical Shenzhen Ping An Communication Technology Co Ltd
Priority to CN201910839180.5A priority Critical patent/CN110716753B/en
Publication of CN110716753A publication Critical patent/CN110716753A/en
Application granted granted Critical
Publication of CN110716753B publication Critical patent/CN110716753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure relates to a cloud host initialization method, a device, a storage medium and electronic equipment, belonging to the technical field of host initialization, wherein the method comprises the following steps: when the initialization and starting of a target cloud host are monitored, acquiring a target preset starting initialization strategy packet corresponding to the target cloud host; analyzing the target preset starting initialization strategy package to obtain target starting initialization strategy information; acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host; and executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host. According to the cloud host initialization method and device, the cloud host is controlled to be started to be initialized based on a predefined initialization strategy according to an initialization environment, and the success rate and the initialization efficiency of the cloud host initialization are effectively guaranteed.

Description

Cloud host initialization method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of host initialization, in particular to a cloud host initialization method, a cloud host initialization device, a storage medium and electronic equipment.
Background
The cloud host is a virtualization technology similar to a host, and a plurality of parts similar to independent hosts are virtualized on one host, so that single machine multi-user can be realized, and each part can be used as an independent operating system. The cloud host initialization is a process of setting various variables to default values, setting the control to default state and preparing the control which is not ready after the cloud host is created.
In the prior art, when a cloud host is initialized, the adaptability to the initialization environments of different cloud hosts is insufficient, and the initialization environments are changed to cause the failure of the invocation of an initialization script and the failure of the initialization; and is not capable of flexible definition of initialization according to the initialization requirements.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The purpose of the present disclosure is to provide an initialization scheme of a cloud host, and further to at least some extent, based on a predefined initialization policy, perform initialization of the cloud host according to an initialization environment, so as to effectively ensure a success rate and an initialization efficiency of the cloud host initialization.
According to one aspect of the present disclosure, there is provided a method for initializing a cloud host, including:
when the initialization and starting of a target cloud host are monitored, acquiring a target preset starting initialization strategy packet corresponding to the target cloud host;
analyzing the target preset starting initialization strategy package to obtain target starting initialization strategy information;
acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host;
and executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host.
In an exemplary embodiment of the present disclosure, when the target cloud host initialization start is monitored, obtaining a target preset start initialization policy package corresponding to the target cloud host includes:
when the initialization and starting of the target cloud host are monitored, judging the starting type of the initialization and starting of the target cloud host;
and acquiring a target preset starting initialization strategy packet corresponding to the target cloud host according to the starting category.
In an exemplary embodiment of the present disclosure, the obtaining, according to the start-up category, a target preset start-up initialization policy package corresponding to the target cloud host includes:
when the starting category is a category of incomplete first-time initialization starting, acquiring a preset first-time initialization strategy packet corresponding to the target cloud host;
and when the starting category is the category which finishes the first initialization starting, acquiring a preset each-time starting initialization strategy packet corresponding to the target cloud host.
In an exemplary embodiment of the present disclosure, after obtaining a preset first-time initialization policy package corresponding to the target cloud host when the startup category is a category of incomplete first-time initialization startup, the method further includes:
analyzing the preset first-time starting initialization strategy package to obtain first-time starting initialization strategy information;
acquiring a target starting initialization script according to the first starting initialization strategy information and the initialization environment category of the target cloud host;
executing the target starting initialization script according to the first starting initialization strategy information so as to finish the first starting initialization of the target cloud host;
when the first-time starting initialization of the target cloud host is successful, the initialization state of the target cloud host is modified to be the first-time starting initialization.
In an exemplary embodiment of the present disclosure, after obtaining, according to the start-up category, a target preset start-up initialization policy package corresponding to the target cloud host, the method further includes:
acquiring an initialization requirement of the target cloud host;
judging whether a target preset starting initialization strategy packet corresponding to the target cloud host can realize the initialization requirement according to the initialization requirement;
and if the initialization requirement cannot be met, acquiring the target custom starting initialization strategy package from a custom starting initialization strategy library.
In an exemplary embodiment of the disclosure, the obtaining a target initiation initialization script according to the target initiation initialization policy information and an initialization environment class of the target cloud host includes:
acquiring an initialization environment category of the target cloud host;
acquiring script names of scripts required for starting initialization corresponding to the initialization environment types of the target cloud host from the target starting initialization strategy information;
and crawling the target starting initialization script according to the script name of the script required by the starting initialization.
In an exemplary embodiment of the present disclosure, the executing the target launch initialization script according to the target launch initialization policy information to complete initialization of the target cloud host includes:
acquiring the execution sequence of a script required by starting initialization from the target starting initialization strategy information;
and executing the target starting initialization script according to the execution sequence of the script required by the starting initialization so as to finish the initialization of the target cloud host.
According to one aspect of the present disclosure, there is provided an initializing device of a cloud host, including:
the first acquisition module is used for acquiring a target preset starting initialization strategy packet corresponding to the target cloud host when the target cloud host is monitored to be started in an initializing mode;
the analysis module is used for analyzing the target preset starting initialization strategy package to obtain target starting initialization strategy information;
the second acquisition module is used for acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment type of the target cloud host;
and the initialization module is used for executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon an initialization program of a cloud host, wherein the initialization program of the cloud host, when executed by a processor, implements the method of any one of the above.
According to an aspect of the present disclosure, there is provided an electronic apparatus, including:
a processor; and
the memory is used for storing an initialization program of the cloud host of the processor; wherein the processor is configured to perform the method of any of the above via execution of an initialization program of the cloud host.
The method and the device for initializing the cloud host comprise the steps of firstly, when the initialization and starting of a target cloud host are monitored, acquiring a target preset starting initialization strategy packet corresponding to the target cloud host; when the cloud host is initialized, the corresponding target preset starting initialization strategy packet can be automatically generated, and the cloud host can be efficiently and accurately initialized in the subsequent steps. Further, analyzing the target preset starting initialization strategy package to obtain target starting initialization strategy information; thus, the target information for completing the initialization action can be obtained, and the accuracy of the initialization process is ensured. Then, acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host; therefore, the initialization script which is suitable for the current initialization environment can be obtained according to the starting initialization strategy information based on the current initialization environment, and the adaptability to different cloud host initialization environments is effectively ensured when the cloud host is initialized, and the success of initialization is ensured. And finally, executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host. In this way, according to the initialization environment, the initialization of the cloud host is controlled to be started based on a predefined initialization strategy, and the success rate and the initialization efficiency of the cloud host are effectively ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 schematically shows a flowchart of a method of initializing a cloud host.
Fig. 2 schematically illustrates an exemplary application scenario diagram of an initialization method of a cloud host.
Fig. 3 schematically shows a flow chart of a method of retrieving a target-initiated initialization script.
Fig. 4 schematically shows a block diagram of an initializing device of a cloud host.
Fig. 5 schematically shows an example block diagram of an electronic device for implementing the above-described method for initializing a cloud host.
Fig. 6 schematically illustrates a computer-readable storage medium for implementing the above-described cloud host initialization method.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In this exemplary embodiment, an initialization method of a cloud host is provided first, where the initialization method of the cloud host may be run on a server, or may be run on a server cluster or a cloud server, or the like, and of course, a person skilled in the art may also run the method of the present invention on other platforms according to a requirement, which is not limited in particular in this exemplary embodiment. Referring to fig. 1, the method for initializing the cloud host may include the steps of:
step S110, when the initialization and starting of a target cloud host are monitored, a target preset starting initialization strategy packet corresponding to the target cloud host is acquired;
step S120, analyzing the target preset starting initialization strategy package to obtain target starting initialization strategy information;
step S130, acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment type of the target cloud host;
step S140, executing the target startup initialization script according to the target startup initialization policy information, so as to complete the initialization of the target cloud host.
In the cloud host initialization method, when the initialization start of the target cloud host is monitored, a target preset start initialization strategy packet corresponding to the target cloud host is acquired; when the cloud host is initialized, the corresponding target preset starting initialization strategy packet can be automatically generated, and the cloud host can be efficiently and accurately initialized in the subsequent steps. Further, analyzing the target preset starting initialization strategy package to obtain target starting initialization strategy information; thus, the target information for completing the initialization action can be obtained, and the accuracy of the initialization process is ensured. Then, acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host; therefore, the initialization script which is suitable for the current initialization environment can be obtained according to the starting initialization strategy information based on the current initialization environment, and the adaptability to different cloud host initialization environments is effectively ensured when the cloud host is initialized, and the success of initialization is ensured. And finally, executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host. In this way, according to the initialization environment, the initialization of the cloud host is controlled to be started based on a predefined initialization strategy, and the success rate and the initialization efficiency of the cloud host are effectively ensured.
Next, each step in the method for initializing the cloud host in the present exemplary embodiment will be explained and described in detail with reference to the accompanying drawings.
In step S110, when the target cloud host is monitored to be initialized, a target preset initialization policy package corresponding to the target cloud host is obtained.
In the embodiment of the present example, referring to fig. 2, when a server 201 monitors that a target cloud host on a server 202 is initialized and started, a target preset initialization policy package corresponding to the target cloud host is obtained. This may be initialized by the server 201 in a subsequent step based on the initialization policy package. It may be appreciated that, according to the requirement, the server 202 may also directly obtain the target preset start initialization policy package corresponding to the target cloud host, and perform initialization based on the initialization policy package in a subsequent step. The server 201 and the server 202 may be any devices having processing capabilities, such as a computer, a microprocessor, etc., which are not particularly limited herein.
When the cloud host is created, a default initialization policy corresponding to the default initialization situation, that is, a preset startup initialization policy, for example, a first startup initialization policy and each startup initialization policy, is automatically generated. The default initialization is, for example, that no related code needs to be executed after the initialization is completed once, or some code needs to be executed each time the initialization is completed. The automatically generated default initialization policy package, i.e., the preset start initialization policy package, may be, for example, a string in XML format. The preset startup initialization policy package defines the script name and the script execution sequence which need to be executed during initialization. When the target cloud host is monitored to be initialized and started, the target preset starting initialization strategy package corresponding to the target cloud host is automatically acquired, and in the subsequent steps, corresponding default execution codes and execution sequences can be acquired according to specific conditions, so that the cloud host can be initialized accurately and efficiently.
In one embodiment of the present example, when an initialization start of a target cloud host is monitored, acquiring a target preset start initialization policy package corresponding to the target cloud host includes:
when the initialization and starting of the target cloud host are monitored, judging the starting type of the initialization and starting of the target cloud host;
and acquiring a target preset starting initialization strategy packet corresponding to the target cloud host according to the starting category.
The cloud host typically includes a plurality of boot categories at the time of initialization boot, for example, a category in which the first initialization of permanent recording has been completed, or a category in which initialization is required at each boot, and the like. And then, accurately acquiring corresponding target preset starting initialization strategy packages according to different starting types, so that the cloud host can be accurately started under different conditions, and meanwhile, the initialization starting efficiency is effectively ensured.
In one embodiment of the present example, the obtaining, according to the start-up category, a target preset start-up initialization policy package corresponding to the target cloud host includes:
when the starting category is a category of incomplete first-time initialization starting, acquiring a preset first-time initialization strategy packet corresponding to the target cloud host;
and when the starting category is the category which finishes the first initialization starting, acquiring a preset each-time starting initialization strategy packet corresponding to the target cloud host.
The first initialization start is the part of the cloud host that needs to be initialized when the cloud host is started for the first time after creation, and usually the first initialization is permanently recorded if the initialization is completed, that is, the first initialization is not needed later, and the code related to the first initialization start is not needed to be called. Except for the first initialization boot, the method generally further comprises each boot initialization, namely an initialization part which needs to be performed at each boot of the cloud host. By judging whether the cloud host finishes the first initialization starting or not, and further acquiring a corresponding starting initialization strategy packet according to specific conditions, the initialization efficiency can be effectively improved.
In step S120, the target preset initiation initialization policy package is parsed to obtain target initiation initialization policy information.
In this exemplary embodiment, the target preset initiation policy package obtained by automatic parsing, for example, parsing the character string in XML format, may obtain the target initiation policy information, for example, obtain the script name of the script required for initiating the present initialization, and the execution sequence of the corresponding script. Furthermore, in the subsequent steps, the accurate acquisition and execution of the execution codes under different initialization conditions of the target cloud host are effectively ensured.
In one embodiment, the target initiation initialization policy information includes:
starting script names of scripts required for initialization;
the execution sequence of the script required for initialization is started.
The script for starting initialization is executed according to a preset execution sequence, namely, the script is executed according to the preset execution sequence, so that the related resources can be accurately fetched; meanwhile, each script is provided with a corresponding script name, so that the script can be accurately crawled through the script names of the preset scripts.
In step S130, a target startup initialization script is obtained according to the target startup initialization policy information and the initialization environment class of the target cloud host.
In this example embodiment, the script name of each script is composed of a script name and suffixes corresponding to different initialization environments, so that, according to the target start-up initialization policy information, for example, the script name contained in the script name is combined with the initialization environment type of the target cloud host, the initialization environment type is, for example, a linux or windows system, and the script when the target cloud host is initialized can be accurately obtained, for example, the script name + ". Sh" when the target cloud host is initialized, and the script name + ". Ps1" when the target cloud host is started is obtained. And when the cloud host is initialized, the adaptability to different cloud host initialization environments is effectively ensured, and the success of initialization is effectively ensured.
In one embodiment of the present example, as described with reference to fig. 3, the obtaining, according to the target initiation initialization policy information and the initialization environment class of the target cloud host, a target initiation initialization script includes:
step 310, acquiring an initialization environment category of the target cloud host;
step 320, obtaining a script name of a script required for starting initialization corresponding to an initialization environment category of the target cloud host from the target starting initialization policy information;
step 330, crawling the target startup initialization script according to the script name of the startup initialization required script.
The target starting initialization strategy information comprises script names of scripts required for starting initialization, and each initialization environment type of the target cloud host has corresponding initialization codes. By acquiring the script name of the script required for starting initialization corresponding to the initialization environment type of the target cloud host from the target starting initialization strategy information, the adaptability of the cloud host to each system during initialization can be effectively ensured.
In step S140, according to the target initiation initialization policy information, the target initiation initialization script is executed to complete the initialization of the target cloud host.
In the embodiment of the example, according to the target starting initialization strategy information, that is, the preset starting code execution strategy, the initialization starting of the target cloud host can be accurately controlled, and the initialization success rate of the target cloud host is effectively ensured.
In one embodiment of the present example, the executing the target launch initialization script according to the target launch initialization policy information to complete initialization of the target cloud host includes:
acquiring the execution sequence of a script required by starting initialization from the target starting initialization strategy information;
and executing the target starting initialization script according to the execution sequence of the script required by the starting initialization so as to finish the initialization of the target cloud host.
The code which completes initialization is executed only according to a certain execution sequence, so that the success of initialization can be ensured, meanwhile, the execution efficiency of initialization can be ensured, and the initialization success rate and the initialization efficiency of the cloud host can be ensured by acquiring the execution sequence of the script required by the startup initialization and then executing the target startup initialization script.
In one embodiment of the present example, after obtaining the preset first-time initialization policy package corresponding to the target cloud host when the startup class is a class that does not complete the first-time initialization startup, the method further includes:
analyzing the preset first-time starting initialization strategy package to obtain first-time starting initialization strategy information;
acquiring a target starting initialization script according to the first starting initialization strategy information and the initialization environment category of the target cloud host;
executing the target starting initialization script according to the first starting initialization strategy information so as to finish the first starting initialization of the target cloud host;
when the first-time starting initialization of the target cloud host is successful, the initialization state of the target cloud host is modified to be the first-time starting initialization.
When the cloud host completes the first initialization start, the initialization state of the target cloud host is modified to be the first initialization start, that is, the first initialization is permanently recorded if completed, so that after the first initialization is completed, the cloud host can directly skip the first initialization start when being started, and the efficiency of the start initialization is guaranteed.
In one embodiment of the present example, after obtaining, according to the start-up category, a target preset start-up initialization policy package corresponding to the target cloud host, the method further includes:
acquiring an initialization requirement of the target cloud host;
judging whether a target preset starting initialization strategy packet corresponding to the target cloud host can realize the initialization requirement according to the initialization requirement;
and if the initialization requirement cannot be met, acquiring the target custom starting initialization strategy package from a custom starting initialization strategy library.
The initialization requirement of the target cloud host is the requirement of which parts of the cloud host need to be initialized when the cloud host is started. By acquiring the initialization requirement of the target cloud host, whether the initialization requirement can be realized by the preset target preset starting initialization strategy package can be judged. Whether the preset target preset starting initialization strategy package can achieve the initialization requirement or not is judged, and the judgment can be carried out by acquiring an initialization task which is historically completed by a script in the preset target preset starting initialization strategy package and an initialization task in the initialization requirement of the target cloud host. And if the strategy in the preset target preset starting initialization strategy package can not completely realize the initialization requirement of the cloud host, automatically acquiring the self-defined starting initialization strategy package for completing the initialization from the starting initialization strategy library. Thus, personalized initialization of the cloud host can be realized.
The disclosure also provides an initializing device of the cloud host. Referring to fig. 4, the cloud host initializing device may include a first obtaining module 410, a parsing module 420, a second obtaining module 430, and an initializing module 440. Wherein:
the first obtaining module 410 may be configured to obtain, when it is monitored that the target cloud host is initialized and started, a target preset initialization policy package corresponding to the target cloud host;
the parsing module 420 may be configured to parse the target preset initiation initialization policy package to obtain target initiation initialization policy information;
the second obtaining module 430 may be configured to obtain a target startup initialization script according to the target startup initialization policy information and an initialization environment class of the target cloud host;
the initialization module 440 may be configured to execute the target launch initialization script according to the target launch initialization policy information, so as to complete initialization of the target cloud host.
The specific details of each module in the above-mentioned cloud host initialization apparatus are described in detail in the corresponding cloud host initialization method, so that the details are not repeated here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to such an embodiment of the invention is described below with reference to fig. 5. The electronic device 500 shown in fig. 5 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, and a bus 530 connecting the various system components, including the memory unit 520 and the processing unit 510.
Wherein the storage unit stores program code that is executable by the processing unit 510 such that the processing unit 510 performs steps according to various exemplary embodiments of the present invention described in the above section of the "exemplary method" of the present specification. For example, the processing unit 510 may perform step S110 as shown in fig. 1: when the initialization and starting of a target cloud host are monitored, acquiring a target preset starting initialization strategy packet corresponding to the target cloud host; s120: analyzing the target preset starting initialization strategy package to obtain target starting initialization strategy information; step S130: acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host; step S140: and executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host.
The storage unit 520 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 5201 and/or cache memory unit 5202, and may further include Read Only Memory (ROM) 5203.
The storage unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 530 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a client to interact with the electronic device 500, and/or any device (e.g., router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 550. Also, electronic device 500 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 560. As shown, network adapter 560 communicates with other modules of electronic device 500 over bus 530. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 500, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 6, a program product 600 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the client computing device, partly on the client device, as a stand-alone software package, partly on the client computing device and partly on a remote computing device or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the client computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (9)

1. The method for initializing the cloud host is characterized by comprising the following steps of:
when the initialization and starting of a target cloud host are monitored, acquiring a target preset starting initialization strategy packet corresponding to the target cloud host;
acquiring an initialization requirement of the target cloud host;
acquiring an initialization task which is historically completed by a script in the target preset starting initialization strategy package and an initialization task in the initialization requirement of a target cloud host, and judging whether the target preset starting initialization strategy package can realize the initialization requirement;
if the initialization requirement cannot be met, acquiring a target custom starting initialization strategy package from a custom starting initialization strategy library, and analyzing the target custom starting initialization strategy package to obtain target starting initialization strategy information;
if the initialization requirement can be met, analyzing the target preset initialization strategy package to obtain target initialization strategy information;
acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host;
and executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host.
2. The method of claim 1, wherein when the target cloud host initialization start is monitored, obtaining a target preset start initialization policy package corresponding to the target cloud host comprises:
when the initialization and starting of the target cloud host are monitored, judging the starting type of the initialization and starting of the target cloud host;
and acquiring a target preset starting initialization strategy packet corresponding to the target cloud host according to the starting category.
3. The method of claim 2, wherein the obtaining, according to the start-up category, a target preset start-up initialization policy package corresponding to the target cloud host includes:
when the starting category is a category of incomplete first-time initialization starting, acquiring a preset first-time initialization strategy packet corresponding to the target cloud host;
and when the starting category is the category which finishes the first initialization starting, acquiring a preset each-time starting initialization strategy packet corresponding to the target cloud host.
4. The method of claim 3, wherein after obtaining a preset first-time initialization policy package corresponding to the target cloud host when the start-up class is a class for which a first-time initialization start-up is not completed, the method further comprises:
analyzing the preset first-time starting initialization strategy package to obtain first-time starting initialization strategy information;
acquiring a target starting initialization script according to the first starting initialization strategy information and the initialization environment category of the target cloud host;
executing the target starting initialization script according to the first starting initialization strategy information so as to finish the first starting initialization of the target cloud host;
when the first-time starting initialization of the target cloud host is successful, the initialization state of the target cloud host is modified to be the first-time starting initialization.
5. The method according to claim 1, wherein the obtaining a target launch initialization script according to the target launch initialization policy information and the initialization environment class of the target cloud host includes:
acquiring an initialization environment category of the target cloud host;
acquiring script names of scripts required for starting initialization corresponding to the initialization environment types of the target cloud host from the target starting initialization strategy information;
and crawling the target starting initialization script according to the script name of the script required by the starting initialization.
6. The method of claim 1, wherein executing the target launch initialization script according to the target launch initialization policy information to complete initialization of the target cloud host comprises:
acquiring the execution sequence of a script required by starting initialization from the target starting initialization strategy information;
and executing the target starting initialization script according to the execution sequence of the script required by the starting initialization so as to finish the initialization of the target cloud host.
7. An initializing device of a cloud host, comprising:
the first acquisition module is used for acquiring a target preset starting initialization strategy packet corresponding to the target cloud host when the target cloud host is monitored to be started in an initializing mode;
the analysis module is used for acquiring the initialization requirement of the target cloud host; acquiring an initialization task which is historically completed by a script in the target preset starting initialization strategy package and an initialization task in the initialization requirement of a target cloud host, and judging whether the target preset starting initialization strategy package can realize the initialization requirement; if the initialization requirement cannot be met, acquiring a target custom starting initialization strategy package from a custom starting initialization strategy library, and analyzing the target custom starting initialization strategy package to obtain target starting initialization strategy information; if the initialization requirement can be met, analyzing the target preset initialization strategy package to obtain target initialization strategy information;
the second acquisition module is used for acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment type of the target cloud host;
and the initialization module is used for executing the target starting initialization script according to the target starting initialization strategy information so as to finish the initialization of the target cloud host.
8. A computer readable storage medium having stored thereon an initialization program of a cloud host, characterized in that the initialization program of the cloud host, when executed by a processor, implements the method of any of claims 1-6.
9. An electronic device, comprising:
a processor; and
the memory is used for storing an initialization program of the cloud host of the processor; wherein the processor is configured to perform the method of any of claims 1-6 via execution of an initialization program of the cloud host.
CN201910839180.5A 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment Active CN110716753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910839180.5A CN110716753B (en) 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910839180.5A CN110716753B (en) 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110716753A CN110716753A (en) 2020-01-21
CN110716753B true CN110716753B (en) 2023-05-30

Family

ID=69210280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910839180.5A Active CN110716753B (en) 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110716753B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115131912A (en) * 2022-06-29 2022-09-30 深圳市智莱科技股份有限公司 Initialization method, device, equipment and storage medium of Bluetooth cabinet

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480547A (en) * 2017-08-18 2017-12-15 郑州云海信息技术有限公司 A kind of initial method and system of management platform rule base and default policy

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160048409A1 (en) * 2014-08-12 2016-02-18 Peter Briel System and method for automatic initiation and management of a guest operating system which enables a restriction of access to the host machine
CN104809013B (en) * 2015-04-21 2018-08-14 北京创毅视讯科技有限公司 A kind of embedded system start method and device
CN107463411A (en) * 2017-08-16 2017-12-12 北京新网数码信息技术有限公司 A kind of cloud main frame initial method and device
US10509656B2 (en) * 2017-12-01 2019-12-17 American Megatrends International, Llc Techniques of providing policy options to enable and disable system components

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480547A (en) * 2017-08-18 2017-12-15 郑州云海信息技术有限公司 A kind of initial method and system of management platform rule base and default policy

Also Published As

Publication number Publication date
CN110716753A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
US8997090B2 (en) Installing an operating system in a host system
CN106951248B (en) Method and device for adding codes, readable storage medium and computing equipment
CN108829423B (en) System upgrading method, device, equipment and storage medium for Android equipment
CN107463388B (en) UEFI diskless starting method
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN109857537B (en) Background service starting method, device, medium and electronic equipment
CN110716753B (en) Cloud host initialization method and device, storage medium and electronic equipment
CN111433747A (en) Virtual memory for loading an operating system
CN112631915B (en) Method, system, device and medium for PCIE device software simulation
CN114072765B (en) Method for container-based virtualization system
CN111566617A (en) Firmware upgrading method and device for unmanned aerial vehicle, control device, unmanned aerial vehicle and medium
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
US11023220B2 (en) Firmware update with integrated smart sequence and action engine
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN116028267A (en) Dual-system secure mobile phone resetting method and device, server and storage medium
CN111399926A (en) Method and device for downloading starting program
US11163587B2 (en) Interface that enables streamlined user-friendly initiation/control of modifications and/or initial program loading (IPL) of a target system
CN114238831A (en) HTML code fragment processing method, system, electronic equipment and storage medium
CN113986385A (en) Item font library loading method and device, electronic equipment and storage medium
US9141419B1 (en) Capturing and restoring an appliance image
CN111240589A (en) Partition isolation-based system management method, device, equipment and storage medium
CN114443582B (en) File system mounting method, device, equipment and medium on operating system

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
GR01 Patent grant
GR01 Patent grant