CN114253609A - Method and system for installing OS (operating system) through network PXE (peripheral component interconnect extensions) based on Feiteng platform - Google Patents

Method and system for installing OS (operating system) through network PXE (peripheral component interconnect extensions) based on Feiteng platform Download PDF

Info

Publication number
CN114253609A
CN114253609A CN202111328645.4A CN202111328645A CN114253609A CN 114253609 A CN114253609 A CN 114253609A CN 202111328645 A CN202111328645 A CN 202111328645A CN 114253609 A CN114253609 A CN 114253609A
Authority
CN
China
Prior art keywords
file
pxe
raid
grub
installing
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.)
Granted
Application number
CN202111328645.4A
Other languages
Chinese (zh)
Other versions
CN114253609B (en
Inventor
徐立华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111328645.4A priority Critical patent/CN114253609B/en
Publication of CN114253609A publication Critical patent/CN114253609A/en
Application granted granted Critical
Publication of CN114253609B publication Critical patent/CN114253609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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 invention provides a method and a system for installing an OS system through a network PXE based on a Feiteng platform, wherein the method and the system finish an automatic RAID1 group on the premise of an invisible system disk, generate an img file for a fixed plate, finally add a corresponding guide item on a guide grub interface of the PXE, achieve the purpose of automatically installing the UOS system through the combination of the three and finally realize the diagnosis of a product. After the method is introduced into a factory environment, the method can be finished by manually obtaining the grub starting guide page on the PXE and selecting the corresponding guide item, and manual instruction input is not needed, so that the labor cost is saved, the efficiency is improved, and the risk is reduced.

Description

Method and system for installing OS (operating system) through network PXE (peripheral component interconnect extensions) based on Feiteng platform
Technical Field
The invention relates to the technical field of server system installation, in particular to a method and a system for installing an OS system through a network PXE based on a Feiteng platform.
Background
The method comprises the steps of firstly installing a UOS system on a machine to be tested, then executing the deployment of diagnostic software on the UOS system, and finally completing the diagnosis before delivery. The predetermined configuration for the Feiteng storage server is to mate with a Droton 9440 or 9460RAID card, on which two SSD system disks are mounted, and require RAID1 (disk mirroring). Since the system disk is mounted on the RAID card, the system disk is not visible in the initial state, and the system disk cannot be found when the OS system is mounted over a network PXE (preboot execution environment, a standard proposed by Intel to boot the system over a network).
The current factory practice is that after entering the PXE installation interface and an error occurs, an operator operates and executes a relevant instruction to complete RAID1, and then restarts and enters the PXE boot to complete the OS system installation. However, this method requires an operator to connect a keyboard and a display to each dut, and manually operate the tester to complete the operation, and it takes 5-7 minutes to perform the operation according to statistics.
Disclosure of Invention
The invention aims to provide a method and a system for installing an OS (operating system) through a network PXE (PCI extensions for instrumentation) based on a Feiteng platform, and aims to solve the problems that in the prior art, time and labor are wasted when the OS is installed through the network PXE, manual instruction input is not needed, labor cost is saved, efficiency is improved, and risks are reduced.
In order to achieve the technical purpose, the invention provides a method for installing an OS system through a network PXE based on a soaring platform, which comprises the following operations:
on the existing UOS operating system host, modifying an init file under a system initrd path, and configuring a demand group RAID according to a RAID card;
generating a customized guide img file according to the modified init file;
modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as a guide file, and finishing the addition of the custom starting item;
and selecting a newly added starting item on a grub starting and guiding page of the PXE to finish the automatic installation of the UOS system.
Preferably, the RAID according to the RAID card configuration requirement group specifically is:
slt for hard disk on RAID controller;
extracting slt0, slt1 corresponding complete enc: slt;
according to slt0, slt1 corresponds to enc: slt group RAID 1.
Preferably, the RAID according to the RAID card configuration requirement group is performed by using a storcli tool.
Preferably, the generating of the customized guidance img file is specifically that the file under the package initrd path is an img format compressed file.
The invention also provides a system for installing the OS system through the network PXE based on the Feiteng platform, which comprises the following steps:
the group RAID module is used for modifying the init file under the initrd path of the system on the existing UOS operating system host, and configuring a demand group RAID according to a RAID card;
the guide file customizing module is used for generating a customized guide img file according to the modified init file;
the system comprises a bootstrap addition module, a bootstrap addition module and a start-up execution module, wherein the bootstrap addition module is used for modifying a grub file started by a system, adding a corresponding menu item on a bootstrap grub interface of a PXE, adding a custom start item, generating a new grub configuration file, designating a newly generated img file as a bootstrap file and finishing the addition of the custom start item;
and the system automatic installation module is used for selecting a newly added starting item on a grub starting and guiding page of the PXE to finish the automatic installation of the UOS system.
Preferably, the operations implemented by the group RAID module include:
slt for hard disk on RAID controller;
extracting slt0, slt1 corresponding complete enc: slt;
according to slt0, slt1 corresponds to enc: slt group RAID 1.
Preferably, the RAID according to the RAID card configuration requirement group is performed by using a storcli tool.
Preferably, the generating of the customized guidance img file is specifically that the file under the package initrd path is an img format compressed file.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
compared with the prior art, the method has the advantages that the automatic RAID1 group is completed on the premise of invisible system disks, img files of the fixed plate are generated, corresponding guide items are added on a guide grub interface of the PXE, the purpose of automatically installing the UOS system is achieved through combination of the three, and finally diagnosis of products is achieved. After the method is introduced into a factory environment, the method can be finished by manually obtaining the grub starting guide page on the PXE and selecting the corresponding guide item, and manual instruction input is not needed, so that the labor cost is saved, the efficiency is improved, and the risk is reduced.
Drawings
Fig. 1 is a flowchart of a method for installing an OS system over a PXE network based on a soaring platform according to an embodiment of the present invention;
fig. 2 is a block diagram of an OS system installed over a network PXE based on a soaring platform according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
A method and a system for installing an OS system over a network PXE based on a soar platform according to an embodiment of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the present invention discloses a method for installing an OS system over a network PXE based on a soaring platform, the method comprising the following operations:
on the existing UOS operating system host, modifying an init file under a system initrd path, and configuring a demand group RAID according to a RAID card;
generating a customized guide img file according to the modified init file;
modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as a guide file, and finishing the addition of the custom starting item;
and selecting a newly added starting item on a grub starting and guiding page of the PXE to finish the automatic installation of the UOS system.
According to the RAID card configuration of the server, the customized initrd.img is manufactured, wherein the initrd is a memory disc initialized by starting a loader boot loader by an OS, a grub boot file is modified and points to the modified initrd.img, a UOS system is finally preinstalled, and a diagnostic program is further deployed in the UOS system to complete the diagnostic work of a tester.
In the embodiment of the invention, the init file in the initrd path of the UOS system is modified from another host or virtual machine with the UOS operating system installed, and the automatic RAID group is completed according to the RAID requirements of the product of the embodiment. The system issues an instruction: storcli64/c0 show | sed-n '/EID: Slt/,/EID ═ p', shows the hard disk list enc: Slt on the RAID controller according to the Storcli tool. The system issues an instruction: slt $ (storcli64/c 0/early/sall show | sed-n '/EID: Slt/,/EID ═/p' | grep-wE ^ 0-9] +: [01] | awk '{ print $1}' | xargs | tr '",'), extract Slt0, Slt1 corresponding complete enc: Slt, issue an instruction: storcli64/c0 add vd r1 drives ═ slt, and slt groups of RAID1 were completed enc corresponding to slt0, slt1 above.
Because the init file of the embodiment of the invention is modified in the steps, the system issues an instruction: finish, | cpio-co | gzip-9> AS13000G5.img, to generate a customized img file.
Modifying a grub file started by a system, adding a corresponding menu item on a guidance grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, and completing the addition of the custom starting item through the following instructions:
Figure BDA0003347872640000051
Figure BDA0003347872640000061
wherein, Run Diags Installll UOS20 Server Sp2-http AS13000G5-C is the name of the guide item of grub, and the guide item is configured with img file UOS20-Server-arm-Sp2/AS13000G5-C.
Before the Feiteng storage Server performs diagnosis and aging, a Run diagnostics Installll UOS20 Server Sp2-http AS13000G5-C starting item is selected on a grub starting guide page of PXE, and then the UOS system can be automatically installed.
According to the embodiment of the invention, the automatic RAID1 group is completed on the premise of invisible system disks, img files for making a plate to be fixed are generated, corresponding guide items are added on a guide grub interface of the PXE, the purpose of automatically installing the UOS system is achieved by combining the three, and finally diagnosis of products is realized. After the method is introduced into a factory environment, the method can be finished by manually obtaining the grub starting guide page on the PXE and selecting the corresponding guide item, and manual instruction input is not needed, so that the labor cost is saved, the efficiency is improved, and the risk is reduced.
As shown in fig. 2, an embodiment of the present invention further discloses a system for installing an OS system based on a soar platform through a network PXE, where the system includes:
the group RAID module is used for modifying the init file under the initrd path of the system on the existing UOS operating system host, and configuring a demand group RAID according to a RAID card;
the guide file customizing module is used for generating a customized guide img file according to the modified init file;
the system comprises a bootstrap addition module, a bootstrap addition module and a start-up execution module, wherein the bootstrap addition module is used for modifying a grub file started by a system, adding a corresponding menu item on a bootstrap grub interface of a PXE, adding a custom start item, generating a new grub configuration file, designating a newly generated img file as a bootstrap file and finishing the addition of the custom start item;
and the system automatic installation module is used for selecting a newly added starting item on a grub starting and guiding page of the PXE to finish the automatic installation of the UOS system.
According to the RAID card configuration of the server, the customized initrd.img is manufactured, wherein the initrd is a memory disc initialized by starting a loader boot loader by an OS, a grub boot file is modified and points to the modified initrd.img, a UOS system is finally preinstalled, and a diagnostic program is further deployed in the UOS system to complete the diagnostic work of a tester.
In the embodiment of the invention, the init file in the initrd path of the UOS system is modified from another host or virtual machine with the UOS operating system installed, and the automatic RAID group is completed according to the RAID requirements of the product of the embodiment. The system issues an instruction: storcli64/c0 show | sed-n '/EID: Slt/,/EID ═ p', shows the hard disk list enc: Slt on the RAID controller according to the Storcli tool. The system issues an instruction: slt $ (storcli64/c 0/early/sall show | sed-n '/EID: Slt/,/EID ═/p' | grep-wE ^ 0-9] +: [01] | awk '{ print $1}' | xargs | tr '",'), extract Slt0, Slt1 corresponding complete enc: Slt, issue an instruction: storcli64/c0 add vd r1 drives ═ slt, and slt groups of RAID1 were completed enc corresponding to slt0, slt1 above.
Because the init file of the embodiment of the invention is modified in the steps, the system issues an instruction: finish, | cpio-co | gzip-9> AS13000G5.img, to generate a customized img file.
Modifying a grub file started by a system, adding a corresponding menu item on a guidance grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, and completing the addition of the custom starting item through the following instructions:
Figure BDA0003347872640000081
wherein, RunDiags Installll UOS20 Server Sp2-http AS13000G5-C is the name of the guide item of grub, and the guide item is configured with img file UOS20-Server-arm-Sp2/AS13000G5-C.
Before the Feiteng storage Server performs diagnosis and aging, a Run diagnostics Installll UOS20 Server Sp2-http AS13000G5-C starting item is selected on a grub starting guide page of PXE, and then the UOS system can be automatically installed.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A method for installing an OS system through a network PXE based on a Feiteng platform is characterized by comprising the following operations:
on the existing UOS operating system host, modifying an init file under a system initrd path, and configuring a demand group RAID according to a RAID card;
generating a customized guide img file according to the modified init file;
modifying a grub file started by a system, adding a corresponding menu item on a guide grub interface of the PXE, adding a custom starting item, generating a new grub configuration file, designating the newly generated img file as a guide file, and finishing the addition of the custom starting item;
and selecting a newly added starting item on a grub starting and guiding page of the PXE to finish the automatic installation of the UOS system.
2. The method for installing the OS system through the PXE based on the FT platform as claimed in claim 1, wherein the RAID group configured according to the RAID card configuration requirement group specifically includes:
slt for hard disk on RAID controller;
extracting slt0, slt1 corresponding complete enc: slt;
according to slt0, slt1 corresponds to enc: slt group RAID 1.
3. The method for installing the OS system over the PXE network based on the FT platform as claimed in claim 2, wherein the RAID is performed using a storcli tool according to the RAID card configuration requirement group RAID.
4. The method for installing the OS system through the PXE based on the soar platform as claimed in claim 1, wherein the generating the customized boot img file is specifically a file under the package initrd path is an img format compressed file.
5. A system for installing an OS system over a network PXE based on a soaring platform, the system comprising:
the group RAID module is used for modifying the init file under the initrd path of the system on the existing UOS operating system host, and configuring a demand group RAID according to a RAID card;
the guide file customizing module is used for generating a customized guide img file according to the modified init file;
the system comprises a bootstrap addition module, a bootstrap addition module and a start-up execution module, wherein the bootstrap addition module is used for modifying a grub file started by a system, adding a corresponding menu item on a bootstrap grub interface of a PXE, adding a custom start item, generating a new grub configuration file, designating a newly generated img file as a bootstrap file and finishing the addition of the custom start item;
and the system automatic installation module is used for selecting a newly added starting item on a grub starting and guiding page of the PXE to finish the automatic installation of the UOS system.
6. The system for installing an OS system over a PXE network based on a soar platform as claimed in claim 5, wherein said group of RAID modules performs operations comprising:
slt for hard disk on RAID controller;
extracting slt0, slt1 corresponding complete enc: slt;
according to slt0, slt1 corresponds to enc: slt group RAID 1.
7. The system for installing the OS system over the PXE network based on the FT platform as claimed in claim 6, wherein said RAID is performed using a storcli tool according to the RAID card configuration requirement group RAID.
8. The system for installing the OS system through the PXE based on the soar platform as claimed in claim 5, wherein the generated customized boot img file is specifically a file in the package initrd path and is an img format compressed file.
CN202111328645.4A 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform Active CN114253609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111328645.4A CN114253609B (en) 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111328645.4A CN114253609B (en) 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform

