Batch installation method, device, server and computer storage medium
By generating unattended installation scripts and packaging them with the original image into a static International Organization for Standardization, IP conflicts caused by batch installation network switching in the existing technology are solved, and automated installation and stability improvement are achieved.
Patent Information
- Application Number
- CN202110652709.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-09
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2041-06-09
AI Technical Summary
When switching from the installed network to the production network, existing operating system batch installation technology may lead to network information reset and IP conflicts, bringing risks to the production system.
By obtaining the characteristic information of the target host and the user's installation requirements information, an unattended installation script is generated, and the original image is packaged into a static international standardization organization image, and mounted to the virtual optical drive of the target host, realizing automatic installation and automatic access to the production network.
The process of switching from the installed network to the production network is avoided, the risk of IP conflict is reduced, and the stability and security of batch installations are improved.
Smart Images

Figure CN113268256B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to a method, device, server and computer storage medium for batch installation of operating systems. Background Art
[0002] The existing technology for batch installation of operating systems is mainly Preboot eXecution Environment (PXE) installation, which requires setting up a Dynamic Host Configuration Protocol (DHCP) server and a Trivial File Transfer Protocol (TFTP) server, and ensuring that the DHCP server and the host to be installed are in the same subnet. Generally, the Internet Protocol (IP) addresses of the hosts in the production environment are static addresses, and the DHCP server is generally not placed in the production network for security reasons. Therefore, a network switch is required after the installation is completed.
[0003] However, during the process of switching from the installation network to the production network, the network information will be reset, and the IP addresses assigned by DHCP will change dynamically, thus bringing risks to the production system, such as IP conflicts. Summary of the Invention
[0004] In view of this, this application provides a method, device, server and computer storage medium for batch installation, which no longer requires switching from the installation network to the production network during the batch installation process, thus avoiding IP conflicts.
[0005] The first aspect of this application provides a method for batch installation, including:
[0006] Obtaining the characteristic information of the target host and the installation requirement information of the user; wherein, the characteristic information at least includes the hardware address of the network card;
[0007] Querying the configuration information of the target host from the host asset information according to the hardware address of the network card;
[0008] Generating an unattended installation script according to the configuration information of the target host and the installation requirement information of the user;
[0009] Packing the unattended installation script and the original image of the target host into a static International Organization for Standardization (ISO) image;
[0010] Mount the static International Organization for Standardization (ISO) image to the virtual optical drive of the target host; wherein, the static ISO image transfers data throughout the installation network where the mainboard management controller of the target host is located. After the virtual optical drive of the target host is started, the automated installation begins, and after the installation is completed, the target host automatically connects to the production network.
[0011] Optionally, generating the unattended installation script according to the configuration information of the target host and the user's installation requirements information includes:
[0012] Determine the external configuration script corresponding to the hardware model in the configuration information of the target host;
[0013] Generate an unattended installation script through the external configuration script and the user's installation requirements information.
[0014] Optionally, after packaging the unattended installation script and the original image of the target host into a static ISO image, it further includes:
[0015] Store the static ISO image under the service path of the Hypertext Transfer Protocol.
[0016] Optionally, after packaging the unattended installation script and the original image of the target host into a static ISO image, it further includes:
[0017] Configure a static Internet Protocol, disk array, and system startup items for the target host.
[0018] Optionally, mounting the static ISO image to the virtual optical drive of the target host includes:
[0019] Mount the static ISO image to the virtual optical drive of the target host through the installation network where the mainboard management controller of the target host is located.
[0020] Optionally, the unattended installation script is a kickstart script.
[0021] The second aspect of this application provides a batch installation device, including:
[0022] An acquisition unit, configured to acquire the characteristic information of the target host and the user's installation requirements information; wherein, the characteristic information at least includes the hardware address of the network card;
[0023] A query unit, configured to query the configuration information of the target host from the host asset information according to the hardware address of the network card;
[0024] A generation unit, configured to generate an unattended installation script according to the configuration information of the target host and the installation requirements information of the user;
[0025] A packaging unit, configured to package the unattended installation script and the original image of the target host into a static ISO image;
[0026] A mounting unit, configured to mount the static ISO image to the virtual optical drive of the target host; wherein, the static ISO image transmits data throughout the installation network where the BMC (Baseboard Management Controller) of the target host is located, and the target host starts automatic installation after the virtual optical drive is started, and automatically accesses the production network after the installation is completed.
[0027] Optionally, the generation unit includes:
[0028] A determination unit, configured to determine an external configuration script corresponding to the hardware model in the configuration information of the target host;
[0029] A generation subunit, configured to generate an unattended installation script through the external configuration script and the installation requirements information of the user.
[0030] Optionally, the batch installation device further includes:
[0031] A storage unit, configured to store the static ISO image to the service path of the HTTP (HyperText Transfer Protocol).
[0032] Optionally, the batch installation device further includes:
[0033] A configuration unit, configured to configure a static IP (Internet Protocol), a disk array, and a system startup item for the target host.
[0034] Optionally, the batch installation device further includes:
[0035] A mounting subunit, configured to mount the static ISO image to the virtual optical drive of the target host through the installation network where the BMC of the target host is located.
[0036] Optionally, the unattended installation script is a kickstart script.
[0037] A third aspect of the present application provides a server, including:
[0038] One or more processors;
[0039] A storage device, on which one or more programs are stored;
[0040] When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the mass installation method according to any one of the first aspect.
[0041] A fourth aspect of the present application provides a computer storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the mass installation method according to any one of the first aspect is implemented.
[0042] As can be seen from the above solutions, the present application provides a mass installation method, device, server and computer storage medium. The mass installation method includes: obtaining characteristic information of a target host and installation requirement information of a user; wherein the characteristic information at least includes the hardware address of a network card; querying the configuration information of the target host from the host asset information according to the hardware address of the network card; generating an unattended installation script according to the configuration information of the target host and the installation requirement information of the user; packaging the unattended installation script and the original image of the target host into a static ISO image; mounting the static ISO image to the virtual optical drive of the target host; wherein the static ISO image transmits data throughout the installation network where the baseboard management controller of the target host is located, and the target host starts automatic installation after the virtual optical drive is started, and after the installation is completed, automatically accesses the production network. Thus, the purpose of no longer needing to switch from the installation network to the production network during the process of mass installation, and thus avoiding IP conflicts is achieved. Description of the Drawings
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0044] Figure 1 It is a specific flowchart of a mass installation method provided by an embodiment of the present application;
[0045] Figure 2 It is a specific flowchart of a method for generating an unattended installation script provided by another embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of a mass installation device provided by another embodiment of the present application;
[0047] Figure 4 It is a schematic diagram of a server for implementing the mass installation method provided by another embodiment of the present application. Detailed implementation manners
[0048] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0049] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or mutual dependence relationship of the functions performed by these devices, modules or units. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0050] The embodiment of the present application provides a method for batch installation of machines, as Figure 1 shown, which specifically includes the following steps:
[0051] S101. Obtain the feature information of the target host and the machine installation requirement information of the user.
[0052] Among them, the target host is the host to be installed. The feature information at least includes the hardware address of the network card. The feature information may also be the brand model information of the target host, which is not limited here. The feature information is provided by the server hardware sales manufacturer.
[0053] The machine installation requirement information of the user may be, but is not limited to, the system version, host name, host Internet Protocol (IP), pre-installed software, network card binding mode, Redundant Arrays of Independent Disks (RAID) level, user name, user group, volume division, etc. information required by the requester filled in by the requester on the requirement entry page.
[0054] It should be noted that in the actual application process of this application, the Baseboard Management Controller (BMC) of the target host needs to be configured to automatically obtain an IP address, be rack-mounted and powered on, and automatically obtain the temporary dynamic IP address of the target host from a Dynamic Host Configuration Protocol (DHCP) server after the BMC is started, and synchronously upload its own Media Access Control (MAC) address to the batch installation device or server of this application, so as to execute the batch installation method of this application. Among them, the MAC address is in the Network Interface Card (NIC). The MAC address consists of 48 bits (6 bytes).
[0055] It can be seen that in this application, the BMC automatically obtains an IP after power-on, so as to ensure that it keeps in touch with the DHCP server from the beginning of installation, thereby avoiding problems that need to be manually processed in the computer room during subsequent installation.
[0056] It should also be noted that the remote connection between the BMC and the DHCP can adopt but is not limited to the Secure Shell (SSH) protocol to ensure the security of information transmission, which is not limited here.
[0057] S102. Query the configuration information of the target host in the host asset information according to the hardware address of the network card.
[0058] It should be noted that when the target host obtains an IP from the DHCP server, the DHCP server will record the MAC address of its network card. At this time, it will go to match the MAC address in the host asset information system, and the host configuration in these host asset information systems has been entered by the requester before, so that the target host can be matched to the configuration.
[0059] In another embodiment of this application, after querying the configuration information of the target host in the host asset information, the static IP of the BMC of the target host can also be configured by calling the BMC script library.
[0060] S103. Generate an unattended installation script according to the configuration information of the target host and the user's installation requirements information.
[0061] It should be noted that the unattended installation script can be but is not limited to a kickstart script, which is not limited here.
[0062] Specifically, the user's installation requirement information is filled as parameters into various pre-written script templates related to the target host, and multiple templates are merged into an unattended installation script.
[0063] Optionally, in another embodiment of the application, an implementation manner of step S103 is as Figure 2 shown, including:
[0064] S201. Determine the external configuration script corresponding to the hardware model in the configuration information of the target host.
[0065] Among them, the script libraries of different hosts are written by the corresponding Application Programming Interface (API). And when there is a new model of host, a new script library needs to be added for the new model of host, so as to achieve multi-host adaptation.
[0066] S202. Generate an unattended installation script through the external configuration script and the user's installation requirement information.
[0067] Specifically, the user's installation requirement information is filled as parameters into the external configuration script, and multiple filled external configuration scripts are merged into the unattended installation script.
[0068] S104. Package the unattended installation script and the original image of the target host into a static International Organization for Standardization (ISO) image.
[0069] Among them, the original image of the target host is the image file of the original operating system of the target host, which is a file obtained by cloning all the data of the operating system. Generally, the file suffix of the operating system image file is ".ISO", and software such as ULtraISO and PowerISO can be used for editing. The operating system image file contains system files, boot files, partition table information, etc., so that the operating system image file can contain all the information of a partition or even a hard disk. And it contains a boot installation program, which supports reading the unattended installation script for unattended installation.
[0070] The static International Organization for Standardization (ISO) image is ISO-9660, abbreviated as ISO, a standard promulgated by the International Organization for Standardization in 1985, the only universal optical disc file system, which is supported by any type of computer and all burning software.
[0071] Optionally, in another embodiment of the present application, after obtaining the ISO image, an implementation manner of the batch installation method further includes:
[0072] Store the static International Organization for Standardization (ISO) image under the service path of the Hypertext Transfer Protocol, such as the httpd service. httpd is the main program of the Hypertext Transfer Protocol (HTTP) server.
[0073] Optionally, in another embodiment of the present application, after obtaining the ISO image, an implementation manner of the batch installation method further includes:
[0074] Configure the static Internet Protocol, disk array, and system startup items for the target host.
[0075] It should be noted that configuring the static Internet Protocol for the target host can be performed through the dhcpd service program. The dhcpd service is a service in the Linux system used to provide the DHCP (Dynamic Host Configuration Protocol). Reserve a part of the IP addresses in the installation subnet IP pool as the static IP pool, and the other part as the DHCP dynamically allocated IP pool. This ensures the consistency of the target host's state during the installation process and avoids IP conflicts of the BMC.
[0076] Since both configuring the Raid and booting from the optical disc require restarting the host being installed, if the IP of the BMC is always obtained dynamically through DHCP, it may change after restarting. If it is not fixed, the already allocated IP may be obtained by other hosts again, and connecting to the BMC to mount the image through the IP may result in connecting to the wrong host. Therefore, it is necessary to fix it to a static IP before starting the installation process. For example: for the installation network C segment address 192.168.111.1 - 200, 1 - 100 is used as the static reserved IP pool, and 101 - 200 is the dynamically allocated IP pool. At the beginning, when the host BMC obtains an IP from DHCP, it will obtain one of the addresses in 101 - 200. At this time, the first step of the batch installation system is to change its IP configuration to obtain a static IP and use an unused address in 1 - 100 as its static IP address, and then start the installation process. After the installation is completely completed, release the address.
[0077] Among them, the configuration command for the static IP can be, but is not limited to:
[0078] iBMC: / ->ipmcset –d ipmode –v static
[0079] iBMC: / ->ipmcset –d ipaddr –v <ipaddr> <mask> <gateway>
[0080] The configuration commands for the disk array can be but are not limited to:
[0081] iBMC: / ->ipmcset -t storage -d created -v 0 -rl r0 -pd 0,1,2 -name example -size 1000g -ss 512k -rp ra -wp wb -ap rw -iop cio -dcp enabled -init quick
[0082] S105. Mount the static ISO image to the virtual optical drive of the target host.
[0083] Among them, the static ISO image transfers data throughout the installation network where the mainboard management controller of the target host is located. After the virtual optical drive of the target host is started, the automated installation begins. After the installation is completed, it automatically connects to the production network, thereby achieving the purpose of releasing the installation network resources and not affecting the network at the system layer.
[0084] It should be noted that the target host has multiple network cards. The mainboard BMC will separately occupy an on - board network card, and the operating system of the target host will use other network cards. The two types of network card ports will be isolated during wiring. The former is connected to the installation management switch, and the latter is connected to the production switch; during the installation process of the operating system of the target host, as the network configuration is completed, it connects to the production network. At this time, no specific applications are deployed, and it has been confirmed that the production IP configuration cannot be repeated when filled in as required, so conflict problems can be avoided, and thus it has no impact on other production systems; the BMC network of the target host switches from the installation network to the management network. The management network is isolated from the production network and has fewer restrictions. It can be directly managed by logging in through the page. Its management network IP address exists in the host asset information system and will be taken over by other operation and maintenance systems later.
[0085] The configuration commands for mounting the static ISO image to the virtual optical drive of the target host can be but are not limited to:
[0086] iBMC: / ->ipmcset -t -vmm -d connect -v
[0087] http: / / 192.168.44.1 / www / c01 - 2 / iso / hostname1.iso
[0088] Optionally, in another embodiment of the present application, an implementation manner of step S105 specifically includes:
[0089] Mount the static ISO image to the virtual optical drive of the target host through the installation network where the motherboard management controller of the target host is located.
[0090] During the application of this application, if you want to temporarily boot from CD / DVD, you can use the following configuration command:
[0091] iBMC: / ->ipmcset - dbootdevice - v 5 once
[0092] During the application of this application, if you want to restart the server, you can use the following configuration command:
[0093] iBMC: / ->ipmcset - d fruncontrol - v 0
[0094] It should be noted that the external API commands of BMCs from different manufacturers may vary. However, as the remote control entry, mounting remote images to the virtual optical drive and configuring RAID are generally their basic functions. Combined with the batch installation system in the present invention, it can decouple the program from the server hardware version. When the server hardware is updated, only the corresponding external API script needs to be updated, without recompiling the driver program or the startup image, and it can quickly adapt to new model hosts, realizing large - scale deployment of the host system.
[0095] The corresponding configuration commands for H3C and HP servers are as follows:
[0096] Static IP configuration command:
[0097] cd / map1 / enetport1
[0098] set / map1 / enetport1 / lanendpt1 / ipendpt1 IPv4Address = <ipaddr>
[0099] SubnetMask= <mask>
[0100] GateWay= <gateway>
[0101] Configuration commands for mounting to a virtual optical drive:
[0102] cd / map1 / oemhp_vm1 / cddr1
[0103] set oemhp_image=http: / / 192.168.44.1 / www / c01-2 / iso / hostname1.iso
[0104] set oemhp_boot=connect
[0105] Configuration commands for booting from CD / DVD:
[0106] set / system1 / bootconfig1 / bootsource1 bootorder=1
[0107] Configuration commands for restarting the server:
[0108] cd / map1
[0109] reset
[0110] As can be seen from the above solution, the present application provides a method for batch installation of computers: by obtaining the characteristic information of the target host and the computer installation requirement information of the user; wherein, the characteristic information at least includes the hardware address of the network card; then, according to the hardware address of the network card, query the configuration information of the target host from the host asset information; after that, generate an unattended installation script according to the configuration information of the target host and the computer installation requirement information of the user; then, package the unattended installation script and the original image of the target host into a static International Organization for Standardization (ISO) image; finally, mount the static ISO image to the virtual optical drive of the target host; wherein, the static ISO image transmits data throughout the installation network where the mainboard management controller of the target host is located, and the target host starts automatic installation after starting from the virtual optical drive, and automatically connects to the production network after the installation is completed. Thus, the purpose of no longer needing to switch from the installation network to the production network during the process of batch installation of computers is achieved, thereby avoiding IP conflicts.
[0111] Another embodiment of the present application provides a device for batch installation of computers, as Figure 3 shown, including:
[0112] An obtaining unit 301, configured to obtain the characteristic information of the target host and the computer installation requirement information of the user.
[0113] Wherein, the characteristic information at least includes the hardware address of the network card.
[0114] A query unit 302, configured to query the configuration information of a target host from the host asset information according to the hardware address of the network card.
[0115] A generation unit 303, configured to generate an unattended installation script according to the configuration information of the target host and the user's installation requirements information.
[0116] Optionally, in another embodiment of the present application, an implementation manner of the generation unit 303 includes:
[0117] A determination unit, configured to determine an external configuration script corresponding to the hardware model in the configuration information of the target host.
[0118] A generation subunit, configured to generate an unattended installation script through the external configuration script and the user's installation requirements information.
[0119] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, as Figure 2 shown, which will not be elaborated here.
[0120] A packaging unit 304, configured to package the unattended installation script and the original image of the target host into a static International Organization for Standardization (ISO) image.
[0121] A mounting unit 305, configured to mount the static ISO image to the virtual optical drive of the target host.
[0122] Among them, the static ISO image transmits data throughout the installation network where the mainboard management controller of the target host is located. After the target host is started from the virtual optical drive, it starts automatic installation, and after the installation is completed, it automatically accesses the production network.
[0123] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, as Figure 1 shown, which will not be elaborated here.
[0124] Optionally, in another embodiment of the present application, an implementation manner of the batch installation device further includes:
[0125] A storage unit, configured to store the static ISO image to the service path of the Hypertext Transfer Protocol (HTTP).
[0126] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, which will not be elaborated here.
[0127] Optionally, in another embodiment of the present application, an implementation manner of the batch installation device further includes:
[0128] Configuration unit, used to configure the static Internet Protocol, disk array, and system startup items for the target host.
[0129] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, which will not be elaborated here.
[0130] Optionally, in another embodiment of the present application, an implementation manner of the batch installation device further includes:
[0131] Mounting subunit, used to mount the static ISO image to the virtual optical drive of the target host through the installation network where the motherboard management controller of the target host is located.
[0132] For the specific working process of the unit disclosed in the above embodiments of the present application, reference may be made to the corresponding method embodiment content, which will not be elaborated here.
[0133] As can be seen from the above solution, the present application provides a batch installation device: the acquisition unit 301 acquires the feature information of the target host and the installation requirement information of the user; wherein, the feature information at least includes the hardware address of the network card; then, the query unit 302 queries the configuration information of the target host from the host asset information according to the hardware address of the network card; afterwards, the generation unit 303 generates an unattended installation script according to the configuration information of the target host and the installation requirement information of the user; the packaging unit 304 then packages the unattended installation script and the original image of the target host into a static ISO image; finally, the mounting unit 305 mounts the static ISO image to the virtual optical drive of the target host; wherein, the static ISO image transmits data throughout the installation network where the motherboard management controller of the target host is located, and the target host starts automatic installation after starting from the virtual optical drive, and after the installation is completed, it automatically accesses the production network. Thus, the purpose of no longer needing to switch from the installation network to the production network during the batch installation process is achieved, thereby avoiding IP conflicts.
[0134] Another embodiment of the present application provides a server, as Figure 4 shown, including:
[0135] One or more processors 401.
[0136] Storage device 402, on which one or more programs are stored.
[0137] When the one or more programs are executed by the one or more processors 401, the one or more processors 401 are caused to implement the batch installation method described in any one of the above embodiments.
[0138] Another embodiment of the present application provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the batch installation method described in any one of the above embodiments.
[0139] In the above embodiments disclosed in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device and method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0140] In addition, in each embodiment of the present disclosure, the functional modules can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the functions are implemented in the form of software functional modules and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a live broadcast device, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present disclosure. The foregoing storage medium includes various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.
[0141] Those skilled in the art can implement or use this application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application will not be limited to these embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features disclosed herein.< / gateway> < / mask> < / ipaddr> < / gateway> < / mask> < / ipaddr>
Claims
1. A method for batch installation of machines, characterized in that, it is applicable to servers deployed in the machine installation network, and the method includes: Obtain the characteristic information of the target host and the machine installation requirement information of the user; wherein, the characteristic information at least includes the hardware address of the network card; the target host includes multiple network cards, and the motherboard management controller of the target host occupies a network card separately; Query the configuration information of the target host in the host asset information according to the hardware address of the network card; Generate an unattended installation script according to the configuration information of the target host and the machine installation requirement information of the user; Package the unattended installation script and the original image of the target host into a static International Organization for Standardization (ISO) image; Mount the static ISO image to the virtual optical drive of the target host; wherein, the static ISO image transmits data throughout the machine installation network where the motherboard management controller of the target host is located, and the target host starts automatic installation after the virtual optical drive is started, and after the installation is completed, it automatically accesses the production network through the network cards other than the network card occupied by the motherboard management controller.
2. The batch installation method according to claim 1, characterized in that, The generating an unattended installation script according to the configuration information of the target host and the machine installation requirement information of the user includes: Determine the external configuration script corresponding to the hardware model in the configuration information of the target host; Generate an unattended installation script through the external configuration script and the machine installation requirement information of the user.
3. The batch installation method according to claim 1, characterized in that, After packaging the unattended installation script and the original image of the target host into a static ISO image, it further includes: Store the static ISO image under the service path of the Hypertext Transfer Protocol.
4. The batch installation method according to claim 1, characterized in that, After packaging the unattended installation script and the original image of the target host into a static ISO image, it further includes: Configure a static Internet Protocol, disk array, and system startup item for the target host.
5. The batch installation method according to claim 1, characterized in that, The mounting the static ISO image to the virtual optical drive of the target host includes: Mount the static ISO image to the virtual optical drive of the target host through the machine installation network where the motherboard management controller of the target host is located.
6. The batch installation method according to claim 1, characterized in that, The unattended installation script is a kickstart script.
7. A batch installation device, characterized in that, it is applicable to servers deployed in the machine installation network, and the device includes: An obtaining unit, configured to obtain the characteristic information of the target host and the machine installation requirement information of the user; wherein, the characteristic information at least includes the hardware address of the network card; the target host includes multiple network cards, and the motherboard management controller of the target host occupies a network card separately; A query unit, configured to query the configuration information of the target host from the host asset information according to the hardware address of the network card; A generation unit, configured to generate an unattended installation script according to the configuration information of the target host and the installation requirements information of the user; A packaging unit, configured to package the unattended installation script and the original image of the target host into a static International Organization for Standardization (ISO) image; A mounting unit, configured to mount the static ISO image to the virtual optical drive of the target host; wherein, the static ISO image transmits data throughout the installation network where the baseboard management controller of the target host is located, and the target host starts automatic installation after the virtual optical drive is started, and after the installation is completed, automatically accesses the production network through the network cards other than the network card occupied by the baseboard management controller.
8. The batch installation device according to claim 7, wherein, the generation unit includes: a determination unit, configured to determine the external configuration script corresponding to the hardware model in the configuration information of the target host; a generation subunit, configured to generate an unattended installation script through the external configuration script and the installation requirements information of the user.
9. A server, wherein, it includes: one or more processors; a storage device, on which one or more programs are stored; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the batch installation method according to any one of claims 1 to 6.
10. A computer storage medium, wherein, a computer program is stored thereon, and when the computer program is executed by a processor, the batch installation method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and system for batch deployment of customized systems
CN105187252A
Method and system for guiding automatic batch installation by KS
CN111158773A