CN112256288B - Linux system batch installation method, device and medium - Google Patents
Linux system batch installation method, device and medium Download PDFInfo
- Publication number
- CN112256288B CN112256288B CN202011149933.9A CN202011149933A CN112256288B CN 112256288 B CN112256288 B CN 112256288B CN 202011149933 A CN202011149933 A CN 202011149933A CN 112256288 B CN112256288 B CN 112256288B
- Authority
- CN
- China
- Prior art keywords
- service
- installation
- server
- software
- linux
- 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
- 238000009434 installation Methods 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 title claims abstract description 35
- KKIMDKMETPPURN-UHFFFAOYSA-N 1-(3-(trifluoromethyl)phenyl)piperazine Chemical compound FC(F)(F)C1=CC=CC(N2CCNCC2)=C1 KKIMDKMETPPURN-UHFFFAOYSA-N 0.000 claims abstract description 20
- 230000000007 visual effect Effects 0.000 claims abstract description 10
- 238000011900 installation process Methods 0.000 claims description 11
- 230000010354 integration Effects 0.000 claims description 6
- 230000004048 modification Effects 0.000 claims description 5
- 238000012986 modification Methods 0.000 claims description 5
- 238000005192 partition Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 claims description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003068 static effect 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
-
- 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/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
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 Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method, a device and a medium for installing Linux systems in batches, wherein the method comprises the following steps: firstly, resolving a mirror image file by a Linux system; secondly, generating a used kickstart file by using a visual interface; the third step, starting the DHCP service by the PXE server, and carrying out custom development on the DHCP service; fourthly, integrating software containing TFTP service and HTTP service into a PXE service end; and fifthly, starting a PXE server process, running custom-developed DHCP service, TFTP service and HTTP service, and carrying out batch installation on the Linux system in the same local area network of a server to be installed with the Windows computer running the PXE boot software. Through the mode, the method can run a PXE boot-mounted software in the window, and complete the batch installation of the Linux system.
Description
Technical Field
The invention relates to the field of operating system installation, in particular to a method, a device and a medium for installing Linux systems in batches.
Background
At present, when a Linux operating system is installed on a server, the Linux operating system is almost deployed in a PXE boot mode. The client of the PXE boot deployment is a server, and the server includes a DHCP service and a TFTP service, and an NFS service, an HTTP service, or an FTP service for placing software packages. When a server is built, corresponding service software is installed respectively, then ISO of the Linux system is decompressed, a file corresponding to the ISO is placed in a path of the corresponding service software, and then a kickstart configuration file is manually configured for automatic generation when the Kickstart configuration file is installed in batches. For users who do not understand the kickstart configuration process, this configuration process is very cumbersome.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method, a device and a medium for installing Linux systems in batches, which can be compatible with the batch installation of the Linux systems of an X86 and ARM64 architecture server, and can finish the batch installation of the Linux systems by running a PXE boot-installation software in a window.
In order to solve the technical problems, the invention adopts a technical scheme that: the method for installing the Linux systems in batches comprises the following steps:
s100, the Linux system analyzes the mirror image file;
s200, generating a starting configuration file by using a visual interface;
s300, starting a DHCP service by the PXE server, and carrying out custom development on the DHCP service;
s400, integrating software containing TFTP service and HTTP service into a PXE service terminal;
and S500, carrying out system batch installation.
Further, in the step S100, when the Linux system parses the mirror image file, the method includes the following steps:
s101, confirming the type of a Linux operating system, an installation mirror image of the Linux operating system and a server architecture;
s102, analyzing a mirror image file of the Linux operating system by software according to the type of the Linux operating system and a server architecture, placing a software automatic package for installation in the mirror image file in a directory of a TFTP service and an HTTP service, and placing a boot file to be used for installation at a specified position of the software;
s103, analyzing the software group contained in the mirror image file.
Further, in the second step, before the start configuration file is generated, the user configures the system language, the time zone and the time for installing the system, the system partition and the software to be installed, and after the configuration is completed, the start configuration file is generated.
Further, in the step S300, the custom development of the DHCP service includes that after the PXE server opens the DHCP service, the server performs an IP request as a client of the DHCP service, and when the server allocates an IP address to a specific service, the DHCP service records the MAC address of the server and an IP to be allocated, and generates a modification start configuration file for the server.
Further, the modified start-up configuration file is a file obtained by modifying the IP address and the host name in the start-up configuration file.
Further, when the DHCP service is developed in a self-defined manner, after a modified start configuration file is generated, the name of the boot file of the server is named as the IP address and converted into the number after 16 systems, and when the PXE server conducts PXE boot, the boot file named by the number after 16 systems of the IP address is preferentially searched, so that boot configuration is completed.
Further, in the step S500, the performing system batch installation includes the following steps:
s501, starting a PXE installation function;
s502, starting a PXE server process, and running custom-developed DHCP service, TFTP service and HTTP service;
s503, placing the server and the windows computer running the PXE boot software in the same local area network;
and S504, carrying out batch installation on the Linux systems.
A Linux system batch installation device comprises: the system comprises a mirror image file analyzing module, a configuration file generating module, a DHCP service module, an integration service module and an execution module;
the image file analyzing module is used for analyzing the image files, finding out the software automatic package for installation, the guide files and the software groups required for installation in the image files, placing the software automatic package for installation and the guide files required for installation at the specified positions, and analyzing the software groups in the image files;
the configuration file generation module provides a visual interface, configuration options are displayed on the visual interface, a user selects the configuration options and the software group in the image file analysis module, and the configuration file generation module generates an installation process starting configuration file according to the configuration options and the software group selected by the user;
the DHCP service module modifies the installation process starting configuration file according to the MAC address of the server and the IP to be distributed to obtain the installation process modified starting configuration file and converts the name of the guide file of the server into a number after 16 systems of IP addresses;
the integration service module integrates related software of a third party containing TFTP service and HTTP service to a PXE service end;
the execution module runs DHCP service, TFTP service and HTTP service, and a server of the system to be installed and a windows computer running PXE boot software carry out Linux system batch installation in the same local area network.
A computer storage medium for batch installation of Linux systems is characterized in that: the computer software instructions for storing the batch installation method of the Linux system comprise a program for executing the program designed for the batch installation method of the Linux system.
The invention has the beneficial effects that: the invention can be compatible with the batch installation of the Linux systems of the X86 and ARM64 architecture servers, has simple and convenient operation, improves the deployment efficiency, and can realize the configuration of host names, static IP and the like for different servers.
Drawings
FIG. 1 is a flowchart illustrating a batch installation method of Linux systems according to a preferred embodiment of the present invention;
FIG. 2 is a flow chart of the resolution of the Linux system ISO installation image in the present invention;
FIG. 3 is a flow chart of the generation of a Linux installation process configuration file in the present invention;
FIG. 4 is a flow chart of the custom development of DHCP service in the present invention;
FIG. 5 is a structural diagram of a batch installation device of Linux system.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Referring to fig. 1 to 5, an embodiment of the present invention includes:
referring to fig. 1, a batch installation method for Linux systems includes: firstly, resolving a mirror image file by a Linux system; secondly, generating a used kickstart file by using a visual interface; the third step, starting the DHCP service by the PXE server, and carrying out custom development on the DHCP service; fourthly, integrating software containing TFTP service and HTTP service into a PXE service end; and fifthly, starting a PXE server process, running custom-developed DHCP service, TFTP service and HTTP service, and carrying out batch installation on the Linux system in a local area network by a server to be installed with the system and a windows computer running PXE boot software.
In the first step, referring to fig. 2, the Linux system parsing the image file includes first confirming a Linux operating system type (CentOS, reddat, etc.), a Linux operating system installation image, and a server architecture X86 or ARM 64. Then the software analyzes the image file of the Linux operating system according to the compatible Linux operating system type and the server architecture, places the software automatic package used for installation in the image file in the directories of the TFTP service and the HTTP service, places the boot file used for installation at the specified position of the software, and analyzes the software group contained in the image file for the kickstart file configuration.
The kickstart is a start configuration file defining the Linux installation process, such as a time zone to be used in the system, how to partition a driver, or which software packages should be installed, and comprises a command section, a software package section and a script section, wherein the command section is used for configuring the system; the software package section is used for selecting a software package group and a software package to be installed.
Referring to fig. 3, in the second step, before the used kickstart file is generated, the user configures the system language, the time zone and the time of system installation, the system partition and the software to be installed, and after the configuration is completed, the used kickstart file is generated.
In the third step, the step of performing custom development on the DHCP service includes that after the PXE server opens the DHCP service, the server performs an IP request as a client of the DHCP, and when the server confirms that an IP address is allocated to a specific service, the custom DHCP service records the MAC address of the server and the IP to be allocated, and generates a modified kickstart file for the server, where the modified kickstart file is modified based on the kickstart file, and the modified content includes the IP address and the host name, and different servers adopt different IP addresses and host names; by converting the IP address into 16-system digits as the name of the boot file of the server, the boot file named by the 16-system digits in the IP address is preferentially searched when the PXE server conducts PXE boot, and therefore boot configuration is completed.
Among them, DHCP (dynamic host configuration protocol) is a network protocol of a local area network. The method is characterized in that a server controls a range of IP addresses, and a client can automatically obtain the IP address and the subnet mask allocated by the server when logging in the server.
PXE, Pre-boot Execution Environment, is the protocol designed by Intel, it can make the computer start through the network, the protocol is divided into client and server both ends, PXE client is in ROM of the network card, when the computer boots, BIOS calls PXE client into the memory to carry out, and reveal the order menu, after the user chooses, PXE client will place operating system of the far-end and download to the local operation through the network. The TFTP server is a multi-threaded TFTP server that allows any number of client connections to be made simultaneously. It supports tsize, blksize, and interval selection, PXE boot, and can run independently or in a daemon fashion.
Referring to fig. 5, an embodiment of the present invention provides a batch installation apparatus for Linux systems, including: the system comprises a mirror image file analyzing module, a configuration file generating module, a DHCP service module, an integration service module and an execution module;
the image file analyzing module is used for analyzing the image files, finding out the software automatic package for installation, the guide files and the software groups required for installation in the image files, placing the software automatic package for installation and the guide files required for installation at the specified positions, and analyzing the software groups in the image files;
the configuration file generation module provides a visual interface, configuration options are displayed on the visual interface, a user selects the configuration options and the software group in the image file analysis module, and the configuration file generation module generates an installation process starting configuration file according to the configuration options and the software group selected by the user;
the DHCP service module modifies the installation process starting configuration file according to the MAC address of the server and the IP to be allocated, obtains the installation process modification starting configuration file, and converts the name of the guide file of the server, namely the IP address, into a number with a 16-system number;
the integration service module integrates related software of a third party containing TFTP service and HTTP service to a PXE service end;
the execution module runs DHCP service, TFTP service and HTTP service, and a server of the system to be installed and a windows computer running PXE boot software carry out Linux system batch installation in the same local area network.
Based on the inventive concept based on the batch installation method of the Linux system in the foregoing embodiments, an embodiment of the present specification further provides a computer storage medium for batch installation of the Linux system, configured to store computer software instructions for the batch installation method of the Linux system, which includes a program designed for executing the above batch installation method of the Linux system, and when the program is executed by a processor, the program implements the steps of any one of the foregoing methods.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. A batch installation method of Linux systems is characterized by comprising the following steps:
s100, the Linux system analyzes the mirror image file;
s200, generating a starting configuration file by using a visual interface;
s300, starting a DHCP service by the PXE server, and carrying out custom development on the DHCP service; the method comprises the steps that after a PXE server side opens the DHCP service, a server serves as a client side of the DHCP service to carry out an IP request, when the server allocates an IP address to a specified service, the DHCP service records the MAC address of the server and the IP to be allocated, and a modification starting configuration file is generated for the server;
s400, integrating software containing TFTP service and HTTP service into a PXE service terminal;
and S500, carrying out system batch installation.
2. A Linux system batch installation method as defined in claim 1, wherein: in the step S100, when the Linux system analyzes the mirror image file, the method includes the following steps:
s101, confirming the type of a Linux operating system, an installation mirror image of the Linux operating system and a server architecture;
s102, analyzing a mirror image file of the Linux operating system by software according to the type of the Linux operating system and a server architecture, placing a software automatic package for installation in the mirror image file in a directory of a TFTP service and an HTTP service, and placing a boot file to be used for installation at a specified position of the software;
s103, analyzing the software group contained in the mirror image file.
3. The batch installation method of the Linux system as recited in claim 1, wherein: in the step S200, before the start-up configuration file is generated, the user configures the system language, time zone and time, system partition, and software to be installed, and after the configuration is completed, the start-up configuration file is generated.
4. The batch installation method of the Linux system as recited in claim 1, wherein: the modified start configuration file is a file obtained by modifying the IP address and the host name in the start configuration file.
5. The batch installation method of the Linux system as recited in claim 1, wherein: when the DHCP service is subjected to custom development, after a modified start configuration file is generated, the name of a boot file of the server is named as an IP address and is converted into a number after 16 systems, and when the PXE server conducts PXE boot, the boot file named by the number of the IP address 16 systems is searched preferentially, so that boot configuration is completed.
6. The batch installation method of the Linux system as recited in claim 1, wherein: in the step S500, the performing system batch installation includes the following steps:
s501, starting a PXE installation function;
s502, starting a PXE server process, and running custom-developed DHCP service, TFTP service and HTTP service;
s503, placing the server and the windows computer running the PXE boot software in the same local area network;
and S504, carrying out batch installation on the Linux systems.
7. The utility model provides a Linux system batch installation device which characterized in that includes: the system comprises a mirror image file analyzing module, a configuration file generating module, a DHCP service module, an integration service module and an execution module;
the image file analyzing module is used for analyzing the image files, finding out the software automatic package for installation, the guide files and the software groups required for installation in the image files, placing the software automatic package for installation and the guide files required for installation at the specified positions, and analyzing the software groups in the image files;
the configuration file generation module provides a visual interface, configuration options are displayed on the visual interface, a user selects the configuration options and the software group in the image file analysis module, and the configuration file generation module generates an installation process starting configuration file according to the configuration options and the software group selected by the user;
the DHCP service module modifies the installation process starting configuration file according to the MAC address of the server and the IP to be allocated, obtains the installation process modification starting configuration file, and converts the name of the guide file of the server, namely the IP address, into a number with a 16-system number;
the integration service module integrates related software of a third party containing TFTP service and HTTP service to a PXE service end;
the execution module runs DHCP service, TFTP service and HTTP service, and a server of the system to be installed and a windows computer running PXE boot software carry out Linux system batch installation in the same local area network.
8. A computer storage medium for batch installation of Linux systems is characterized in that: the method for batch installation of the Linux system according to any one of claims 1 to 6, comprising storing computer software instructions for executing a program designed for the method for batch installation of the Linux system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011149933.9A CN112256288B (en) | 2020-10-23 | 2020-10-23 | Linux system batch installation method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011149933.9A CN112256288B (en) | 2020-10-23 | 2020-10-23 | Linux system batch installation method, device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112256288A CN112256288A (en) | 2021-01-22 |
CN112256288B true CN112256288B (en) | 2022-09-20 |
Family
ID=74262290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011149933.9A Active CN112256288B (en) | 2020-10-23 | 2020-10-23 | Linux system batch installation method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112256288B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113076113B (en) * | 2021-04-12 | 2024-05-14 | 武汉深之度科技有限公司 | Method, host and system for installing operating system |
CN113094054A (en) * | 2021-04-14 | 2021-07-09 | 深圳忆联信息系统有限公司 | Automatic deployment method and device for multiple Linux systems and computer equipment |
CN113259434A (en) * | 2021-05-13 | 2021-08-13 | 浪潮商用机器有限公司 | Remote operation system installation method, device, equipment and storage medium |
CN113407201A (en) * | 2021-06-24 | 2021-09-17 | 浪潮电子信息产业股份有限公司 | System installation method and device |
CN113672243A (en) * | 2021-07-29 | 2021-11-19 | 深圳市联影高端医疗装备创新研究院 | Linux system installation method, device, system, computer equipment and storage medium |
CN114070841B (en) * | 2021-09-29 | 2023-07-14 | 浪潮软件科技有限公司 | Server filling method, device, equipment and product |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170371683A1 (en) * | 2016-06-22 | 2017-12-28 | HGST Netherlands B.V. | Provisioning the hyper-converged infrastructure bare metal systems from the top of the rack switch |
CN108415712A (en) * | 2018-03-09 | 2018-08-17 | 山东超越数控电子股份有限公司 | A method of based on PXE server batch installation acceptance of the bid kylin operating system |
CN109522028A (en) * | 2018-11-15 | 2019-03-26 | 郑州云海信息技术有限公司 | A kind of installation method and system of operating system |
-
2020
- 2020-10-23 CN CN202011149933.9A patent/CN112256288B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170371683A1 (en) * | 2016-06-22 | 2017-12-28 | HGST Netherlands B.V. | Provisioning the hyper-converged infrastructure bare metal systems from the top of the rack switch |
CN108415712A (en) * | 2018-03-09 | 2018-08-17 | 山东超越数控电子股份有限公司 | A method of based on PXE server batch installation acceptance of the bid kylin operating system |
CN109522028A (en) * | 2018-11-15 | 2019-03-26 | 郑州云海信息技术有限公司 | A kind of installation method and system of operating system |
Also Published As
Publication number | Publication date |
---|---|
CN112256288A (en) | 2021-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112256288B (en) | Linux system batch installation method, device and medium | |
US6810478B1 (en) | System for remote booting of muntliple operating systems using chained bootstrap mechanism in a network | |
JP3759001B2 (en) | How to override a network boot | |
US6487601B1 (en) | Dynamic mac allocation and configuration | |
US6711688B1 (en) | Pre-execution logon (PEL) | |
JP4215373B2 (en) | System, method and recording medium for improving manageability and usability of Java environment | |
CN106874052B (en) | Deployment method and device of application program | |
US8331350B2 (en) | IP telephone auto configuration system and method | |
US20040244008A1 (en) | Method of implementing Linux-based embedded system for mobile communication | |
WO2005055072A1 (en) | System and method for management and installation of operating system images for computers | |
US9672032B2 (en) | Mobile enabled application | |
US6687820B2 (en) | System includes a selection manager for remotely managing the selection of an operating system for a target computer | |
CN112130917A (en) | Remote loading system mirroring method | |
CN109144607A (en) | A kind of large-scale server automatic deployment and configuration method | |
US20040254978A1 (en) | System and method of remotely accessing a computer system to initiate remote mainteneance and management accesses on network computer systems | |
US7631054B2 (en) | Method and system for generating list of operating systems for a target device | |
CN105183529A (en) | Method for refreshing server firmware, target server, source server and system | |
CN111857956A (en) | Virtual machine starting method and equipment | |
CN114138283A (en) | Remote automatic deployment method, device, terminal and storage medium for operating system | |
US20020073201A1 (en) | Method and system for selecting an operating system at user login on a target device | |
US7500238B2 (en) | Method and system for installing a software platform onto a computer system | |
CN110825370B (en) | Mobile terminal application development method, device and system | |
JP2003256213A (en) | Application starting method and system, application starting program, and storage medium stored with application starting program | |
Cisco | Installing ViewRunner on Distributed Machines | |
Cisco | Introduction |
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 |