CN111475172B - Bare metal deployment method and device - Google Patents
Bare metal deployment method and device Download PDFInfo
- Publication number
- CN111475172B CN111475172B CN202010134858.2A CN202010134858A CN111475172B CN 111475172 B CN111475172 B CN 111475172B CN 202010134858 A CN202010134858 A CN 202010134858A CN 111475172 B CN111475172 B CN 111475172B
- Authority
- CN
- China
- Prior art keywords
- target host
- host
- target
- deployment
- management software
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 239000002184 metal Substances 0.000 title description 36
- 238000001514 detection method Methods 0.000 claims description 20
- 238000003860 storage Methods 0.000 claims description 7
- 238000009434 installation Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 11
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- KKIMDKMETPPURN-UHFFFAOYSA-N 1-(3-(trifluoromethyl)phenyl)piperazine Chemical compound FC(F)(F)C1=CC=CC(N2CCNCC2)=C1 KKIMDKMETPPURN-UHFFFAOYSA-N 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to the technical field of Internet, in particular to a bare computer deployment method and device, which are applied to a bare computer deployment system. The bare computer deployment system comprises a deployment server and a plurality of hosts to be deployed, wherein the hosts to be deployed are hosts which have completed registration in the bare computer deployment system, and the method comprises the following steps: setting a starting mode of a target host as network starting, and starting the target host in a PXE mode, wherein the target host is any host in the plurality of hosts to be deployed; acquiring the hard disk information of the target host, and mounting the hard disk of the target host to the deployment server so that the deployment server copies a preset operating system image file to the hard disk of the target host; restarting the target host, so that the target host deploys an operating system based on the operating system image file.
Description
Technical Field
The application relates to the technical field of Internet, in particular to a bare computer deployment method and device.
Background
With the rapid development of internet technology, the number of servers is increasing, and IT operation and maintenance have become an important component in IT service connotation. In the face of increasingly complex businesses and increasingly diversified user demands, increasingly expanded IT applications need increasingly reasonable modes to ensure that IT services can be flexibly, conveniently, safely, stably and continuously ensured, and the ensuring factor in the modes is IT operation and maintenance. From the initial development of several servers to huge data centers, the requirements on technology, business, management and the like cannot be met by manpower alone, so that factors of reducing IT service cost such as standardization, automation, architecture optimization, process optimization and the like are more and more emphasized. And how to automate batch deployment to install a stable system is the first step in automating.
At present, bare metal installation and deployment are usually carried out by means of PXE and other tools, and the mode of installing and deploying the system is not limited by an optical drive, an optical disk and some external devices, and unattended operation can be realized, so that the workload of operation and maintenance staff is greatly reduced. The PXE protocol is divided into clients and servers, the PXE clients are arranged in ROM of the network card, when the computer is started, BIOS calls the PXE clients into the internal memory for execution, and displays a command menu, and after the user selects, the PXE clients download an operating system arranged in the Server to local operation through the network.
In the related art, the PXE deployment and installation flow is as follows: 1. starting the client from the PXE network card, requesting IP from a DHCP server in the network, and searching the position of the guide file; 2. the DHCP server returns a placement location for the client IP and network bootstrap (Network Bootstrap Program, NBP) file (which is typically placed on a simple file transfer protocol (Trivial File Transfer Protocol, TFTP) server); 3. the client requests NBP from TFTP server in the network; 4. the client executes the file after obtaining NBP; 5. loading a kernel and a file system through a TFTP server according to an execution result of the NBP; 6. an operating system is installed.
However, when bare engine deployment is performed by adopting the deployment and installation mode, operations such as power-on, power-off, restarting, setting a starting mode and the like need to be performed for each target host respectively, the installation and deployment operations are complex, and the installation and deployment efficiency is low.
Disclosure of Invention
The embodiment of the application provides a bare metal deployment method and device, which are used for solving the problems of complicated installation and deployment operation and low installation efficiency in the prior art.
The specific technical scheme provided by the embodiment of the application is as follows:
in a first aspect, the present application provides a bare metal deployment method, applied to a bare metal deployment system, where the bare metal deployment system includes a deployment server and a plurality of hosts to be deployed, where the plurality of hosts to be deployed are hosts that have completed registration in the bare metal deployment system, the method includes:
setting a starting mode of a target host as network starting, and starting the target host in a PXE mode, wherein the target host is any host in the plurality of hosts to be deployed;
acquiring the hard disk information of the target host, and mounting the hard disk of the target host to the deployment server so that the deployment server copies a preset operating system image file to the hard disk of the target host;
restarting the target host, so that the target host deploys an operating system based on the operating system image file.
Optionally, before setting the start-up mode of the target host to network start-up, the method further includes:
receiving a registration request corresponding to the target host, wherein the registration request comprises host information of the target host;
registering host information of the target host to the deployment server, and configuring a target driver matched with system management software of the target host according to the host information of the target host, wherein the target driver can call the system management software to power on, power off, restart and set a starting mode for the target host.
Optionally, the step of configuring the target driver matched with the system management software of the external band of the target host according to the host information of the target host includes:
determining system management software of the host type according to the host type of the target host;
determining a target driver that can call the system management software, and configuring relevant conditions required to call the system management software.
Optionally, the deployment server is a DHCP server and a PXE server, and the deployment server is integrated with a reply_ramdisk tool, and a first script for searching the hard disk information of the target host is embedded in the reply_ramdisk tool;
the step of obtaining the hard disk information of the target host and mounting the hard disk of the target host to the deployment server comprises the following steps:
searching the hard disk information of the target host by adopting a first script embedded in the depth_ramdisk tool;
and when the searched hard disk of the target host is determined, the searched hard disk of the target host is mounted to a deployment server in an ISCSI mode.
Optionally, the duplicate_ramdisk tool is embedded with a second script for hardware detection, and the method further includes:
the system management software is called through the target driver to detect the target host hardware; or,
and detecting the target host hardware by adopting a second script embedded in the depth_ramdisk tool.
In a second aspect, the present application provides a bare metal deployment apparatus applied to a bare metal deployment system, where the bare metal deployment system includes a deployment server and a plurality of hosts to be deployed, the plurality of hosts to be deployed are hosts that have completed registration in the bare metal deployment system, the apparatus includes:
the system comprises a starting unit, a network starting unit and a network starting unit, wherein the starting unit is used for setting a starting mode of a target host to be network starting and starting the target host in a PXE mode, and the target host is any host in a plurality of hosts to be deployed;
the mounting unit is used for acquiring the hard disk information of the target host and mounting the hard disk of the target host to the deployment server so that the deployment server copies the preset operating system image file to the hard disk of the target host;
and the restarting unit is used for restarting the target host, so that the target host deploys an operating system based on the operating system image file.
Optionally, before setting the start-up mode of the target host to network start-up, the apparatus further includes:
the receiving unit is used for receiving a registration request corresponding to the target host, wherein the registration request comprises host information of the target host;
the registration unit is used for registering the host information of the target host to the deployment server, and configuring a target driver matched with the system management software of the target host according to the host information of the target host, wherein the target driver can call the system management software to power on, power off, restart and set a starting mode for the target host.
Optionally, when configuring the target driver matched with the system management software of the external band of the target host according to the host information of the target host, the registration unit is specifically configured to:
determining system management software of the host type according to the host type of the target host;
determining a target driver that can call the system management software, and configuring relevant conditions required to call the system management software.
Optionally, the deployment server is a DHCP server and a PXE server, and the deployment server is integrated with a reply_ramdisk tool, and a first script for searching the hard disk information of the target host is embedded in the reply_ramdisk tool;
the mounting unit is specifically configured to:
searching the hard disk information of the target host by adopting a first script embedded in the depth_ramdisk tool;
and when the searched hard disk of the target host is determined, the searched hard disk of the target host is mounted to a deployment server in an ISCSI mode.
Optionally, the duplicate_ramdisk tool is embedded with a second script for hardware detection, and the apparatus further includes:
the detection unit is used for calling the system management software through the target driver to detect the target host hardware; or,
and the detection unit is used for detecting the target host hardware by adopting a second script embedded in the depth_ramdisk tool.
In a third aspect, the present application provides a computing device comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in the memory and executing the method according to any of the above-mentioned first aspects according to the obtained program.
In a fourth aspect, the present application provides a computer storage medium having stored thereon computer-executable instructions for causing a computer as described above to perform the method of any one of the first aspects.
The beneficial effects of the application are as follows:
in summary, the bare metal deployment method and apparatus provided in the present application are applied to a bare metal deployment system, where the bare metal deployment system includes a deployment server and a plurality of hosts to be deployed, where the plurality of hosts to be deployed are hosts that have completed registration in the bare metal deployment system, and the method includes: setting a starting mode of a target host as network starting, and starting the target host in a PXE mode, wherein the target host is any host in the plurality of hosts to be deployed; acquiring the hard disk information of the target host, and mounting the hard disk of the target host to the deployment server so that the deployment server copies a preset operating system image file to the hard disk of the target host; restarting the target host, so that the target host deploys an operating system based on the operating system image file.
By adopting the bare computer deployment method provided by the application, the deployment server in the bare computer deployment system controls the operations of powering on and powering off, restarting and the like of each registered bare computer, and the image file of the operating system is directly copied into the hard disk of the bare computer in a hardware mounting mode, so that the full-automatic and rapid installation of the operating system of the bare computer is realized, and the simplicity is realizedBare metal operating systemAnd the installation and deployment operation flow improves the installation and deployment efficiency.
Drawings
FIG. 1 is a schematic flow chart of a bare metal deployment method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a host registration process according to an embodiment of the present disclosure;
FIG. 3 is a schematic process diagram of a bare metal deployment method according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a bare metal deployment device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another bare metal deployment device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
First, the term "and" in the embodiment of the present application is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and B may be represented: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
When the present application refers to ordinal numbers such as "first," "second," "third," or "fourth," it should be understood to be used for distinction only, unless the order is actually expressed depending on the context.
The following will describe the aspects of the present application in detail by way of specific examples, but of course the present application is not limited to the following examples.
As an example, referring to fig. 1, the embodiment of the present application provides a bare metal deployment method, which is applied to a bare metal deployment system, where the bare metal deployment system includes a deployment server and a plurality of hosts to be deployed, where the plurality of hosts to be deployed are hosts that have completed registration in the bare metal deployment system, and the detailed flow of the bare metal deployment method is as follows:
step 100: and setting the starting mode of the target host as network starting, and starting the target host in a PXE mode.
Wherein the target host is any host among the plurality of hosts to be deployed.
In the embodiment of the present application, before executing step 100, the bare metal deployment method further includes the following steps: the bare engine deployment system receives a registration request corresponding to the target host, wherein the registration request comprises host information of the target host; registering the host information of the target host to the deployment server, and configuring a target driver matched with the system management software of the target host according to the host information of the target host, wherein the target driver can call the system management software to power on, power off, restart and set a starting mode for the target host.
That is, the bare metal of the operating system to be deployed (i.e., the host/server on which the operating system is not installed) needs to be registered in advance with the bare metal deployment system.
In this embodiment, when configuring, according to the host information of the target host, a target driver that matches with the system management software of the external host, an optional implementation manner is to determine, according to a host type of the target host, the system management software of the host type; determining a target drive that can call the system management software, and configuring relevant conditions required for calling the system management software.
Specifically, the step of registering the operating system to be deployed to the bare metal deployment system may include the steps of:
step one: and receiving a registration request corresponding to a target host.
The registration request includes host information of the target host, where the host information includes at least a host type of the host, and of course, if the host has system management software outside, the host may also include the type of the system management software.
Step two: host information of the one target host is registered to the deployment server.
Further, the deployment server needs to configure a target driver matched with the system management software of the target host according to the host type of the target host and/or the type of the system management software of the host outside, where the target driver may call the system management software of the target host to power up, power down, restart and set a startup mode for the target host.
For example, before operating system deployment of bare metal using a bare metal management system, information of a host needs to be registered in a deployment server, and when the host is registered, a Driver (Driver) for managing use of the host and necessary information required for the Driver need to be specified. Taking the pxe_ipmitool as an example, when registering the host, the information such as IPMI address, user name, password, etc. of the server needs to be specified. Further, to implement automated installation deployment of Guest OS, it is also necessary to formulate a duplicate_kernel and duplicate_ramdisk tool for booting the installation deployment.
For example, referring to FIG. 2, a process diagram of a host registration process is shown. The host (or server) to be registered sends a registration request to a deployment server, and the deployment server determines a corresponding drive according to server information (such as a server type) of the server to be registered, for example, if the server to be registered is a server (such as a server type A) with an IPMI system outside, the corresponding drive (such as a drive A) of the IPMI system can be determined, and the IPMI system is managed by using the drive A; if the proxy registration server is a server with a iLO system outside (e.g., server type B), then the driver corresponding to iLO system (e.g., driver B) can be determined and used to manage iLO system. In practical application, the server can be controlled by an IPMI system outside the server or a iLO system to power on, power off, restart, set a starting mode and the like. Different types of servers may support different types of management systems that require different drivers.
Step 110: and acquiring the hard disk information of the target host, and mounting the hard disk of the target host on the deployment server so that the deployment server copies the preset operating system image file to the hard disk of the target host.
In this embodiment of the present application, an optional implementation manner is that the deployment server is a DHCP server and a PXE server, where the deployment server is integrated with a depth_ramdisk tool, and a first script for searching for hard disk information of a target host is embedded in the depth_ramdisk tool; the step of obtaining the hard disk information of the target host and mounting the hard disk of the target host to the deployment server includes: searching the hard disk information of the target host by using a first script embedded in the depth_ramdisk tool; and when the searched hard disk of the target host is determined, the searched hard disk of the target host is mounted to a deployment server in an ISCSI mode.
In the embodiment of the application, the most important function of the bare computer deployment system is to provide automatic and rapid installation of a bare computer server operating system (such as Guest OS). In the embodiment of the application, in order to realize automatic installation of the host Guest OS, a duplicate_kernel and a duplicate_ramdisk tool for installing the boot are also determined when the host registration is performed.
The embodiments of the present application are further described below with specific application scenarios. Taking the bare server external management system as an IPMI system, taking the PXE starting as an example through a host network starting mode, and describing the installation of the bare server operating system in detail.
As an example, referring to fig. 3, the bare computer deployment system performs power-on/power-off, restarting and starting modes through an IPMI system with an external band, when the gueastos is installed, the bare server is set to start from the network, the starting mode is PXE starting, a deployment server (the deployment server is a DHCP server or a PXE server) is automatically loaded from a TFTP server of the deployment server, a deployment script is already embedded in the deployment_ramdisk tool, and after the deployment script searches a hard disk of the bare server, the hard disk of the bare server is mounted on the deployment server, and then a message of the deployment server is blocked and waited for. At this time, the deployment server converts the pre-prepared os image into a file in raw format, copies the file to the hard disk of the bare server through the dd command, and sends a message to the bare server informing that the copying of the os file is completed. The IPMI starts the bare server, and sets the bare server to start from the hard disk, so as to complete automatic quick deployment and installation of Guest OS.
Step 120: restarting the target host, so that the target host deploys an operating system based on the operating system image file.
That is, after the deployment server converts the pre-prepared operating system file image file into a file with a specified format, the file is copied to the hard disk of the target host, and after the copying is completed, the target host is informed of the completion of the copying through a preset message mechanism, so that the management system outside the target host restarts the target host, the starting mode of the target host is set to be hard disk starting, and the target host can automatically and quickly deploy and install the operating system based on the operating system file in the hard disk.
Further, in the embodiment of the present application, after any target host is registered, the bare computer deployment system may be further configured to detect hardware information of the target host, where the hardware information of the target host may include hardware attribute information and/or hardware network card information of the target host, and the body may include the following two detection manners:
the first way is in-band detection, that is, the second script for hardware detection is embedded in the reply_ramdisk tool, so that the bare computer deployment system can detect the target host hardware by using the second script embedded in the reply_ramdisk tool.
For example, automatic detection of a general server may be achieved by embedding a hardware detection script in the duplicate_ramdisk. The principle of in-band detection is that an OS (i.e., a reply_ramdisk and a reply_kernel specified at host registration) is booted through PXE on the target server, and hardware information of the server, such as memory_ mb, cpus, cpu _arch, local_gb, etc., is directly found by a hardware detection script service running in the OS and is transmitted to the deployment server.
The second way is out-of-band detection, that is, the registered target host has system management software outside, so that the target host hardware can be detected by calling the system management software by the target driver determined during registration.
For example, for a server with iLO system outside, detection by iLO driver is supported, and basic attributes for scheduling such as memory_ mb, cpus, cpu _arch, local_gb and the like can be automatically detected, and information such as ilo _firmware_version, rom_firmware_ version, secure _boot, server_model, pc_gpu_devices, and nic_capability can be detected.
Based on the above embodiment, referring to fig. 4, the bare machine deployment device provided in the embodiment of the present application is applied to a bare machine deployment system, where the bare machine deployment system includes a deployment server and a plurality of hosts to be deployed, where the plurality of hosts to be deployed are hosts that have completed registration in the bare machine deployment system, and the device includes a startup unit 40, a mount unit 41, and a restart unit 42:
a starting unit 40, configured to set a starting mode of a target host to be network starting, and start the target host by using a PXE mode, where the target host is any host of the plurality of hosts to be deployed;
a mounting unit 41, configured to obtain hard disk information of the target host, and mount the hard disk of the target host onto the deployment server, so that the deployment server copies a preset operating system image file to the hard disk of the target host;
and a restarting unit 42, configured to restart the target host, so that the target host deploys an operating system based on the operating system image file.
Optionally, before setting the start-up mode of the target host to network start-up, the apparatus further includes:
a receiving unit, configured to receive a registration request corresponding to the target host, where the registration request includes host information of the target host;
the registration unit is used for registering the host information of the target host to the deployment server, and configuring a target driver matched with the system management software of the target host according to the host information of the target host, wherein the target driver can call the system management software to power on, power off, restart and set a starting mode for the target host.
Optionally, when configuring the target driver matched with the system management software of the external host according to the host information of the target host, the registration unit is specifically configured to:
determining system management software of the host type according to the host type of the target host;
determining a target drive that can call the system management software, and configuring relevant conditions required for calling the system management software.
Optionally, the deployment server is a DHCP server and a PXE server, and the deployment server is integrated with a depth_ramdisk tool, and a first script for searching hard disk information of the target host is embedded in the depth_ramdisk tool;
when the hard disk information of the target host is obtained and the hard disk of the target host is mounted on the deployment server, the mounting unit 41 is specifically configured to:
searching the hard disk information of the target host by using a first script embedded in the depth_ramdisk tool;
and when the searched hard disk of the target host is determined, the searched hard disk of the target host is mounted to a deployment server in an ISCSI mode.
Optionally, the duplicate_ramdisk tool is embedded with a second script for hardware detection, and the apparatus further includes:
the detection unit is used for detecting the target host hardware by calling the system management software through the target driver; or,
and the detection unit is used for detecting the target host hardware by adopting a second script embedded in the depth_ramdisk tool.
Further, referring to fig. 5, the present application also provides a computing device comprising a memory 50 and a processor 51, wherein,
a memory 50 for storing program instructions;
the processor 51 is configured to call the program instructions stored in the memory 50 and execute any of the method embodiments according to the obtained program.
Still further, the present application provides a computer storage medium having stored thereon computer-executable instructions for causing a computer as described above to perform any of the method embodiments described above.
In summary, the method and apparatus for bare metal deployment provided in the present application are applied to a bare metal deployment system, where the bare metal deployment system includes a deployment server and a plurality of hosts to be deployed, where the plurality of hosts to be deployed are hosts that have completed registration in the bare metal deployment system, and the method includes: setting a starting mode of a target host as network starting, and starting the target host in a PXE mode, wherein the target host is any host in the plurality of hosts to be deployed; acquiring the hard disk information of the target host, and mounting the hard disk of the target host on the deployment server, so that the deployment server copies a preset operating system image file to the hard disk of the target host; restarting the target host, so that the target host deploys an operating system based on the operating system image file.
By adopting the bare machine deployment method, the deployment server in the bare machine deployment system controls the operations of powering on and off, restarting and the like of each registered bare machine, and the operating system image file is directly copied into the bare machine hard disk in a hardware mounting mode, so that the full-automatic and rapid installation of the operating system of the bare machine is realized, the installation and deployment operation flow of the bare machine operating system is simplified, and the installation and deployment efficiency is improved.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to encompass such modifications and variations.
Claims (8)
1. The bare computer deployment method is characterized by being applied to a bare computer deployment system, wherein the bare computer deployment system comprises a deployment server and a plurality of hosts to be deployed, the hosts to be deployed are hosts which have completed registration in the bare computer deployment system, the hosts to be deployed are hosts with different types of system management software and hosts without external system management software, and if the hosts to be deployed are hosts with different types of system management software, the method comprises the following steps:
receiving a registration request corresponding to a target host, wherein the registration request comprises host information of the target host, and the target host is any host in the plurality of hosts to be deployed;
registering host information of the target host to the deployment server, and configuring a target drive matched with system management software of the target host according to the host information of the target host, wherein the target drive can call the system management software to power on, power off, restart and set a starting mode for the target host;
setting the starting mode of the target host as network starting, and starting the target host in a PXE mode;
acquiring hard disk information of the target host through target system management software carried outside the target host, and mounting the hard disk of the target host on the deployment server so that the deployment server copies a preset operating system image file to the hard disk of the target host;
restarting the target host, so that the target host deploys an operating system based on the operating system image file.
2. The method of claim 1, wherein configuring the target driver matching the system management software of the target host's external zone based on the host information of the target host comprises:
determining system management software of the host type according to the host type of the target host;
determining a target driver that can call the system management software, and configuring relevant conditions required to call the system management software.
3. The method as recited in claim 1, wherein the deployment server is a DHCP server and a PXE server, the deployment server being integrated with a reply_ramdisk tool, the reply_ramdisk tool having embedded therein a first script for searching hard disk information of a target host;
if the host to be deployed is a host without external system management software, the step of obtaining the hard disk information of the target host and mounting the hard disk of the target host to the deployment server includes:
searching the hard disk information of the target host by adopting a first script embedded in the depth_ramdisk tool;
and when the searched hard disk of the target host is determined, the searched hard disk of the target host is mounted to a deployment server in an ISCSI mode.
4. The method of claim 3, wherein the duplicate_ramdisk tool is embedded with a second script for hardware detection, the method further comprising:
the system management software is called through the target driver to detect the target host hardware; or,
and detecting the target host hardware by adopting a second script embedded in the depth_ramdisk tool.
5. A bare computer deployment device, characterized in that it is applied to a bare computer deployment system, the bare computer deployment system includes a deployment server and a plurality of hosts to be deployed, the plurality of hosts to be deployed are hosts that have completed registration in the bare computer deployment system, the plurality of hosts to be deployed are hosts that are hosts with different types of system management software and hosts that are not with system management software, and if the hosts to be deployed are hosts with different types of system management software, the device includes:
the receiving unit is used for receiving a registration request corresponding to a target host, wherein the registration request comprises host information of the target host;
the registration unit is used for registering the host information of the target host to the deployment server, and configuring a target driver matched with the system management software of the target host according to the host information of the target host, wherein the target driver can call the system management software to power on, power off, restart and set a starting mode for the target host;
the starting unit is used for setting the starting mode of the target host to be network starting and starting the target host in a PXE mode, wherein the target host is any host in the plurality of hosts to be deployed;
the system comprises a mounting unit, a storage unit and a storage unit, wherein the mounting unit is used for acquiring the hard disk information of the target host through target system management software carried outside the target host, and mounting the hard disk of the target host to the deployment server so that the deployment server copies a preset operating system image file to the hard disk of the target host;
and the restarting unit is used for restarting the target host, so that the target host deploys an operating system based on the operating system image file.
6. The apparatus of claim 5, wherein the registration unit is specifically configured to, when configuring a target driver matching with system management software of an external zone of the target host according to host information of the target host:
determining system management software of the host type according to the host type of the target host;
determining a target driver that can call the system management software, and configuring relevant conditions required to call the system management software.
7. The apparatus of claim 5, wherein the deployment server is a DHCP server and a PXE server, the deployment server integrated with a reply_ramdisk tool having embedded therein a first script for searching hard disk information of a target host;
if the host to be deployed is a host without external system management software, the obtaining the hard disk information of the target host, and mounting the hard disk of the target host to the deployment server, where the mounting unit is specifically configured to:
searching the hard disk information of the target host by adopting a first script embedded in the depth_ramdisk tool;
and when the searched hard disk of the target host is determined, the searched hard disk of the target host is mounted to a deployment server in an ISCSI mode.
8. The apparatus of claim 7, wherein the duplicate_ramdisk tool is embedded with a second script for hardware detection, the apparatus further comprising:
the detection unit is used for calling the system management software through the target driver to detect the target host hardware; or,
and the detection unit is used for detecting the target host hardware by adopting a second script embedded in the depth_ramdisk tool.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010134858.2A CN111475172B (en) | 2020-02-29 | 2020-02-29 | Bare metal deployment method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010134858.2A CN111475172B (en) | 2020-02-29 | 2020-02-29 | Bare metal deployment method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111475172A CN111475172A (en) | 2020-07-31 |
CN111475172B true CN111475172B (en) | 2023-05-16 |
Family
ID=71747122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010134858.2A Active CN111475172B (en) | 2020-02-29 | 2020-02-29 | Bare metal deployment method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111475172B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112083962A (en) * | 2020-08-28 | 2020-12-15 | 山东英信计算机技术有限公司 | Method, device, equipment and storage medium for automatically installing operating system |
CN112948008B (en) * | 2021-03-02 | 2023-06-23 | 浪潮云信息技术股份公司 | Method for managing physical bare machine based on Ironic |
CN114443148B (en) * | 2021-12-16 | 2024-04-02 | 宝德计算机系统股份有限公司 | Method for centrally managing server starting disk and server |
CN117891472B (en) * | 2024-03-11 | 2024-06-04 | 杭州吉利汽车数字科技有限公司 | Bare metal mirror image deployment method, device and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017050168A1 (en) * | 2015-09-21 | 2017-03-30 | 中兴通讯股份有限公司 | Method and device for installing a server |
CN107193605A (en) * | 2017-05-26 | 2017-09-22 | 上海斐讯数据通信技术有限公司 | The installation method and system of a kind of operating system |
CN108270728A (en) * | 2016-12-30 | 2018-07-10 | 上海华讯网络系统有限公司 | Mixing cloud management system and method based on container |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297504B (en) * | 2013-05-09 | 2016-05-11 | 浙江大学 | The method of physics bare machine rapid deployment operating system in a kind of cloud data center |
US10127055B2 (en) * | 2015-10-16 | 2018-11-13 | Quanta Computer Inc. | iSCSI based bare metal OS image deployment and diskless boot |
CN109388475A (en) * | 2018-10-09 | 2019-02-26 | 郑州云海信息技术有限公司 | A kind of dispositions method, device, electronic equipment and the storage medium of physics bare machine |
-
2020
- 2020-02-29 CN CN202010134858.2A patent/CN111475172B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017050168A1 (en) * | 2015-09-21 | 2017-03-30 | 中兴通讯股份有限公司 | Method and device for installing a server |
CN108270728A (en) * | 2016-12-30 | 2018-07-10 | 上海华讯网络系统有限公司 | Mixing cloud management system and method based on container |
CN107193605A (en) * | 2017-05-26 | 2017-09-22 | 上海斐讯数据通信技术有限公司 | The installation method and system of a kind of operating system |
Non-Patent Citations (2)
Title |
---|
张弢 ; 刘青昆 ; 阴元友 ; 郑晓薇 ; .基于PXE的Linux并行机群快速自动部署与配置.辽宁师范大学学报(自然科学版).2008,(01),全文. * |
郭进先 ; .云管平台裸金属分布式PXE服务.信息与电脑(理论版).2019,(09),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN111475172A (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111475172B (en) | Bare metal deployment method and device | |
US11301280B2 (en) | System and method for managing a monitoring agent in an operating system of a virtual computing instance | |
US6816963B1 (en) | Platform level initialization using an image generated automatically by a remote server based upon description automatically generated and transmitted thereto by a processor-based system | |
US7743242B2 (en) | Method and system for automatic generation of operating system boot images | |
US7379982B2 (en) | System and method for custom installation of an operating system on a remote client | |
US9465625B2 (en) | Provisioning of operating environments on a server in a networked environment | |
CN110908753B (en) | Intelligent fusion cloud desktop server, client and system | |
CN109840096B (en) | Installation method and device of operating system | |
CN103984575A (en) | Rapid deployment method of cluster Linux operation system in cloud-computing environment | |
CN106549789B (en) | Method and system for realizing server installation | |
US12001285B2 (en) | System booting method and apparatus, node device, and computer-readable storage medium | |
CN107329792B (en) | Docker container starting method and device | |
CN103200271A (en) | Advanced Risc machine (ARM) server and method of automatic installation system thereof | |
US20230367607A1 (en) | Methods and apparatus for hypervisor boot up | |
CN105183528A (en) | Server bios upgrading method and system | |
EP3543849A1 (en) | Driver management method and host machine | |
CN108459868A (en) | A kind of software start-up method, device, terminal and storage medium | |
CN112948008B (en) | Method for managing physical bare machine based on Ironic | |
CN114115917A (en) | Operating system installation method and device | |
CN108733398B (en) | Software upgrading processing method and device | |
CN109669727B (en) | Server configuration method, system and related components | |
CN111200527A (en) | Method for automatically discovering and deploying bare computer based on ironic | |
CN113821264A (en) | Operating system installation control method, installation control system and computing equipment | |
CN111008043A (en) | Server starting method of cloud platform and terminal | |
JP2008191957A (en) | Computer system, and file system automatic setting and os activation method therefor |
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 |