Publications (2)

Publication Number Publication Date
CN114253609A true CN114253609A (en) 2022-03-29
CN114253609B CN114253609B (en) 2023-07-18

Family

ID=80792430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111328645.4A Active CN114253609B (en) 2021-11-10 2021-11-10 Method and system for installing OS system through network PXE based on Feiteng platform

Country Status (1)

Country Link
CN (1) CN114253609B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514022A (en) * 2013-10-22 2014-01-15 浪潮电子信息产业股份有限公司 RAID card drive integration method under LINUX
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
US10180845B1 (en) * 2015-11-13 2019-01-15 Ivanti, Inc. System and methods for network booting
CN111966384A (en) * 2020-10-20 2020-11-20 腾讯科技(深圳)有限公司 System updating method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514022A (en) * 2013-10-22 2014-01-15 浪潮电子信息产业股份有限公司 RAID card drive integration method under LINUX
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
US10180845B1 (en) * 2015-11-13 2019-01-15 Ivanti, Inc. System and methods for network booting
CN111966384A (en) * 2020-10-20 2020-11-20 腾讯科技(深圳)有限公司 System updating method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114253609B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US8830228B2 (en) Techniques for enabling remote management of servers configured with graphics processors
US9921949B2 (en) Software testing
CN102521105B (en) Output method of power on self test information, virtual machine manager and processor
CN103150188B (en) The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer
CN104615506A (en) Logic control based BIOS (basic input/output system) and BMC (baseboard management controller) backup method
CN103514023A (en) Method and system for off-line and automatically installing software of virtual machine
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
CN104461402B (en) A kind of method for adjusting disk order under Linux system between multi-controller
CN104778105A (en) Method for rapidly testing compatibility of server and RHEL (red hat enterprise software language) based on virtual machine
CN111459606A (en) Method for quickly creating virtual machine under virtualization and server
CN104572225A (en) Novel method for testing online updating stability of BIOS
CN112199273A (en) Virtual machine pressure/performance testing method and system
KR20110120187A (en) System and method for customizing a scsi error response received from a scsi target in a storage network environment
CN113377445B (en) Method and device for starting multiple operating systems from online disk
CN105389190A (en) Operating system starting method, apparatus and system
CN101281485B (en) Computer testing method without hard disc
CN110837035A (en) Software and hardware testing system and method for air conditioning system
CN114253609A (en) Method and system for installing OS (operating system) through network PXE (peripheral component interconnect extensions) based on Feiteng platform
CN110633131B (en) Method, device, equipment and system for virtualizing firmware
CN104182271A (en) Virtualization implementation method based on SW processor
CN101582038A (en) Installation method of operating system for test
CN108376087A (en) Startup control method, device and the server of a kind of electronic equipment
CN103632090A (en) Method for operating virtual firewall on virtual machine
CN109783031B (en) Method, device, terminal and storage medium for checking drive letter and slot number of RAID card
CN106502847B (en) Server diagnosis method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant