CN115167883A - Operating system installation method, device, equipment and storage medium - Google Patents

Operating system installation method, device, equipment and storage medium Download PDF

Info

Publication number
CN115167883A
CN115167883A CN202210905820.XA CN202210905820A CN115167883A CN 115167883 A CN115167883 A CN 115167883A CN 202210905820 A CN202210905820 A CN 202210905820A CN 115167883 A CN115167883 A CN 115167883A
Authority
CN
China
Prior art keywords
operating system
installation
network card
abnormal
arm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210905820.XA
Other languages
Chinese (zh)
Inventor
张国奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202210905820.XA priority Critical patent/CN115167883A/en
Publication of CN115167883A publication Critical patent/CN115167883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/4416Network booting; Remote initial program loading [RIPL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an operating system installation method, a device, equipment and a storage medium, which are applied to a basic input and output system and relate to the technical field of ARM servers, and the method comprises the following steps: establishing a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server; monitoring the installation process of the operation system for guiding and installing the ARM server by the pre-starting execution environment, and judging whether the installation process is abnormal or not; and when the installation process is abnormal, determining a target network card in the basic input and output system, and guiding the pre-starting execution environment by using the target network card so as to install the operating system of the ARM server. Through the technical scheme of this application, can ensure that ARM server keeps high-efficient stable running state when using virtualization operation, the development of helping hand homemade ARM CPU platform server service and homemade cause.

Description

Operating system installation method, device, equipment and storage medium
Technical Field
The present invention relates to the technical field of ARM servers, and in particular, to a method, an apparatus, a device, and a storage medium for installing an operating system.
Background
The server is used as one of important carriers for running of a network background, can be used as a carrier of a plurality of network services and equipment besides maintaining running and storing data of the network, and therefore can be considered as a basic carrier of IT (Internet Technology) information services. For the presence of each server corresponding to a large PC (Personal Computer), a system can be installed, and the installation system is usually installed by means of a PXE (Preboot execution Environment) network Environment.
For ARM servers such as FT2000+, etc., due to the limitation of the ARM architecture, an ARM series OS (Operating System) needs to be installed, however, some unexpected problem may occur in the aspect of the ecological coordination of the ARM series OS System to the FT2000+, for example, when a domestic System is installed by using an onboard network card or an external network card through a PXE network, an abnormality occurs, the System can not be canned, and only a grub interface of the System can be entered, so that a firmware BIOS needs to make some corresponding coordination operations to cope with some emergency situations.
In conclusion, how to solve the problem that how to ensure that an ARM server keeps a high-efficiency stable running state and avoid entering a GRUB interface when a PXE network environment installation system is used is a problem to be solved at present.
Disclosure of Invention
In view of this, the present invention provides an operating system installation method, apparatus, device and storage medium, which can ensure that an ARM server maintains an efficient and stable running state and avoid entering a GRUB interface when a PXE network environment is used to install a system. The specific scheme is as follows:
in a first aspect, the present application discloses an operating system installation method, applied to a basic input output system, including:
establishing a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server;
monitoring the installation process of the operation system of the ARM server guided and installed by the pre-starting execution environment, and judging whether the installation process is abnormal or not;
and when the installation process is abnormal, determining a target network card in the basic input and output system, and guiding the pre-boot execution environment by using the target network card so as to install the operating system of the ARM server.
Optionally, the determining whether the installation process is abnormal includes:
judging whether a first abnormal scene of abnormal network installation environment occurs in the installation process;
or judging whether a second abnormal scene which cannot guide the installation of the operating system of the ARM server occurs in the installation process.
Optionally, the determining whether the first abnormal scenario in which the network installation environment is abnormal occurs in the installation process includes:
when the preboot execution environment is used for guiding and installing the operation system of the ARM server, if the drive of an external insertion network card is monitored to be abnormal, the first abnormal scene in the installation process is judged;
correspondingly, the determining whether a second abnormal scene that the operating system of the ARM server cannot be booted to be installed occurs in the installation process includes:
and if the configuration file corresponding to the external network card is larger than a preset threshold value or the external network card is incompatible with the ARM server, judging that the second abnormal scene occurs in the installation process.
Optionally, when the installation process is abnormal, determining the target network card in the basic input/output system includes:
when the first abnormal scene of abnormal network installation environment occurs in the installation process, matching the model of the network card which is pre-configured in the basic input and output system with the model of the extrapolation network card;
and determining a network card in the basic input and output system, which is matched with the model of the extrapolation network card, as a target network card in the basic input and output system.
Optionally, when the installation process is abnormal, determining the target network card in the basic input/output system includes:
and when a second abnormal scene that the operating system of the ARM server cannot be guided to be installed occurs in the installation process, entering a Grub interface, and installing the operating system of the ARM server by using a preset temporary configuration file.
Optionally, after the operating system of the ARM server is installed by using the preset temporary configuration file, the method further includes:
and replacing the configuration file corresponding to the Grub interface with the configuration file corresponding to the target network card.
Optionally, the operating system installation method further includes:
and if the second abnormal scene which cannot guide the installation of the operating system of the ARM server does not appear in the installation process, reestablishing corresponding pre-starting execution environments in the process of electrifying and running other ARM servers so as to guide the installation of the operating systems of the other ARM servers by using the current pre-starting execution environment.
In a second aspect, the present application discloses an operating system installation apparatus, which is applied to a basic input/output system, and includes:
the pre-starting execution environment building module is used for building a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server;
the guiding installation process monitoring module is used for monitoring the installation process of the operation system of the ARM server guided and installed by the pre-starting execution environment and judging whether the installation process is abnormal or not;
and the target network card guiding and installing module is used for determining a target network card in the basic input and output system when the installation process is abnormal, and guiding the pre-starting execution environment by using the target network card so as to install the operating system of the ARM server.
In a third aspect, the present application discloses an electronic device comprising a processor and a memory; wherein the memory is used for storing a computer program which is loaded and executed by the processor to implement the operating system installation method as described above.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the operating system installation method as previously described.
The method is applied to a basic input and output system, and comprises the steps of firstly, building a pre-starting execution environment in the process of power-on operation of a current ARM server so as to use the pre-starting execution environment to guide and install an operating system of the ARM server; then, monitoring the installation process of the operation system for guiding and installing the ARM server by the pre-starting execution environment, and judging whether the installation process is abnormal or not; and when the installation process is abnormal, determining a target network card in the basic input and output system, and guiding the pre-starting execution environment by using the target network card so as to install the operating system of the ARM server. Therefore, in the installation process of the operating system of the ARM server series, due to the limitation of the ARM architecture, the basic input and output system can perform corresponding ecological coordination operation on the operating system of the ARM server series to cope with the emergency situation, the process of booting and installing the operating system by the pre-boot execution environment is monitored through the basic input and output system, and the situation that the installation process is abnormal is solved, the pre-boot execution environment is booted to enter the mode of installing the operating system by utilizing the drive of the target network card of the basic input and output system, the situation that when the PXE network environment installation system is used, PXE installation cannot be normally performed due to the fact that the network card drive is loaded abnormally, only a grub interface can be entered is solved, and the problem that the system is entered later is solved. In addition, the basic input and output system installs a drive of a network card which can be used on an ARM server platform for the operating system, so that the server can normally run after the system is installed, and the ARM server is ensured to keep a high-efficiency stable running state when the ARM server uses virtualization operation through a high-efficiency control mechanism of the basic input and output system, so that the development of domestic ARM CPU platform server service and domestic industry is assisted.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of an operating system installation method disclosed herein;
FIG. 2 is a schematic diagram of an operating system installation method disclosed herein;
FIG. 3 is a flowchart of a particular operating system installation method disclosed herein;
FIG. 4 is a schematic structural diagram of an operating system installation apparatus disclosed in the present application;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
For ARM servers such as FT2000+, etc., due to the limitation of ARM architecture, ARM series OS needs to be installed, however, some unexpected problem situations may occur in the aspect of the eco-coordination of the ARM series OS system to FT2000+, for example, when a domestic system is installed by using an onboard network card or an external network card through a PXE network, the system cannot be canned, and only a grub interface of the system can be entered, so that some corresponding coordination operations need to be made by firmware BIOS to deal with some sudden situations.
Therefore, the operating system installation scheme is provided, and the problem that when a PXE network environment installation system is used, an ARM server keeps a high-efficiency stable running state and is prevented from entering a GRUB interface is solved.
The embodiment of the invention discloses an operating system installation method, which is applied to a basic input and output system and comprises the following steps:
step S11: and constructing a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server.
In the embodiment of the application, for ARM servers such as FT2000+, an ARM series OS system needs to be installed due to the limitation of the ARM architecture, and the system is installed by means of a network environment of PXE. Therefore, taking the FT2000+ server as an example, when the FT2000+ server is normally powered on and runs, the pre-boot execution environment (PXE environment) is built to start the automatic canning system, and the terminal operating system in the ARM server is booted through the pre-boot execution environment (PXE environment).
Step S12: and monitoring the installation process of the operation system of the ARM server guided and installed by the pre-starting execution environment, and judging whether the installation process is abnormal or not.
In the embodiment of the present application, a firmware BIOS (Basic Input Output System ) monitors a process of booting and installing an operating System in a pre-boot execution environment (PXE environment), and determines whether an exception occurs in a process of booting and installing the PXE.
In a specific implementation manner, the occurrence of the exception in the PXE boot installation process is reflected in the exception of the network installation environment, and a scene in which the exception occurs in the network installation environment is taken as a first exception scene. It can be understood that, if the drive of the extrapolated network card is abnormal, it is considered to be abnormal in the PXE network installation environment. The firmware BIOS monitors that the phenomenon is a card in the first step, i.e., the first step of the PXE boot occurs in a boot environment where the card cannot be booted into the add-in network card.
In another specific implementation, when the PXE network environment is not abnormal, the pre-boot execution environment starts to boot and install the operating system, and in this process, an abnormality occurs in a case where the normal boot cannot enter the installation system, that is, the operating system of the ARM server cannot be booted and installed in the boot installation process, and at this time, a scene in which the network installation environment is abnormal is taken as a second abnormal scene. It should be noted that, if the size of the configuration file corresponding to the external network card under the operating system is larger than the preset threshold, that is, the network card drive efi (Extensible Firmware Interface) file is too large or is incompatible with the ARM platform of the ARM server, it is considered that an exception that the operating system of the ARM server cannot be booted and installed occurs in the installation process at this time.
Step S13: and when the installation process is abnormal, determining a target network card in the basic input and output system, and guiding the pre-boot execution environment by using the target network card so as to install the operating system of the ARM server.
In a specific embodiment, when the first abnormal scene of the network installation environment abnormality occurs in the installation process, the network card driver loading abnormality occurs, and the firmware BIOS provides the network card driver to support the normal operation of the network card on the network platform of the FT2000+ or other ARM servers. Specifically, the model of a network card pre-configured in the basic input/output system is matched with the model of the extrapolation network card; and determining a network card in the basic input and output system, which is matched with the model of the extrapolation network card, as a target network card in the basic input and output system. And guiding the pre-boot execution environment by using the target network card so as to install the operating system of the ARM server.
It should be noted that the firmware BIOS has network cards of various models, and matches the model of the used network card with the model of the network card of the basic input/output system itself to a usable network card driver. When the model of the network card is matched, the manufacturer ID (Identity) of the network card and/or the ID carried by the device itself may be matched, which is not specifically limited herein. Further, the basic input/output system (firmware BIOS) is driven by the BIOS of the basic input/output system, namely, the target network card is used for inducing the PXE environment to enter the mode of the installation system, so that a network card of a foreign manufacturer is not needed, the situation that ARM platforms of ARM servers such as FT2000+ are incompatible and cannot provide ARM driving environments is avoided, and the development of domestic ARM CPU platform server service and domestic industry is assisted.
In another specific embodiment, when a second abnormal scene that the operating system of the ARM server cannot be booted is generated in the installation process, due to the fact that a network card driver is used for loading an abnormal state, the current efi file of the network card driver is too large or incompatible with a platform, so that the PXE installation cannot be normally performed, and only a Grub interface can be entered, at this time, because an abnormal BIOS is generated in the efi configuration file provided by the operating system, a preset temporary configuration file is used for forcibly replacing the configuration file provided by the operating system, and the operating system of the ARM server is booted and installed continuously.
Further, since the operating system provides the boot file for installation, in order to enable the system to normally enter the next boot, after the operating system of the ARM server is installed by using the preset temporary configuration file, the firmware BIOS needs to replace the configuration file of the network card having a problem, for example, the configuration file corresponding to the target network card may be replaced, or the configuration file of the network card having a problem may be updated, so as to ensure configuration compatibility of the system and the platform. Therefore, the basic input and output system is used for assisting in guiding by utilizing the network card drive of the basic input and output system, the platform can use the drive of the network card for installing the operating system, the system can be normally installed, the problem that the system cannot be installed due to the fact that the system enters a grub interface later is avoided, and meanwhile the problem that the system enters the system later is avoided.
The method is applied to a basic input and output system, and comprises the steps of firstly, building a pre-starting execution environment in the process of power-on operation of a current ARM server so as to use the pre-starting execution environment to guide and install an operating system of the ARM server; then, monitoring the installation process of the operation system for guiding and installing the ARM server by the pre-starting execution environment, and judging whether the installation process is abnormal or not; and when the installation process is abnormal, determining a target network card in the basic input and output system, and guiding the pre-starting execution environment by using the target network card so as to install the operating system of the ARM server. Therefore, in the installation process of the operating system of the ARM server series, due to the limitation of the ARM architecture, the basic input and output system can perform corresponding ecological coordination operation on the operating system of the ARM server series to cope with the emergency situation, the process of booting and installing the operating system by the pre-boot execution environment is monitored through the basic input and output system, and the situation that the installation process is abnormal is solved, the pre-boot execution environment is booted to enter the mode of installing the operating system by utilizing the drive of the target network card of the basic input and output system, the situation that when the PXE network environment installation system is used, PXE installation cannot be normally performed due to the fact that the network card drive is loaded abnormally, only a grub interface can be entered is solved, and the problem that the system is entered later is solved. In addition, the basic input and output system installs a drive of a network card which can be used on an ARM server platform for the operating system, so that the server can normally run after the system is installed, and the ARM server is ensured to keep a high-efficiency stable running state when the ARM server uses virtualization operation through a high-efficiency control mechanism of the basic input and output system, so that the development of domestic ARM CPU platform server service and domestic industry is assisted.
Exemplarily, as shown in fig. 2, a flowchart of a method to which the embodiments of the present application are applied is shown. Firstly, a server of FT2000+ is normally electrified and started to operate; and the host side of the server performs related virtualization operations, such as establishing a virtual machine, a cloud desktop and the like. Then, a PXE environment is set up on an ARM server to start an automatic canning system; in the process, the firmware BIOS monitors the process of the PXE boot installation system, monitors the problem that the PXE network installation environment is abnormal or the boot installation cannot be carried out, and judges whether the installation process is abnormal or not; if the PXE network installation environment is abnormal, the firmware BIOS matches the usable network card drive by means of matching of the network card drive and the type of the used network card, and the firmware BIOS utilizes the BIOS network card drive to induce the PXE environment to enter the mode of the installation system; after the boot enters a PXE network environment, if the boot cannot enter an installation system normally in the boot process, judging whether the situation that the boot enters a grub interface is abnormal or not; and if the exception occurs, the firmware BIOS utilizes the matched proper network card efi configuration file to guide the system to install. In addition, because the OS provides the efi configuration file, the abnormal BIOS occurs, and the temporary configuration file is used for forcibly replacing the configuration file provided by the OS at the moment, so that the installation system is continuously booted. When the operating system is installed in a large-scale network PXE environment, if the abnormity that the operating system of the ARM server cannot be installed in a booting and installing process does not occur, the corresponding pre-boot execution environment is reestablished in the process that other ARM servers are powered on to run, so that the operating systems of the other ARM servers are installed in a booting and installing mode through the current pre-boot execution environment.
The embodiment of the application discloses a specific operating system installation method, which is shown in fig. 3 and is applied to a basic input and output system, and the method comprises the following steps:
step S21: and constructing a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server.
In the embodiment of the application, a pre-starting execution environment can be established in the process of electrifying and running the current ARM server, such as an FT2000+ server, and the operating system of the ARM server is guided and installed by utilizing the pre-starting execution environment.
Step S22: judging whether a first abnormal scene of abnormal network installation environment occurs in the installation process; or judging whether a second abnormal scene which cannot guide the installation of the operating system of the ARM server occurs in the installation process.
In the embodiment of the application, when the operating system of the ARM server is booted and installed by using the pre-boot execution environment, the BIOS of the server firmware is needed to monitor the installation process of the PXE, and the problems that when the PXE network environment installation system is used, due to the fact that a network card is used for driving and loading the BIOS is abnormal, the PXE installation cannot be normally carried out, only a grub interface can be accessed, and troubles are caused to the large-scale use of the network PXE environment installation system are mainly solved.
In the embodiment of the application, whether a first abnormal scene of abnormal network installation environment occurs in the installation process is judged; or, judging whether a second abnormal scene that the operating system of the ARM server cannot be booted and installed in the installation process occurs can solve the problems that a network card driver under the OS is loaded abnormally, or after the operating system is booted and installed, the network card driver under the system is loaded abnormally, or the size of the driver provided under the OS is not matched with the hardware design of a CPU platform of the server. If the network card drive loading is abnormal, the firmware BIOS provides the network card drive to support the normal operation of the network card on the FT2000+ network platform; if the network card drive efi file under the OS is too large or incompatible with the platform, the BIOS is required to be recognized when the BIOS is installed and guided to enter the network card drive of the OS, the BIOS is used for guiding to enter a system capable of being normally installed by utilizing the drive help of the BIOS, the situation that the system cannot be installed due to the fact that a grub interface is entered is avoided, meanwhile, the problem that the system enters the system later is avoided, the firmware BIOS needs to drive the network card for the OS installation platform, and the server can normally run after the system is installed is guaranteed.
Step S23: when the first abnormal scene of abnormal network installation environment occurs in the installation process, matching the model of the network card which is pre-configured in the basic input and output system with the model of the extrapolated network card; and determining a network card in the basic input and output system, which is matched with the model of the extrapolation network card, as a target network card in the basic input and output system.
In the embodiment of the application, the problem that the PXE network installation environment is abnormal or the boot installation cannot be carried out is monitored, if the drive of the externally-inserted network card is abnormal, the firmware BIOS monitors that the phenomenon is blocked in the first step, namely the BIOS cannot boot into the boot environment of the externally-inserted network card in the first step; at this time, the firmware BIOS needs to match the usable network card driver by means of matching of the own network card driver and the model of the used network card, and the firmware BIOS uses the own BIOS driver to induce the PXE environment to enter the mode of installing the system.
Step S24: and when a second abnormal scene that the operating system of the ARM server cannot be guided to be installed occurs in the installation process, entering a Grub interface, and installing the operating system of the ARM server by using a preset temporary configuration file.
In the embodiment of the application, the installation environment of the PXE is not abnormal, and the PXE can be booted normally, but after the PXE is booted into the network environment, the PXE cannot enter the installation system by normal boot, and finally the installation system can enter the grub interface, namely the canning system cannot be booted normally. The main problem is that because the efi file and the size of the boot OS system installation system are incompatible with the FT2000+ arm platform, the same problem can occur to other platforms, and the system cannot be normally installed. At this time, the BIOS monitors abnormal judgment of boot entry grub, if an abnormality occurs, the firmware BIOS needs to boot the system installation by using the matching appropriate network card efi configuration file, and at this time, because the efi configuration file provided by the OS has the abnormal BIOS, the configuration file provided by the OS is forcibly replaced by using the preset temporary configuration file, so as to continue booting the installation system. In addition, because the problem occurs when the OS provides the installation boot file, the firmware BIOS needs to replace the network card configuration file having the problem in order to normally enter the system when the system is started next time, thereby ensuring the configuration compatibility of the system and the platform.
The scheme of the embodiment is applied to a basic input and output system, and the pre-starting execution environment is established in the process of the current ARM server power-on operation, so that the operating system of the ARM server is guided and installed by using the pre-starting execution environment. Judging whether a first abnormal scene of abnormal network installation environment occurs in the installation process; or judging whether a second abnormal scene which cannot guide the installation of the operating system of the ARM server occurs in the installation process; when the first abnormal scene of abnormal network installation environment occurs in the installation process, matching the model of the network card which is pre-configured in the basic input and output system with the model of the extrapolated network card; and determining a network card in the basic input and output system, which is matched with the model of the extrapolation network card, as a target network card in the basic input and output system. And when a second abnormal scene that the operating system of the ARM server cannot be guided to be installed occurs in the installation process, entering a Grub interface, and installing the operating system of the ARM server by using a preset temporary configuration file. Therefore, the application is applied to the basic input and output system, because the basic input and output system can perform corresponding ecological coordination operation on the operation system of the ARM server series due to the limitation of the ARM architecture in the installation process of the operation system of the ARM server series, the process of guiding the installation of the operation system by the preboot execution environment through the basic input and output system is monitored, and the situation that the installation process is abnormal is solved by using the drive of the target network card of the basic input and output system to guide the preboot execution environment to enter the mode of installing the operation system. In addition, the basic input and output system installs a drive of a network card which can be used on an ARM server platform for the operating system, so that the server can normally run after the system is installed, and the ARM server is ensured to keep a high-efficiency stable running state when the ARM server uses virtualization operation through a high-efficiency control mechanism of the basic input and output system, so that the development of domestic ARM CPU platform server service and domestic industry is assisted.
Correspondingly, an embodiment of the present application further discloses an operating system installation apparatus, which is applied to a basic input/output system, and as shown in fig. 4, the apparatus includes:
the pre-starting execution environment building module 11 is used for building a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server;
a boot installation process monitoring module 12, configured to monitor an installation process of the operating system of the ARM server booted and installed in the pre-boot execution environment, and determine whether the installation process is abnormal;
and a target network card boot installation module 13, configured to determine a target network card in the basic input/output system when the installation process is abnormal, and boot the pre-boot execution environment by using the target network card, so as to install the operating system of the ARM server.
Therefore, the scheme of the embodiment is applied to a basic input and output system, and firstly, a pre-starting execution environment is established in the process of electrifying and running the current ARM server, so that the pre-starting execution environment is used for guiding and installing the operating system of the ARM server; then, monitoring the installation process of the operation system for guiding and installing the ARM server by the pre-starting execution environment, and judging whether the installation process is abnormal or not; and when the installation process is abnormal, determining a target network card in the basic input and output system, and guiding the pre-starting execution environment by using the target network card so as to install the operating system of the ARM server. Therefore, in the installation process of the operating system of the ARM server series, due to the limitation of the ARM architecture, the basic input and output system can perform corresponding ecological coordination operation on the operating system of the ARM server series to cope with the emergency situation, the process of booting and installing the operating system by the pre-boot execution environment is monitored through the basic input and output system, and the situation that the installation process is abnormal is solved, the pre-boot execution environment is booted to enter the mode of installing the operating system by utilizing the drive of the target network card of the basic input and output system, the situation that when the PXE network environment installation system is used, PXE installation cannot be normally performed due to the fact that the network card drive is loaded abnormally, only a grub interface can be entered is solved, and the problem that the system is entered later is solved. In addition, the basic input and output system installs a drive of a network card which can be used on an ARM server platform for the operating system, so that the server can normally run after the system is installed, and the ARM server is ensured to keep a high-efficiency stable running state when the ARM server uses virtualization operation through a high-efficiency control mechanism of the basic input and output system, so that the development of domestic ARM CPU platform server service and domestic industry is assisted.
In some embodiments, the process monitoring module 12 includes:
the first abnormal scene judging module is used for judging whether a first abnormal scene with abnormal network installation environment occurs in the installation process;
and the second abnormal scene judging module is used for judging whether a second abnormal scene which can not guide the installation of the operating system of the ARM server appears in the installation process.
In some specific embodiments, the first abnormal situation determination module includes:
and the first abnormal scene judging unit is used for judging that the first abnormal scene occurs in the installation process when the external network card drive is monitored to be abnormal when the pre-starting execution environment is used for guiding and installing the operating system of the ARM server.
Correspondingly, the second abnormal scene determining module includes:
and the second abnormal scene judging unit is used for judging that the second abnormal scene occurs in the installation process if the configuration file corresponding to the external plugging network card is larger than a preset threshold value or the external plugging network card is incompatible with the ARM server.
In some specific embodiments, the target network card boot installation module 13 includes:
the network card matching module is used for matching the model of the network card which is pre-configured in the basic input and output system with the model of the externally-inserted network card when the first abnormal scene of abnormal network installation environment occurs in the installation process;
and the target network card determining module is used for determining the network card matched with the model of the extrapolated network card in the basic input and output system as the target network card in the basic input and output system.
In some specific embodiments, the target network card boot installation module 13 includes:
and the forced guide installation module is used for entering a Grub interface and installing the operating system of the ARM server by using a preset temporary configuration file when a second abnormal scene that the operating system of the ARM server cannot be guided and installed occurs in the installation process.
In some specific embodiments, the target network card boot installation module 13 is further configured to: and after the operation system of the ARM server is installed by using a preset temporary configuration file, replacing the configuration file corresponding to the Grub interface with the configuration file corresponding to the target network card.
In some specific embodiments, the operating system installation apparatus is further configured to reestablish a corresponding pre-boot execution environment in the process of powering on and running other ARM servers if the second abnormal scenario that cannot be used for booting the operating system installed in the ARM server does not occur in the installation process, so as to boot the operating system of the other ARM server by using the current pre-boot execution environment.
Further, an electronic device is disclosed in the embodiments of the present application, and fig. 5 is a block diagram of an electronic device 20 according to an exemplary embodiment, which should not be construed as limiting the scope of the application.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the operating system installation method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may specifically be an ARM server.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the memory 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or the like, the resources stored thereon may include an operating system 221, a computer program 222, data 223, and the like, and the data 223 may include various data. The storage means may be transient storage or permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, netware, unix, linux, or the like. The computer programs 222 may further include computer programs that can be used to perform other specific tasks in addition to the computer programs that can be used to perform the operating system installation method by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, embodiments of the present application disclose a computer-readable storage medium, where the computer-readable storage medium includes a Random Access Memory (RAM), a Memory, a Read-Only Memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk, or an optical disk or any other form of storage medium known in the art. Wherein the computer program, when executed by a processor, implements the aforementioned operating system installation method. For the specific steps of the method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of an operating system installation or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The operating system installation method, apparatus, device and storage medium provided by the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An operating system installation method applied to a basic input output system includes:
establishing a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server;
monitoring the installation process of the operation system for guiding and installing the ARM server by the pre-starting execution environment, and judging whether the installation process is abnormal or not;
and when the installation process is abnormal, determining a target network card in the basic input and output system, and guiding the pre-starting execution environment by using the target network card so as to install the operating system of the ARM server.
2. The operating system installation method according to claim 1, wherein the determining whether the installation process is abnormal includes:
judging whether a first abnormal scene of abnormal network installation environment occurs in the installation process;
or judging whether a second abnormal scene which cannot guide the installation of the operating system of the ARM server occurs in the installation process.
3. The operating system installation method according to claim 2, wherein said determining whether the first exception scenario of the network installation environment exception occurs in the installation process comprises:
when the preboot execution environment is used for guiding and installing the operation system of the ARM server, if the drive of an external insertion network card is monitored to be abnormal, the first abnormal scene in the installation process is judged;
correspondingly, the determining whether a second abnormal scenario that the operating system of the ARM server cannot be booted and installed occurs in the installation process includes:
and if the configuration file corresponding to the external network card is larger than a preset threshold value or the external network card is incompatible with the ARM server, judging that the second abnormal scene occurs in the installation process.
4. The operating system installation method according to claim 3, wherein when the installation process is abnormal, determining a target network card in the basic input output system comprises:
when the first abnormal scene of abnormal network installation environment occurs in the installation process, matching the model of the network card which is pre-configured in the basic input and output system with the model of the extrapolation network card;
and determining a network card in the basic input and output system, which is matched with the model of the extrapolation network card, as a target network card in the basic input and output system.
5. The operating system installation method according to claim 2, wherein when the installation process is abnormal, determining a target network card in the basic input output system comprises:
and when a second abnormal scene that the operating system of the ARM server cannot be guided to be installed occurs in the installation process, entering a Grub interface, and installing the operating system of the ARM server by using a preset temporary configuration file.
6. The operating system installation method of claim 5, wherein after installing the operating system of the ARM server using the preset temporary configuration file, the method further comprises:
and replacing the configuration file corresponding to the Grub interface with the configuration file corresponding to the target network card.
7. The operating system installation method according to any one of claims 2 to 6, further comprising:
and if the second abnormal scene which cannot guide the installation of the operating system of the ARM server does not appear in the installation process, reestablishing corresponding pre-starting execution environments in the process of electrifying and running other ARM servers so as to guide the installation of the operating systems of the other ARM servers by using the current pre-starting execution environment.
8. An operating system installation device, applied to a basic input output system, comprising:
the pre-starting execution environment building module is used for building a pre-starting execution environment in the process of electrifying and running the current ARM server so as to use the pre-starting execution environment to guide and install the operating system of the ARM server;
the guiding installation process monitoring module is used for monitoring the installation process of the operation system of the ARM server guided and installed by the pre-starting execution environment and judging whether the installation process is abnormal or not;
and the target network card guiding and installing module is used for determining the target network card in the basic input and output system when the installation process is abnormal, and guiding the pre-starting execution environment by using the target network card so as to install the operating system of the ARM server.
9. An electronic device, comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the operating system installation method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the operating system installation method of any of claims 1 to 7.
CN202210905820.XA 2022-07-29 2022-07-29 Operating system installation method, device, equipment and storage medium Pending CN115167883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210905820.XA CN115167883A (en) 2022-07-29 2022-07-29 Operating system installation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210905820.XA CN115167883A (en) 2022-07-29 2022-07-29 Operating system installation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115167883A true CN115167883A (en) 2022-10-11

Family

ID=83476573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210905820.XA Pending CN115167883A (en) 2022-07-29 2022-07-29 Operating system installation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115167883A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562900A (en) * 2022-12-06 2023-01-03 苏州浪潮智能科技有限公司 AMD server system installation power-off processing method, device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562900A (en) * 2022-12-06 2023-01-03 苏州浪潮智能科技有限公司 AMD server system installation power-off processing method, device, equipment and medium
CN115562900B (en) * 2022-12-06 2023-03-14 苏州浪潮智能科技有限公司 AMD server system installation power-off processing method, device, equipment and medium
WO2024119787A1 (en) * 2022-12-06 2024-06-13 苏州元脑智能科技有限公司 Method and apparatus for amd server system installation power-off processing, device and medium

Similar Documents

Publication Publication Date Title
CN101989212B (en) Method and device for providing virtual machine management program for starting blade server
EP3063620B1 (en) Selective power management for pre-boot firmware updates
US7895428B2 (en) Applying firmware updates to servers in a data center
CN102375764B (en) Method and system for managing deployment failure in software deployment
US8499295B2 (en) Microcontroller firmware running from RAM and applications of the same
US7293169B1 (en) Methods and systems for remotely updating the firmware of multiple computers over a distributed network
US20060020845A1 (en) Unattended BIOS recovery
US8171276B2 (en) Minimal startup mode for performing multiple-reboot configuration
US7721153B2 (en) System, method and program product for recovering from a failure
CN103324495A (en) Method and system for data center server boot management
US12001285B2 (en) System booting method and apparatus, node device, and computer-readable storage medium
CN112463222A (en) Data interaction method, device and equipment between server BIOS and BMC
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN115167883A (en) Operating system installation method, device, equipment and storage medium
CN111367722B (en) Virtual machine backup method, device and equipment and readable storage medium
CN111737064A (en) BMC system control method and device, storage medium and computer equipment
CN115292133A (en) Management method and related device of intelligent network card
CN115113905A (en) Firmware upgrading method and firmware upgrading device
CN107247596A (en) Starting-up method, device and electronic equipment
KR100719402B1 (en) Electronic apparatus and computer-readable recording medium
CN113986357B (en) Method, apparatus and storage medium for establishing communication link
JP2000357093A (en) Computer system and reloading method for non-volatile memory
EP4086756A1 (en) Method and apparatus for processing virtual machine component
CN115421793A (en) Display method of starting state and computing equipment

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