CN114489692A - Automatic installation method and system of self-adaptive physical machine - Google Patents

Automatic installation method and system of self-adaptive physical machine Download PDF

Info

Publication number
CN114489692A
CN114489692A CN202111574277.1A CN202111574277A CN114489692A CN 114489692 A CN114489692 A CN 114489692A CN 202111574277 A CN202111574277 A CN 202111574277A CN 114489692 A CN114489692 A CN 114489692A
Authority
CN
China
Prior art keywords
bare
computer
instruction
receiving
file system
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
CN202111574277.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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202111574277.1A priority Critical patent/CN114489692A/en
Publication of CN114489692A publication Critical patent/CN114489692A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The method uses a Debian release, customizes an internal memory root file system according to different architectures, compresses the root file system into a squarhfs file system, and completely customizes initrd. Starting from a physical server PXE, all related components can be programmed and customized, continuous integration of hardware driving is facilitated, the system has perfect cluster management capability and a high-availability scheme, and the system has super-large-scale management capability and perfect support for different architectures.

Description

Automatic installation method and system of self-adaptive physical machine
Technical Field
The invention relates to the technical field of IT and software development, in particular to an automatic installation method and system of a self-adaptive physical machine.
Background
With the rapid increase of the number of physical devices managed in an IDC (Internet Data Center), there is an urgent need for implementing the automatic management requirement of the IDC physical devices, especially the requirement for dynamic on-demand management of cloud. The benchmark product in the current industry is basically based on the Ironic of the Openstack community as the infrastructure of physical server management, however, due to the shortcomings of the Ironic in many aspects, such as the lack of customization capability for user requirements (e.g., dynamic Raid configuration requirements, network dynamic configuration requirements, etc.), the lack of level abstraction for hardware devices, the lack of cluster management schemes, etc., the dynamic management capability of the Ironic for implementing the hardware devices is limited. Meanwhile, the bare engine PXE flow is relatively complex, the programmable and customizable space is small, and the integratable capacity is low. In addition, the OpenStack Ironics IPA in-band management Agent communication interaction mode is complex, customization and management are not easy, kernel customization is inconvenient, and multi-architecture support is not perfect due to the adoption of the Tiny Core Linux.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect that the existing open-source technology component in the prior art is not complete enough in cluster scale, hardware abstraction level, multi-architecture support, programmable sustainable integration and the like, so that the method and the system for automatically installing the self-adaptive physical machine are provided.
The technical scheme provided by the invention is as follows:
the first aspect of the embodiments of the present invention provides an automatic installation method for a self-adaptive physical machine, which is applied to a bare machine, and includes:
polling the PXE network card and sending polling information to the DHCP server;
receiving an IP address returned by the DHCP server and a corresponding memory mirror address;
and downloading the Grub Network boot loader, vmlinux and initrd.
Optionally, the adaptive physical machine automated installation method further includes:
starting a kernel, loading initrd.gz, and executing an initrd.gz init file;
loading a squashfs drive and an overlay drive;
and mounting a tmpfs memory file system, a read-only squashfs file system and an overlay file system.
Optionally, the adaptive physical machine automated installation method further includes:
starting an RAM root file system and an Agent, and sending the heartbeat and the corresponding serial number to the MQ;
and receiving a plurality of operation instructions issued by the MQ, and executing a plurality of corresponding operations.
Optionally, the receiving a plurality of operation instructions issued by the MQ, and executing a plurality of corresponding operations, includes:
receiving a makerraid instruction issued by the MQ, and performing corresponding raid operation in a self-adaptive manner according to the makerraid instruction;
sending makeraid instruction completion information to the MQ;
receiving a file system generating operation instruction sent by the MQ, and executing corresponding file system generating operation according to different manufacturers and mirror image types;
sending the information for generating the file system operation completion to the MQ;
receiving a network card configuration setting instruction sent by the MQ, and setting network card configuration according to different mirror image types;
sending a network card configuration instruction setting completion message to the MQ;
receiving a route adding configuration instruction sent by the MQ, and adding route configuration according to different mirror image types;
sending adding route configuration instruction completion information to the MQ;
receiving a password setting instruction sent by the MQ, and setting a password according to different mirror image types;
and sending password setting instruction completion information to the MQ.
The second aspect of the embodiment of the present invention provides an automatic installation method for a self-adaptive physical machine, which is applied to a DHCP server, and includes:
receiving polling information sent by a bare computer;
allocating an IP address and a corresponding memory mirror address according to the polling information;
and sending the IP address and the memory mirror image address to a bare computer.
The third aspect of the embodiment of the invention provides an automatic installation method of a self-adaptive physical machine, which is applied to MQ and comprises the following steps:
receiving heartbeat and a serial number sent by a bare computer;
and issuing a plurality of operation instructions to the bare metal according to the serial number.
Optionally, the issuing a plurality of operation instructions to the bare metal according to the serial number includes:
issuing a makerrid instruction to the bare computer according to the serial number;
receiving makerraid instruction completion information sent by the bare computer;
sending a file system operation generating instruction to the bare computer;
receiving file system operation completion information sent by a bare computer;
sending a network card configuration setting instruction to the bare computer;
receiving the completion information of setting the network card configuration instruction sent by the bare computer;
sending an adding route configuration instruction to the bare metal;
receiving route configuration adding instruction completion information sent by the bare computer;
sending a password setting instruction to the bare computer;
and receiving password setting instruction completion information sent by the bare computer.
The fourth aspect of the embodiments of the present invention provides an automatic installation system for a self-adaptive physical machine, including: bare machine and DHCP server, wherein,
the bare computer polls the PXE network card and sends polling information to a DHCP server;
the DHCP server receives polling information sent by the bare computer;
the DHCP server distributes an IP address and a corresponding memory mirror image address according to the polling information;
the DHCP server sends the IP address and the memory mirror image address to a bare computer;
the bare computer receives an IP address and a corresponding memory mirror image address returned by a DHCP server;
and the bare computer downloads a Grub Network boot loader, vmlinux and initrd.gz corresponding to the memory mirror image according to the IP address and the memory mirror image address.
A fifth aspect of the embodiments of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a computer to execute the method for automatically installing an adaptive physical machine according to the first aspect, the second aspect, or the third aspect of the embodiments of the present invention.
The sixth aspect of the present invention provides a smart meter lightweight authentication device in an edge computing scenario, including: the device comprises a memory and a processor, wherein the memory and the processor are connected with each other in a communication mode, the memory stores computer instructions, and the processor executes the computer instructions to execute the adaptive physical machine automated installation method according to the first aspect, the second aspect or the third aspect of the embodiment of the invention.
The technical scheme of the invention has the following advantages:
the automatic installation method of the self-adaptive physical machine provided by the invention uses a Debian release board to customize a memory root file system according to different architectures, compresses the root file system into a squarhfs file system and completely customizes initrd. Starting from a physical server PXE, all related components can be programmed and customized, continuous integration of hardware driving is facilitated, the system has perfect cluster management capability and a high-availability scheme, and the system has super-large-scale management capability and perfect support for different architectures.
The self-adaptive physical machine automatic installation system provided by the invention starts from a physical server PXE, all related components can be programmed and customized, the continuous integration of hardware drive is convenient, the system has perfect cluster management capability and a high-availability scheme, and the system has super-large-scale management capability and perfect support for different architectures.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of one particular example of an adaptive physical machine automated installation system in an embodiment of the present invention;
FIG. 2 is a flow diagram illustrating another exemplary embodiment of an adaptive physical machine automated installation system according to an embodiment of the present invention;
FIG. 3 is a flow diagram illustrating another exemplary embodiment of an adaptive physical machine automated installation system according to an embodiment of the present invention;
FIG. 4 is an Agent architecture diagram according to an embodiment of the present invention;
FIG. 5 is a flow chart of a specific example of an automated installation method for an adaptive physical machine in an embodiment of the invention;
FIG. 6 is a flow chart of another specific example of an adaptive physical machine automated installation method in an embodiment of the present invention;
FIG. 7 is a flow chart of another specific example of an adaptive physical machine automated installation method in an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of an adaptive physical machine automation installation apparatus in the embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention provides an automatic installation system of a self-adaptive physical machine, which comprises: bare computer and DHCP server. As shown in fig. 1, the bare computer polls the PXE network card and sends the polling information to the DHCP server; the DHCP server receives polling information sent by the bare computer; the DHCP server distributes an IP address and a corresponding memory mirror image address according to the polling information; the DHCP server sends the IP address and the memory mirror image address to the bare computer; the bare computer receives the IP address returned by the DHCP server and the corresponding memory mirror image address; and the bare computer downloads the Grub Network boot loader, vmlinux and initrd.
In a specific embodiment, a Debian release is used, a memory root file system is customized according to different architectures, the root file system is compressed into a quashfs file system, and an initrd.gz file (an initial RAM disk system and a temporary root partition) is completely customized, wherein the init file is overlapped with the memory file system on the read-only quashfs file system by using an overlay file system, so that a memory Debian ramOS can support read-write operation.
Further, after the downloading is completed, the bare computer starts the kernel and loads initrd.gz, executes the initrd.gz init file, then loads the squashfs driver and the overlay driver, and mounts the tmpfs memory file system, the read-only squashfs file system and the overlay file system after the completion.
In one embodiment, the adaptive physics machine automated installation system further comprises: MQ. The specific process is shown in figure 2,
the bare computer starts an RAM root file system and an Agent, and sends the heartbeat and the corresponding serial number to the MQ; the bare computer receives a plurality of operation instructions issued by the MQ and executes a plurality of corresponding operations; MQ receives heartbeat and serial number sent by bare computers; and the MQ issues a plurality of operation instructions to the bare computer according to the serial number.
In a specific embodiment, the bare computer starts the RAM root file system and the Agent and sends a heartbeat. And the MQ receives the heartbeat and the serial number sent by the bare metal. And the MQ issues a makerraid instruction to the bare computer according to the serial number. And the bare computer receives the makerrid instruction issued by the MQ and performs corresponding raid operation in a self-adaptive manner according to the makerrid instruction. And the bare computer sends makerraid instruction completion information to the MQ. And the MQ receives makerraid instruction completion information sent by the bare computer. And the MQ sends a command for generating a file system operation to the bare metal. And the bare computer receives the operation instruction of the generated file system sent by the MQ and executes corresponding operation of the generated file system according to different manufacturers and mirror image types. And the bare computer sends the information for generating the file system operation completion to the MQ. And the MQ receives the file system operation completion information sent by the bare metal. And the MQ sends a network card configuration setting instruction to the bare computer. And the bare computer receives the network card configuration setting instruction sent by the MQ and sets the network card configuration according to different mirror image types. And the bare computer sends the information for completing the setting of the network card configuration instruction to the MQ. And the MQ receives the configuration instruction completion information of the network card sent by the bare computer. The MQ sends add route configuration instructions to the bare metal. And the bare computer receives the adding route configuration instruction sent by the MQ and adds route configuration according to different mirror image types. And the bare machine sends the addition route configuration instruction completion information to the MQ. And the MQ receives the completion information of the adding route configuration instruction sent by the bare metal. MQ sends a password setting instruction to the bare computer; and the bare computer receives the password setting instruction sent by the MQ and sets the password according to different mirror image types. And the bare computer sends password setting instruction completion information to the MQ. And the MQ receives password setting instruction completion information sent by the bare computer.
In the embodiment of the invention, the RAM root file system and the Agent are started, and the heartbeat is sent. The RabbitMQ distributes a makeRaid instruction, the bare computer returns a message to the MQ after the makeRaid is finished, and then the makeFileSystemlayout instruction is executed in the same process, so that the configuration and the starting of the bare computer are finished.
In an embodiment, as shown in fig. 3, after being started by a pxe, the bare computer obtains an ip through a dhcp, the tftp server obtains a memory image agent, and according to an installation instruction issued in an mq, the image service pulls a user image to write and install the user image.
In an embodiment, as shown in fig. 4, the Python Agent implements a complete communication scheme and an instruction set, where the instruction set includes instruction sets such as hardware information collection, raid card control, partition layout, file system construction, mirror image writing, network card configuration, routing configuration, password setting, hostname setting, and the like.
In a specific embodiment, the Agent can split and encapsulate different instruction operations according to different hardware and different manufacturers, and can adaptively execute different operations according to different issued instructions.
The self-adaptive physical machine automatic installation system provided by the invention starts from a physical server PXE, all related components can be programmed and customized, continuous integration of hardware drive is facilitated, the system has perfect cluster management capability and a high-availability scheme, and the system has super-large-scale management capability and perfect support for different architectures.
The embodiment of the invention also provides an automatic installation method of the self-adaptive physical machine, which is applied to the bare machine and comprises the following steps as shown in fig. 5:
s11: polling the PXE network card and sending the polling information to the DHCP server.
S12: and receiving the IP address returned by the DHCP server and the corresponding memory mirror image address.
S13: and downloading the Grub Network boot loader, vmlinux and initrd.
S14: and starting the kernel, loading initrd.gz and executing the initrd.gz init file.
S15: loading the squashfs drive and overlay drive.
S16: and mounting a tmpfs memory file system, a read-only squashfs file system and an overlay file system.
S17: and starting the RAM root file system and the Agent, and sending the heartbeat and the corresponding serial number to the MQ.
S18: and receiving a plurality of operation instructions issued by the MQ, and executing a plurality of corresponding operations.
In a specific embodiment, receiving multiple operation instructions issued by the MQ, and executing corresponding multiple operations, includes the following steps:
s181: and receiving a makerraid instruction issued by the MQ, and performing corresponding raid operation in a self-adaptive manner according to the makerraid instruction.
S182: and sending makeraid instruction completion information to the MQ.
S183: and receiving a file system generating operation instruction sent by the MQ, and executing corresponding file system generating operation according to different manufacturers and mirror image types.
S184: and sending the file system operation completion generation information to the MQ.
S185: and receiving a network card configuration setting instruction sent by the MQ, and setting network card configuration according to different mirror image types.
S186: and sending the information for completing the network card configuration instruction to the MQ.
S187: and receiving an adding route configuration instruction sent by the MQ, and adding route configuration according to different mirror types.
S188: and sending the adding route configuration instruction completion information to the MQ.
S189: and receiving a password setting instruction sent by the MQ, and setting the password according to different mirror image types.
S190: and sending password setting instruction completion information to the MQ.
The embodiment of the invention also provides an automatic installation method of the self-adaptive physical machine, which is applied to a DHCP server and comprises the following steps as shown in figure 6:
s21: and receiving polling information sent by the bare computers.
S22: and allocating an IP address and a corresponding memory mirror address according to the polling information.
S23: and sending the IP address and the memory mirror image address to the bare computer.
The embodiment of the invention also provides an automatic installation method of the self-adaptive physical machine, which is applied to MQ and comprises the following steps as shown in FIG. 7:
s31: receiving heartbeat and a serial number sent by a bare computer;
s32: and issuing a plurality of operation instructions to the bare metal according to the serial number.
In a specific embodiment, issuing a plurality of operation instructions to the bare metal according to the serial number includes the following steps:
s321: and issuing a makerrid instruction to the bare computer according to the serial number.
S322: and receiving makerraid instruction completion information sent by the bare computer.
S323: and sending a file system operation generating instruction to the bare computer.
S324: and receiving the file system operation completion information sent by the bare computer.
S325: and sending a network card configuration setting instruction to the bare computer.
S326: and receiving the information for completing the setting of the network card configuration instruction sent by the bare computer.
S327: and sending an adding route configuration instruction to the bare metal.
S328: and receiving the completion information of the adding route configuration instruction sent by the bare metal.
S329: and sending a password setting instruction to the bare metal.
S330: and receiving password setting instruction completion information sent by the bare computer.
In an embodiment, a Debian release is used, a memory root file system is customized according to different architectures, the root file system is compressed into a quashfs file system, and an initrd.gz file ((an initial RAM disk system, a temporary root partition) is completely customized, the init file in the init file is overlapped with the memory file system on the read-only quashfs file system by using an overlay file system, so that a memory Debian ramOS can support read-write operation.
Further, after the downloading is completed, the bare computer starts the kernel and loads initrd.gz, executes the initrd.gz init file, then loads the squashfs driver and the overlay driver, and mounts the tmpfs memory file system, the read-only squashfs file system and the overlay file system after the completion.
Starting the RAM root file system and the Agent, and sending the heartbeat. The RabbitMQ distributes a makeRaid instruction, the bare computer returns a message to the MQ after the makeRaid is finished, and then the makeFileSystemlayout instruction is executed in the same process, so that the configuration and the starting of the bare computer are finished.
The automatic installation method of the self-adaptive physical machine provided by the invention uses a Debian release board to customize a memory root file system according to different architectures, compresses the root file system into a squarhfs file system and completely customizes initrd. Starting from a physical server PXE, all related components can be programmed and customized, continuous integration of hardware driving is facilitated, the system has perfect cluster management capability and a high-availability scheme, and the system has super-large-scale management capability and perfect support for different architectures. The requirements of different hardware environments and different scales can be met in public cloud, private cloud and mixed cloud environments.
An embodiment of the present invention further provides an adaptive physical machine automated installation apparatus, as shown in fig. 8, the apparatus terminal may include a processor 61 and a memory 62, where the processor 61 and the memory 62 may be connected by a bus or in another manner, and fig. 8 takes the example of connection by a bus as an example.
The processor 61 may be a Central Processing Unit (CPU). The Processor 61 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 62, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as the corresponding program instructions/modules in embodiments of the present invention. The processor 61 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 62, that is, the adaptive physical machine automated installation method in the above method embodiment is implemented.
The memory 62 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 61, and the like. Further, the memory 62 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 62 may optionally include memory located remotely from the processor 61, and these remote memories may be connected to the processor 61 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in memory 62 and, when executed by processor 61, perform the adaptive physical machine automated installation method of embodiments.
The specific details of the automatic installation device of the adaptive physical machine may be understood by referring to the corresponding related description and effects in the embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (10)

1. An automatic installation method of an adaptive physical machine is applied to a bare machine and comprises the following steps:
polling the PXE network card and sending polling information to the DHCP server;
receiving an IP address returned by the DHCP server and a corresponding memory mirror address;
and downloading the Grub Network boot loader, vmlinux and initrd.
2. The adaptive physical machine automated installation method of claim 1, further comprising:
starting a kernel, loading initrd.gz, and executing an initrd.gz init file;
loading a squashfs drive and an overlay drive;
and mounting a tmpfs memory file system, a read-only squashfs file system and an overlay file system.
3. The adaptive physical machine automated installation method of claim 2, further comprising:
starting an RAM root file system and an Agent, and sending the heartbeat and the corresponding serial number to the MQ;
and receiving a plurality of operation instructions issued by the MQ, and executing a plurality of corresponding operations.
4. The adaptive physical machine automated installation method according to claim 3, wherein the receiving a plurality of operation instructions issued by the MQ and executing a corresponding plurality of operations comprises:
receiving a makerraid instruction issued by the MQ, and performing corresponding raid operation in a self-adaptive manner according to the makerraid instruction;
sending makeraid instruction completion information to the MQ;
receiving a file system generating operation instruction sent by the MQ, and executing corresponding file system generating operation according to different manufacturers and mirror image types;
sending the information for generating the file system operation completion to the MQ;
receiving a network card configuration setting instruction sent by the MQ, and setting network card configuration according to different mirror image types;
sending information for completing setting network card configuration instructions to MQ;
receiving a route adding configuration instruction sent by the MQ, and adding route configuration according to different mirror image types;
sending adding route configuration instruction completion information to the MQ;
receiving a password setting instruction sent by the MQ, and setting a password according to different mirror image types;
and sending password setting instruction completion information to the MQ.
5. The automatic installation method of the self-adaptive physical machine is applied to a DHCP server and comprises the following steps:
receiving polling information sent by a bare computer;
allocating an IP address and a corresponding memory mirror address according to the polling information;
and sending the IP address and the memory mirror image address to a bare computer.
6. An automatic installation method of an adaptive physical machine is applied to MQ and comprises the following steps:
receiving heartbeat and a serial number sent by a bare computer;
and issuing a plurality of operation instructions to the bare metal according to the serial number.
7. The method of claim 6, wherein issuing a plurality of operation commands to the bare metal according to the serial number comprises:
issuing a makerrid instruction to the bare computer according to the serial number;
receiving makerraid instruction completion information sent by the bare computer;
sending a file system operation generating instruction to the bare computer;
receiving file system operation completion information sent by a bare computer;
sending a network card configuration setting instruction to the bare computer;
receiving the completion information of setting the network card configuration instruction sent by the bare computer;
sending an adding route configuration instruction to the bare metal;
receiving route configuration adding instruction completion information sent by the bare computer;
sending a password setting instruction to the bare computer;
and receiving password setting instruction completion information sent by the bare computer.
8. An adaptive physics machine automated installation system, comprising: bare machine and DHCP server, wherein,
the bare computer polls the PXE network card and sends polling information to a DHCP server;
the DHCP server receives polling information sent by the bare computers;
the DHCP server distributes an IP address and a corresponding memory mirror image address according to the polling information;
the DHCP server sends the IP address and the memory mirror image address to a bare computer;
the bare computer receives an IP address and a corresponding memory mirror image address returned by a DHCP server;
and the bare computer downloads a Grub Network boot loader, vmlinux and initrd.gz corresponding to the memory mirror image according to the IP address and the memory mirror image address.
9. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the adaptive physics machine automation installation method of any of claims 1-7.
10. A computer device, comprising: a memory and a processor communicatively coupled to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the adaptive physical machine automated installation method of any of claims 1-7.
CN202111574277.1A 2021-12-21 2021-12-21 Automatic installation method and system of self-adaptive physical machine Pending CN114489692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111574277.1A CN114489692A (en) 2021-12-21 2021-12-21 Automatic installation method and system of self-adaptive physical machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111574277.1A CN114489692A (en) 2021-12-21 2021-12-21 Automatic installation method and system of self-adaptive physical machine

Publications (1)

Publication Number Publication Date
CN114489692A true CN114489692A (en) 2022-05-13

Family

ID=81493726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111574277.1A Pending CN114489692A (en) 2021-12-21 2021-12-21 Automatic installation method and system of self-adaptive physical machine

Country Status (1)

Country Link
CN (1) CN114489692A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016159A (en) * 2022-12-16 2023-04-25 北京云端智度科技有限公司 Tamper-proof installation method, tamper-proof installation system, tamper-proof installation medium and tamper-proof installation equipment for application system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016159A (en) * 2022-12-16 2023-04-25 北京云端智度科技有限公司 Tamper-proof installation method, tamper-proof installation system, tamper-proof installation medium and tamper-proof installation equipment for application system

Similar Documents

Publication Publication Date Title
US10958524B2 (en) Method for generating network slice template and for applying network slice template, and apparatus
US10726462B2 (en) Customizing component configurations for utility computing
CN114244717B (en) Configuration method and device of virtual network card resources, computer equipment and medium
CN107193609B (en) Function module calling method and device in application and electronic equipment
CN106549789B (en) Method and system for realizing server installation
CN110879712A (en) Cloud data center physical host installation method and related device
CN107666493B (en) Database configuration method and equipment thereof
CN107566518B (en) Method and device for managing equipment information in file installation process
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
CN110968331A (en) Method and device for running application program
CN103647982A (en) Advertisement resource acquiring method and device and advertisement resource transmitting method and device
CN106230977A (en) A kind of client functionality loading method, system, client and service end
CN114489692A (en) Automatic installation method and system of self-adaptive physical machine
CN109828774A (en) A kind of server system and its starting method
CN110099095B (en) Software deployment method and device, electronic equipment and computer-readable storage medium
CN103593201B (en) A kind of plug-in display method, device and terminal
CN111930391B (en) Application data processing method and device, server and user terminal
CN114356456A (en) Service processing method, device, storage medium and electronic equipment
CN103023999A (en) Method, server and corresponding system for issuing browser component
CN113434234A (en) Page jump method, device, computer readable storage medium and processor
CN113064655A (en) BIOS network starting method and device and computer readable storage medium
CN114519477A (en) Large data platform tenant management system, method, storage medium and electronic equipment
CN109150810B (en) Set top box convergence gateway and starting method, device and storage medium thereof
CN112702735A (en) Registration information service method, equipment and computer readable storage medium
CN109254782A (en) Installation method of operating system and device

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