CN117519804A - Method, device and equipment for terminating server pre-starting execution environment guiding process - Google Patents
Method, device and equipment for terminating server pre-starting execution environment guiding process Download PDFInfo
- Publication number
- CN117519804A CN117519804A CN202311491058.6A CN202311491058A CN117519804A CN 117519804 A CN117519804 A CN 117519804A CN 202311491058 A CN202311491058 A CN 202311491058A CN 117519804 A CN117519804 A CN 117519804A
- Authority
- CN
- China
- Prior art keywords
- boot
- execution environment
- item
- value
- entering
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 163
- 230000008569 process Effects 0.000 title claims abstract description 109
- 238000003825 pressing Methods 0.000 claims abstract description 22
- 238000004590 computer program Methods 0.000 claims description 28
- 238000001514 detection method Methods 0.000 claims description 27
- 230000006870 function Effects 0.000 claims description 24
- 230000000977 initiatory effect Effects 0.000 claims description 14
- 238000003860 storage Methods 0.000 claims description 8
- 238000005516 engineering process Methods 0.000 description 8
- 238000012546 transfer Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- 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/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to a method, a device and equipment for terminating a server pre-start execution environment boot process. The method comprises the following steps: detecting the pressing state of a first designated key in the guiding process of the pre-starting execution environment of the server; resetting the preset value of the guide item data and the value of a mark entering the setting interface when the first designated key is detected to be pressed; and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface. By adopting the method, the operation efficiency of the boot process of the pre-starting execution environment of the termination server can be improved.
Description
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, and a device for terminating a pre-boot execution environment boot process of a server.
Background
PXE (Preboot eXecution Environment, pre-boot execution environment) is the latest technology developed by Intel corporation, works in the network mode of Client/Server, supports a workstation to download an image from a remote Server through a network, and thus supports an operating system to be started through the network, in the starting process, a terminal requests the Server to allocate an IP address, and then downloads a start software package to a local memory through TFTP (Trivial File Transfer Protocol plain text transport protocol) or MTFTP (Multicast Trivial File Transfer Protocol) protocol for execution, and the start software package completes the basic software setting of the terminal (Client), thereby guiding the terminal operating system pre-installed in the Server. The operating system can be guided by PXE, the efficiency of installing the operating system based on the PXE mode is far higher than that of installing the operating system by adopting modes such as an optical drive, a 1394 interface, a USB interface and the like, and the operating system is suitable for scenes of laboratories, production lines, machine rooms, websites and the like with a large number of servers.
In the conventional technology, since a boot retry strategy is set in the basic input/output system, after the PXE boot is entered, if the PXE boot fails or the PXE boot is to be exited, the PXE boot is selected to enter from other starting items, and the PXE is always polled at this time, so that other starting items cannot be entered directly. If the user wants to select to enter from other boot startup items such as Hard Disk, CD/DVD and USB, the user can only restart the server, but the server is inconvenient to restart in some situations and the server also needs to be restarted for some time, so that the traditional technical scheme has low efficiency when the PXE boot process is terminated.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, and a device for terminating a server pre-boot execution environment boot process.
A method for terminating a pre-boot execution environment boot process of a server, the method being applied to a basic input output system of the server, the method comprising:
detecting the pressing state of a first designated key in the guiding process of the pre-starting execution environment of the server;
resetting the preset value of the guide item data and the value of a mark entering the setting interface when the first designated key is detected to be pressed;
and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
In one embodiment, the detecting the pressing state of the first designated key includes:
and calling a detection key function, and detecting the pressing state of the first designated key according to the detection key function.
In one embodiment, resetting the preset value of the guide data and the value of the flag entering the setting interface includes:
resetting the value of the guide item data to a state of entering the setting interface, and setting the value of a mark entering the setting interface to be valid;
the above-mentioned boot process according to the value of the boot item data and the value of the flag entering the setting interface, terminates and exits the pre-boot execution environment, including:
and calling a callback function entering the setting interface according to the guide item data and the value after the mark entering the setting interface is reset, triggering the termination and exiting the guide process of the pre-starting execution environment.
In one embodiment, the method further comprises:
when the second designated key is detected to be pressed, the next guide starting item in the preset bootable equipment list is obtained to be used as the current guide starting item, and all the guide starting items in the bootable equipment list are ordered according to the preset priority;
exiting the boot process of the pre-boot execution environment and entering a current boot startup item;
when the boot access from the current boot initiation item fails, acquiring the next boot initiation item in a preset bootable device list as the current boot initiation item;
returning to exit the boot process of the pre-boot execution environment and entering the current boot startup item;
when the next boot startup item does not exist in the bootable device list, stopping and exiting the boot process of the pre-boot execution environment;
entering a setting interface, receiving an instruction of selecting a target starting item by a user through the setting interface, and entering the target starting item according to the instruction of selecting the target starting item by the user.
In one embodiment, the bios is connected to the baseboard management controller through a system management bus, and the method further includes:
in the power-on or restarting process, an intelligent platform management interface command is sent to a baseboard management controller so as to acquire setting information for setting a pre-starting execution environment as a first starting item from the baseboard management controller;
and setting the pre-start-up execution environment as a first start-up item according to the setting information.
In one embodiment, the first designated key is a physical key disposed on a target keyboard, the target keyboard is connected to the server, or the first designated key is a virtual key disposed on the baseboard management controller, and the detection is performed by the baseboard management controller when the pressing state of the first designated key is detected.
In one embodiment, the method further comprises:
after exiting the boot process of the pre-boot execution environment, receiving an instruction for the user to reselect the pre-boot execution environment through the setting interface, and reentering the boot process of the pre-boot execution environment according to the instruction for the user to reselect the pre-boot execution environment.
An apparatus for terminating a pre-boot execution environment boot process of a server, the apparatus being applied to a basic input output system of the server, the apparatus comprising:
the detection module is used for detecting the pressing state of the first designated key in the guiding process of the pre-starting execution environment of the server;
the reset module is used for resetting the preset value of the guide item data and the value of the mark entering the setting interface when the first designated key is detected to be pressed;
and the termination module is used for terminating and exiting the boot process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
detecting the pressing state of a first designated key in the guiding process of the pre-starting execution environment of the server;
resetting the preset value of the guide item data and the value of a mark entering the setting interface when the first designated key is detected to be pressed;
and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
detecting the pressing state of a first designated key in the guiding process of the pre-starting execution environment of the server;
resetting the preset value of the guide item data and the value of a mark entering the setting interface when the first designated key is detected to be pressed;
and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
The method, the device and the equipment for stopping the pre-starting execution environment guiding process of the server detect the pressing state of the first appointed key in the guiding process of the pre-starting execution environment of the server; resetting the preset value of the guide item data and the value of a mark entering the setting interface when the first designated key is detected to be pressed; and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface. The method and the device realize that the PXE guide can be exited at any time in the middle of the PXE guide process, avoid restarting the server, shorten the operation time and improve the operation efficiency. By adopting the method and the device, the problem that in the traditional technology, if the boot fails in the process of performing the PXE boot, all MAC of all network cards on the server are directly polled, if the PXE boot is wanted to be terminated, then other boot starting items are selected to boot into or execute other operations, and the server can only be restarted is solved, however, the server is inconvenient to restart in some scenes, and the restarting of the server also takes some time, so that the operation efficiency of terminating the PXE boot can be improved by adopting the method and the device.
Drawings
FIG. 1 is a flow diagram of a method for terminating a server pre-boot execution environment boot process in one embodiment;
FIG. 2 is a flow chart of a method for terminating a server pre-boot execution environment boot process in another embodiment;
FIG. 3 is a flow chart of a method for terminating a server pre-boot execution environment boot process in another embodiment;
FIG. 4 is a block diagram of an apparatus for terminating a server pre-boot execution environment boot process in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a method for terminating a PXE boot start of a server is provided, where the method is applied to a basic input output system of the server, and specifically may include the following steps:
s11, detecting the pressing state of the first designated key in the guiding process of the pre-starting execution environment of the server.
In this application, the pre-boot execution environment is PXE (Preboot eXecution Environment), which is the latest technology developed by Intel corporation, works in the network mode of Client/Server, supports the workstation to download images from the remote Server through the network, and thus supports the operation system to be started through the network, in the starting process, the terminal requires the Server to allocate an IP address, and then downloads a starting software package to the local memory through TFTP (Trivial File Transfer Protocol plain text transport protocol) or MTFTP (Multicast Trivial File Transfer Protocol) protocol for execution, and the starting software package completes the basic software setting of the terminal (Client), thereby guiding the terminal operation system pre-installed in the Server.
The bios may be BIOS (Basic Input and Output System), which is a set of programs solidified on a ROM (Read-Only Memory) chip on a motherboard in a computer, and stores the most important bios programs, the post-boot self-test programs and the system self-start programs of the computer, and it can Read and write specific information set by the system from CMOS (Complementary Metal Oxide Semiconductor ). Its main function is to provide the lowest, most direct hardware setup and control for the computer.
The first designated key is a preset key for triggering the boot process of terminating the pre-boot execution environment. For example, the first designated key herein may be an ESC key. The above-described pressed state refers to a state in which the first designated key is pressed or not pressed.
And S12, when the first designated key is detected to be pressed, resetting the preset value of the guide item data and the value of the mark entering the setting interface.
In the present application, the above-mentioned guidance item data refers to a preset variable. The boot item data here may be gpootflow, for example. The above-described flag entering the setting interface is also a preset variable. For example, the flag entering the setup interface here may be gEnterSetup. The setting interface herein refers to a setting interface of the BIOS.
In this application, the value of gpootflow is set to another value related to PXE before reset. Upon reset, the value needs to be modified to a value associated with exiting the PXE boot. The value of the above-described flag entering the setting interface may be valid or invalid.
And S13, stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
In the application, by resetting the value of the boot item data and the value of the flag entering the setting interface, a corresponding function is called according to the reset value so as to trigger the boot process of terminating and exiting the pre-boot execution environment.
In the conventional technology, since the boot retry strategy is set in the BIOS, after the PXE boot is entered, if the PXE boot fails or the PXE boot is to be exited, the PXE boot is selected to enter from other boot items, and the PXE is always polled at this time, so that other boot items cannot be entered directly. If it is desired to select to access from other boot-up items such as Hard Disk, CD/DVD and USB, the server can only be restarted, but in some situations, it is inconvenient to restart the server, and it takes some time to restart the server, so the conventional technology cannot terminate the PXE boot process efficiently.
In one embodiment, the detecting the pressing state of the first designated key includes:
and calling a detection key function, and detecting the pressing state of the first designated key according to the detection key function.
In the application, a CheckEvent (detection) event is triggered in the whole process after the PXE boot is entered, a CheckForKey function (detection key function) is called in the BIOS code, and the pressing condition of the key is detected in real time.
Specifically, after the start of the PXE boot, the server, as a client, sends a Request message to the DHCP server to obtain IP and other configuration information, the DHCP server sends a Reply message to the server as a response, where the Reply message includes the allocated IP, the boot file location, the TFTP server address, and the like, and then the server sends a Request to the TFTP server to obtain a boot file, and performs the PXE boot according to the boot file. In acquiring IP, acquisition is performed using DHCPv6 (Dynamic Host Configuration Protocol for IPv 6). DHCPv6 is a protocol running between a client and a server for assigning configuration of IPv6 addresses, prefixes, DNS, etc., and all protocol messages are UDP-based, as is DHCP in IPv 4. However, since there is no broadcast message in IPv6, DHCPv6 uses multicast (by default all DHCPv6 servers will join and listen to the multicast group) messages, and the client does not need to configure the IPv6 address of the server.
In the whole process after the PXE boot is entered, the BIOS always detects the key condition. If the first designated key is detected to be pressed, the trigger event is terminated and the PXE boot process is exited.
In one embodiment, resetting the preset value of the guide data and the value of the flag entering the setting interface may include:
resetting the value of the guide item data to a state of entering the setting interface, and setting the value of a mark entering the setting interface to be valid;
according to the value of the boot item data and the value of a flag entering a setting interface, stopping and exiting the boot process of the pre-boot execution environment, wherein the method comprises the following steps:
and calling a callback function entering the setting interface according to the guide item data and the value after the mark entering the setting interface is reset, triggering the termination and exiting the guide process of the pre-starting execution environment.
Resetting the value of the guidance item data to the state of entering the setting interface as described above means setting the value of gpootflow to the setup state.
The value of gpootflow may be set to boot_flow_connection_setup. The above-mentioned setting of the value of the flag entering the setting interface to be valid may be setting the value of the flag entering the setting interface to true. Specifically, gEnterSetup may be set to true. And then calling a callback function which is guided into the Setup according to the values of gBootFlow and gEnterSetup, triggering the event to terminate and exit the PXE guiding process, and then entering a BIOS Setup interface (namely the setting interface). After the PXE boot is exited and the BIOS Setup interface is entered, the boot may be selectively started from an OS (Operating System) System boot item or other boot items such as a CD/DVD or virtual mirror or a usb disk, depending on the actual situation.
Further, the method may further include:
after exiting from the pre-boot execution environment, the above-mentioned boot item data and the flag entering the setting interface are reset to default setting values, and the boot startup item is set to corresponding values according to the actual selection when the boot startup item is selected next time.
The method and the device can realize the boot process of stopping and exiting the pre-boot execution environment by resetting the values of the gBootFlow and gEnterSetup and calling according to the reset values, and solve the problems of complex operation and inconvenience caused by the fact that in the traditional technology, if the PXE boot is to be stopped, other boot items are selected to boot into or execute other operations, only the server can be restarted, and then the boot items are reselected. Therefore, the method and the device can directly exit the PXE under the condition that the server is not restarted, select to enter from other starting items or execute other operations, and improve the operation efficiency of the guide process of the PXE of the server.
In one embodiment, referring to fig. 2, the method may further include:
s21, when the fact that the second designated key is pressed is detected, the next guide starting item in a preset bootable device list is obtained to serve as a current guide starting item, and all guide starting items in the bootable device list are ordered according to preset priorities;
s22, exiting the boot process of the pre-boot execution environment, and entering a current boot startup item;
s23, when the guidance entering from the current guidance starting item fails, acquiring the next guidance starting item in a preset bootable device list as the current guidance starting item;
returning to exit the boot process of the pre-boot execution environment and entering the current boot startup item;
s24, when the next boot startup item does not exist in the bootable device list, stopping and exiting the boot process of the pre-boot execution environment;
s25, entering a setting interface, receiving an instruction of selecting a target starting item by a user through the setting interface, and entering the target starting item according to the instruction of selecting the target starting item by the user.
In this application, the second specified key may be a preset key. The setting can be specifically performed according to actual requirements, for example, the setting can be set as an F11 key.
The list of bootable devices includes a plurality of boot startup items. And sequencing the guide starting items according to the preset priority. The boot startup items here may include PXE, hard Disk, CD/DVD, USB, etc.
Specifically, after triggering a CheckEvent event, detecting that an F11 key is pressed, detecting whether other boot startup items such as Hard Disk, CD/DVD and USB exist in the list of the bootable devices, if so, calling a corresponding callback function, selecting a first boot item except for PXE according to the sequence of the current startup items, and exiting PXE boot. For example, the current ordering is PXE- > Hard Disk- > CD/DVD- > USB, when F11 is pressed, and the fact that there are Hard Disk startup items currently is detected, the PXE boot is exited, and then the Hard Disk startup items are automatically booted in. If the booting from the Hard Disk fails, the next boot startup is forwarded, mainly looking at the ordering condition of startup equipment.
If no other boot startup items are found in the list of bootable devices in the last detection process, the PXE boot is terminated and exited and then the BIOS Setup interface is entered.
The method and the device have the advantages that the first designated key and the second designated key are set, the first designated key can control the termination of the PXE boot process, the second designated key can control the termination of the PXE boot process, and the next boot start item is entered. When the PXE always polls due to the boot failure and other starting items cannot be directly accessed, the PXE boot process can be effectively terminated and exited through the setting of the two designated keys. Compared with the scheme requiring restarting the server in the prior art, the method improves the operation efficiency and convenience of stopping and exiting the PXE boot process.
In one embodiment, the bios and the baseboard management controller are connected through a system management bus, and the method may further include:
in the power-on or restarting process, an intelligent platform management interface command is sent to a baseboard management controller so as to acquire setting information for setting PXE as a first starting item from the baseboard management controller;
PXE is set as a first start item according to the setting information.
In this application, the above-mentioned intelligent platform management interface command refers to Ipmi (Intelligent Platform Management Interface) command. The baseboard management controller is BMC (Board Management Controller).
The interaction between the BIOS and the BMC is mainly performed through a system management bus SMBus (System Management Bus), and the SMBus is a communication interface that can transmit information between devices on the motherboard.
Specifically, the BMC receives an ipmi command sent by the user to set PXE as the first start item, and then in the process of performing power cycle (power-off restart), the BIOS sends the ipmi command to the BMC, so as to obtain, from the BMC, setting information for setting PXE as the first start item.
In the application, when there are multiple types of start items, the PXE needs to be set as a first boot start item, and the first boot start item of the BIOS may be set as a PXE boot through an Ipmi command. If only the PXE boot entry is present, no further settings are needed since the default first boot entry is PXE.
After the server is powered on and started, the PXE is set as a first guide starting item in the last step, so that PXE guide can be automatically entered after the POST is finished.
According to the method and the device, the PXE boot can be automatically entered after the server is started.
In one embodiment, the first specified key is a physical key disposed on a target keyboard, the target keyboard is connected to the server, or the first specified key is a virtual key disposed on the baseboard management controller, and the baseboard management controller detects the pressed state of the first specified key.
In this application, the above-mentioned target keyboard may be connected to the server through a USB (Universal Serial Bus ) interface, the BIOS supports USB, and after USB is connected, the BIOS can detect the input condition of the external keyboard.
The keys of the application are virtual keys which can be pressed by the BMC KVM (Keyboard Video Mouse), the first designated key and the second designated key of the application can be shortcut key combinations, and the specific shortcut key combinations can be set by themselves.
In one embodiment, the method may further include:
after exiting the boot process of the pre-boot execution environment, receiving an instruction for the user to reselect the pre-boot execution environment through the setting interface, and reentering the boot process of the pre-boot execution environment according to the instruction for the user to reselect the pre-boot execution environment.
In the application, if the PXE is to be continued from the PXE after the PXE is exited, the PXE guide start item can be manually selected on the Setup interface, and then the PXE guide is performed again; if the user still wants to exit after the PXE booting is performed again, the steps can be repeated.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for a termination server to pre-start an execution environment booting process according to an embodiment. In fig. 3, the flow of the method for pre-starting the execution environment booting process by the termination server may include:
setting PXE as a first guide item, powering on a server, automatically entering PXE guide, detecting key conditions by BIOS, stopping and exiting the PXE guide when detecting that a first designated key is pressed, entering a BIOS setting interface, detecting whether other guide starting items exist in a list of the bootable equipment when detecting that a second designated key is pressed, entering the next guide starting item if the other guide starting items exist, stopping and exiting the PXE guide when the second designated key is not pressed, and entering the BIOS setting interface.
In one embodiment, as shown in fig. 4, there is provided an apparatus for terminating a server pre-start-up execution environment booting process, the apparatus being applied to a basic input output system of a server, the apparatus comprising: a detection module 11, a reset module 12 and a termination module 13, wherein:
the detection module 11 is configured to detect a pressed state of a first designated key during a boot process of a pre-boot execution environment of the server;
a reset module 12, configured to reset a preset value of the guidance item data and a value of a flag entering the setting interface when it is detected that the first designated key is pressed;
and the termination module 13 is used for terminating and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
In one embodiment, the detection module 11 may call a detection key function, and detect the pressed state of the first designated key according to the detection key function.
In one embodiment, the reset module 12 may reset the value of the boot data to a state of entering the setting interface and set the value of the flag entering the setting interface to be valid, and the termination module 13 may call a callback function entering the setting interface according to the boot data and the value of the flag entering the setting interface after being reset, and trigger to terminate and exit the booting process of the pre-boot execution environment.
In one embodiment, the above detection module 11 may further obtain, when the second specified key is pressed, a next boot start item in the preset bootable device list as a current boot start item, sort each boot start item in the bootable device list according to a preset priority, exit the boot process of the pre-boot execution environment, and enter the current boot start item, and when the boot from the current boot start item fails, obtain, as the current boot start item, the next boot start item in the preset bootable device list, return, exit, and enter the current boot start item, terminate and exit, and enter the boot process of the pre-boot execution environment when the next boot start item does not exist in the bootable device list, enter the setting interface, and receive, through the setting interface, an instruction of the user to select the target start item, and enter the target start item according to the instruction of the user to select the target start item.
In one embodiment, the bios is connected to the baseboard management controller through a system management bus, and the detection module 11 may further send an intelligent platform management interface command to the baseboard management controller during a power-on or reboot process, so as to obtain setting information for setting the pre-boot execution environment as a first boot item from the baseboard management controller, and set the pre-boot execution environment as the first boot item according to the setting information.
In one embodiment, the first designated key is a physical key disposed on a target keyboard, the target keyboard is connected to the server, or the first designated key is a virtual key disposed on a baseboard management controller, and the detection module 11 may further detect the first designated key through the baseboard management controller.
In one embodiment, the termination module 13 may further exit the booting process of the pre-boot execution environment, receive an instruction for the user to reselect the pre-boot execution environment through the setting interface, and reenter the booting process of the pre-boot execution environment according to the instruction for the user to reselect the pre-boot execution environment.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data such as operation data of the intelligent household equipment. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of terminating a server pre-boot execution environment boot process.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program: detecting the pressing state of a first designated key in the guiding process of the pre-starting execution environment of the server; resetting the preset value of the guide item data and the value of a mark entering the setting interface when the first designated key is detected to be pressed; and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
In one embodiment, when the processor executes the computer program to implement the step of detecting the pressing state of the first designated key, the following steps are specifically implemented:
and calling a detection key function, and detecting the pressing state of the first designated key according to the detection key function.
In one embodiment, when the processor executes the computer program to implement the above steps of resetting the preset value of the guide item data and entering the setting interface flag, the method specifically includes the following steps:
resetting the value of the guide item data to a state of entering the setting interface, and setting the value of a mark entering the setting interface to be valid;
the processor executes the computer program to realize the steps of stopping and exiting the boot process of the pre-boot execution environment according to the values of the boot item data and the values of the flags of the entry setting interface, and specifically comprises the following steps:
and calling a callback function entering the setting interface according to the guide item data and the value after the mark entering the setting interface is reset, triggering the termination and exiting the guide process of the pre-starting execution environment.
In one embodiment, the processor, when executing the computer program, specifically further implements the steps of:
when the second designated key is detected to be pressed, the next guide starting item in the preset bootable equipment list is obtained to be used as the current guide starting item, and all the guide starting items in the bootable equipment list are ordered according to the preset priority;
exiting the boot process of the pre-boot execution environment and entering a current boot startup item;
when the boot access from the current boot initiation item fails, acquiring the next boot initiation item in a preset bootable device list as the current boot initiation item;
returning to exit the boot process of the pre-boot execution environment and entering the current boot startup item;
when the next boot startup item does not exist in the bootable device list, stopping and exiting the boot process of the pre-boot execution environment;
entering a setting interface, receiving an instruction of selecting a target starting item by a user through the setting interface, and entering the target starting item according to the instruction of selecting the target starting item by the user.
In one embodiment, the above-mentioned bios is connected to the baseboard management controller through a system management bus, and when the processor executes the computer program, the following steps are specifically implemented:
in the power-on or restarting process, an intelligent platform management interface command is sent to a baseboard management controller so as to acquire setting information for setting a pre-starting execution environment as a first starting item from the baseboard management controller;
and setting the pre-start-up execution environment as a first start-up item according to the setting information.
In one embodiment, the first specified key is a physical key disposed on a target keyboard, the target keyboard is connected to the server, or the first specified key is a virtual key disposed on the baseboard management controller, and the processor executes the computer program to implement the detection of the pressed state of the first specified key, specifically through the baseboard management controller.
In one embodiment, the processor, when executing the computer program, specifically further implements the steps of:
after exiting the boot process of the pre-boot execution environment, receiving an instruction for the user to reselect the pre-boot execution environment through the setting interface, and reentering the boot process of the pre-boot execution environment according to the instruction for the user to reselect the pre-boot execution environment.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: detecting the pressing state of a first designated key in the guiding process of the pre-starting execution environment of the server; resetting the preset value of the guide item data and the value of a mark entering the setting interface when the first designated key is detected to be pressed; and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the flag entering the setting interface.
In one embodiment, when the computer program is executed by the processor to implement the step of detecting the pressing state of the first designated key, the following steps are specifically implemented:
and calling a detection key function, and detecting the pressing state of the first designated key according to the detection key function.
In one embodiment, when the computer program is executed by the processor to implement the above steps of resetting the value of the preset guidance item data and entering the value of the flag of the setting interface, the method specifically includes the following steps:
resetting the value of the guide item data to a state of entering the setting interface, and setting the value of a mark entering the setting interface to be valid;
the computer program is executed by the processor to realize the steps of stopping and exiting the boot process of the pre-boot execution environment according to the values of the boot item data and the values of the flags of the entry setting interface, and specifically comprises the following steps:
and calling a callback function entering the setting interface according to the guide item data and the value after the mark entering the setting interface is reset, triggering the termination and exiting the guide process of the pre-starting execution environment.
In one embodiment, the computer program when executed by the processor, specifically further performs the steps of:
when the second designated key is detected to be pressed, the next guide starting item in the preset bootable equipment list is obtained to be used as the current guide starting item, and all the guide starting items in the bootable equipment list are ordered according to the preset priority;
exiting the boot process of the pre-boot execution environment and entering a current boot startup item;
when the boot access from the current boot initiation item fails, acquiring the next boot initiation item in a preset bootable device list as the current boot initiation item;
returning to exit the boot process of the pre-boot execution environment and entering the current boot startup item;
when the next boot startup item does not exist in the bootable device list, stopping and exiting the boot process of the pre-boot execution environment;
entering a setting interface, receiving an instruction of selecting a target starting item by a user through the setting interface, and entering the target starting item according to the instruction of selecting the target starting item by the user.
In one embodiment, the bios is connected to the baseboard management controller through a system management bus, and when the computer program is executed by the processor, the following steps are specifically implemented:
in the power-on or restarting process, an intelligent platform management interface command is sent to a baseboard management controller so as to acquire setting information for setting a pre-starting execution environment as a first starting item from the baseboard management controller;
and setting the pre-start-up execution environment as a first start-up item according to the setting information.
In one embodiment, the first specified key is a physical key disposed on a target keyboard, where the target keyboard is connected to the server, or the first specified key is a virtual key disposed on the baseboard management controller, and the computer program is executed by the processor to implement the detection of the pressed state of the first specified key, specifically through the baseboard management controller.
In one embodiment, the computer program when executed by the processor, specifically further performs the steps of:
after exiting the boot process of the pre-boot execution environment, receiving an instruction for the user to reselect the pre-boot execution environment through the setting interface, and reentering the boot process of the pre-boot execution environment according to the instruction for the user to reselect the pre-boot execution environment.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (10)
1. A method for terminating a server pre-boot execution environment boot process, the method being applied to a basic input output system of a server, the method comprising:
detecting the pressing state of a first designated key in the guiding process of the pre-starting execution environment of the server;
resetting the preset value of the guide item data and the value of a mark entering a setting interface when the first designated key is detected to be pressed;
and stopping and exiting the booting process of the pre-boot execution environment according to the value of the boot item data and the value of the mark entering the setting interface.
2. The method of claim 1, wherein detecting the pressed state of the first designated key comprises:
and calling a detection key function, and detecting the pressing state of the first designated key according to the detection key function.
3. The method of claim 1, wherein resetting the value of the preset leader data and the value of the flag into the setup interface comprises:
resetting the value of the guide item data to a state of entering the setting interface, and setting the value of a mark entering the setting interface to be valid;
and terminating and exiting the boot process of the pre-boot execution environment according to the value of the boot item data and the value of the flag of the entry setting interface, wherein the method comprises the following steps:
and calling a callback function entering the setting interface according to the guide item data and the value after the sign entering the setting interface is reset, and triggering the guide process of terminating and exiting the pre-starting execution environment.
4. The method according to claim 1, wherein the method further comprises:
when the fact that the second designated key is pressed is detected, the next guide starting item in a preset bootable device list is obtained to serve as a current guide starting item, and all guide starting items in the bootable device list are ordered according to preset priorities;
exiting the boot process of the pre-boot execution environment and entering the current boot initiation item;
when the boot access from the current boot initiation item fails, acquiring the next boot initiation item in a preset bootable device list as the current boot initiation item;
returning to the boot process of exiting the pre-boot execution environment and entering the current boot initiation item;
when the next boot startup item does not exist in the bootable device list, stopping and exiting the boot process of the pre-boot execution environment;
entering the setting interface, receiving an instruction of selecting a target starting item by a user through the setting interface, and entering the target starting item according to the instruction of selecting the target starting item by the user.
5. The method of claim 1, wherein the bios is coupled to the baseboard management controller via a system management bus, the method further comprising:
in the power-on or restarting process, an intelligent platform management interface command is sent to the baseboard management controller so as to acquire setting information for setting a pre-starting execution environment as a first starting item from the baseboard management controller;
and setting the pre-start execution environment as a first start item according to the setting information.
6. The method of claim 5, wherein the first designated key is a physical key provided on a target keyboard, the target keyboard is connected to the server, or the first designated key is a virtual key provided on the baseboard management controller, and the detection is performed by the baseboard management controller when the pressed state of the first designated key is detected.
7. The method according to claim 4, wherein the method further comprises:
and after exiting the boot process of the pre-boot execution environment, receiving an instruction for reselecting the pre-boot execution environment by a user through the setting interface, and reentering the boot process of the pre-boot execution environment according to the instruction for reselecting the pre-boot execution environment by the user.
8. An apparatus for terminating a server pre-boot execution environment boot process, the apparatus being applied to a basic input output system of a server, the apparatus comprising:
the detection module is used for detecting the pressing state of the first designated key in the guiding process of the pre-starting execution environment of the server;
the resetting module is used for resetting the preset value of the guide item data and the value of the mark entering the setting interface when the first designated key is detected to be pressed;
and the termination module is used for terminating and exiting the boot process of the pre-boot execution environment according to the value of the boot item data and the value of the mark entering the setting interface.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311491058.6A CN117519804A (en) | 2023-11-10 | 2023-11-10 | Method, device and equipment for terminating server pre-starting execution environment guiding process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311491058.6A CN117519804A (en) | 2023-11-10 | 2023-11-10 | Method, device and equipment for terminating server pre-starting execution environment guiding process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117519804A true CN117519804A (en) | 2024-02-06 |
Family
ID=89758011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311491058.6A Pending CN117519804A (en) | 2023-11-10 | 2023-11-10 | Method, device and equipment for terminating server pre-starting execution environment guiding process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117519804A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117785311A (en) * | 2024-02-27 | 2024-03-29 | 苏州元脑智能科技有限公司 | Method and device for starting server, storage medium and electronic device |
-
2023
- 2023-11-10 CN CN202311491058.6A patent/CN117519804A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117785311A (en) * | 2024-02-27 | 2024-03-29 | 苏州元脑智能科技有限公司 | Method and device for starting server, storage medium and electronic device |
CN117785311B (en) * | 2024-02-27 | 2024-05-07 | 苏州元脑智能科技有限公司 | Method and device for starting server, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110495136B (en) | Hardware attribute discovery method and system of bare metal server | |
US9182998B2 (en) | Remote bios update in system having multiple computers | |
JP5307706B2 (en) | Operating system gradual boot process | |
US6810478B1 (en) | System for remote booting of muntliple operating systems using chained bootstrap mechanism in a network | |
US20040193867A1 (en) | Configurabel network boot management for hetergenous boot options | |
JP6799668B2 (en) | RAID setting | |
CN110134446B (en) | Method for starting PCIE equipment scanning | |
CN109558212B (en) | Virtualization management method and system of physical equipment, physical equipment and medium | |
US20050149716A1 (en) | Preboot execution bootloading | |
CN117519804A (en) | Method, device and equipment for terminating server pre-starting execution environment guiding process | |
CN113360257B (en) | Information operation method and device based on BIOS, storage medium and equipment | |
CN111857956A (en) | Virtual machine starting method and equipment | |
CN110399167B (en) | Firmware starting method and device, equipment and storage medium | |
CN108958807B (en) | Terminal system starting method and terminal | |
JP2009211640A (en) | Network boot method using radio lan, and network boot terminal | |
CN107247596A (en) | Starting-up method, device and electronic equipment | |
US20190281012A1 (en) | Information processing apparatus and information processing apparatus management system | |
JP2002288104A (en) | Computer system, and method and program for its resource assigning | |
CN100448202C (en) | Method and device for detecting conflict of IP addresses in networked computers | |
CN116886524A (en) | Configuration method, device and server for pre-starting execution environment function | |
WO2019100704A1 (en) | Starting method for multi-mode iot device, multi-mode iot device, and storage medium | |
CN115495161A (en) | BIOS option modification validation method and device and storage medium | |
CN111324384B (en) | Device and method for selecting starting image file according to device message in pre-execution environment | |
CN112148375A (en) | System installation method, server, client and storage medium | |
CN114020342B (en) | Starting method and device of embedded equipment, embedded equipment and storage medium |
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 |