CN106547583B - Operating system installation method and device - Google Patents

Operating system installation method and device Download PDF

Info

Publication number
CN106547583B
CN106547583B CN201510609059.5A CN201510609059A CN106547583B CN 106547583 B CN106547583 B CN 106547583B CN 201510609059 A CN201510609059 A CN 201510609059A CN 106547583 B CN106547583 B CN 106547583B
Authority
CN
China
Prior art keywords
minimum
resource
operating system
installation
hardware resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510609059.5A
Other languages
Chinese (zh)
Other versions
CN106547583A (en
Inventor
曹礼伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510609059.5A priority Critical patent/CN106547583B/en
Publication of CN106547583A publication Critical patent/CN106547583A/en
Application granted granted Critical
Publication of CN106547583B publication Critical patent/CN106547583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses an operating system installation method and a device, wherein the method comprises the following steps: when an installation instruction for an operating system is detected, acquiring a preset minimum resource set; enabling system hardware resources corresponding to the minimum resource set, and determining the enabled system hardware resources as minimum system hardware resources; and installing the operating system through the minimum system hardware resource, and starting the system-wide hardware resource through the installed operating system when the system is restarted. By adopting the invention, the time delay of the server in the installation of the OS can be reduced, so that the rapid installation of the OS is realized.

Description

Operating system installation method and device
Technical Field
The invention relates to the technical field of computers, in particular to an operating system installation method and device.
Background
OS (Operating System) installation is a basic step of IT (Information Technology) deployment, which is performed before each server is enabled. The existing rapid deployment methods include methods such as network installation, template installation and virtualization deployment, but the methods only change installation ways, but the methods cannot be adopted for deployment aiming at a new server, and the existing OS installation method aiming at the new server usually starts full-system hardware resources to complete OS installation.
With the development of an X86CPU (Central Processing Unit), the number of sockets of a server is increasing, and the sockets are expanded from the first 2-way to 4-way, 8-way, 16-way, and 32-way, so that the number of memories and processors of the server is also increasing, and when an OS is installed on the server using a full-system hardware resource, a large number of cross-node accesses are required, which causes a serious delay problem during the installation of the OS, that is, the installation time is long.
Disclosure of Invention
The embodiment of the invention provides an operating system installation method and device, which can reduce the time delay of a server during the installation of an OS (operating system) so as to realize the rapid installation of the OS.
The first aspect of the present invention provides an operating system installation method, including:
when an installation instruction for an operating system is detected, acquiring a preset minimum resource set;
enabling system hardware resources corresponding to the minimum resource set, and determining the enabled system hardware resources as minimum system hardware resources;
and installing the operating system through the minimum system hardware resource, and starting the system-wide hardware resource through the installed operating system when the system is restarted.
In a first possible implementation manner, the obtaining a preset minimum resource set when the installation instruction for the operating system is checked specifically includes:
when an installation instruction aiming at an operating system is checked, selecting a minimum resource installation mode in a Basic Input Output System (BIOS), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is restarted;
the installing the operating system through the minimum system hardware resource and starting the full system hardware resource through the installed operating system when the system is restarted specifically includes:
installing the operating system through the minimum system hardware resource, selecting a full resource mode in a BIOS when the system is restarted, and starting a full system hardware resource corresponding to the full resource mode through the installed operating system when the system is restarted again;
wherein the list information of the minimum resource set is maintained by the BIOS.
With reference to the first aspect, in a second possible implementation manner, the obtaining a preset minimum resource set when an installation instruction for an operating system is checked specifically includes:
when an installation instruction for an operating system is checked, setting a BIOS (basic input/output System) to be a minimum resource installation mode through a mainboard management controller (BMC), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is started;
the installing the operating system through the minimum system hardware resource and starting the full system hardware resource through the installed operating system when the system is restarted specifically includes:
installing the operating system through the minimum system hardware resource, setting a BIOS (basic input/output System) to be in a full resource mode through a BMC (baseboard management controller) when the system is restarted, and starting a full system hardware resource corresponding to the full resource mode through the installed operating system;
wherein the list information of the minimum resource set is maintained by management software.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the enabling a system hardware resource corresponding to the minimum resource set, and determining the enabled system hardware resource as the minimum system hardware resource includes:
extracting the minimum hardware resource description information in the minimum resource set, searching the corresponding system hardware resource according to the minimum hardware resource description information, and determining the searched system hardware resource as the minimum system hardware resource;
enabling the minimum system hardware resources.
With reference to the first aspect, in a fourth possible implementation manner, before the step of obtaining a preset minimum resource set when an installation instruction for an operating system is detected, the method further includes:
setting a minimum resource set;
the setting of the minimum resource set includes:
randomly selecting one processor from the at least one processor as a target processor;
respectively calculating the sum of memory access delay and storage access delay between each node in at least one node and the target processor to obtain delay sum values respectively corresponding to the nodes; each node comprises a section of memory and a section of storage in the hard disk;
selecting the node corresponding to the minimum delay sum value as a target node according to the delay sum values corresponding to the nodes respectively;
and determining the information of the target processor and the information of the target node as minimum hardware resource description information, and adding the minimum hardware resource description information to a minimum resource set.
A second aspect of the present invention provides an operating system installing apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a preset minimum resource set when an installation instruction aiming at an operating system is detected;
the starting determining module is used for starting the system hardware resources corresponding to the minimum resource set and determining the started system hardware resources as the minimum system hardware resources;
and the installation module is used for installing the operating system through the minimum system hardware resource and starting the whole system hardware resource through the installed operating system when the system is restarted.
In a first possible implementation manner, the obtaining module is specifically configured to select a minimum resource installation mode in a BIOS when an installation instruction for an operating system is checked, and obtain a preset minimum resource set corresponding to the minimum resource installation mode when a system is restarted;
the installation module is specifically configured to install the operating system through the minimum system hardware resource, select a full resource mode in a BIOS when the system is restarted, and start a full system hardware resource corresponding to the full resource mode through the installed operating system when the system is restarted again;
wherein the list information of the minimum resource set is maintained by the BIOS.
With reference to the second aspect, in a second possible implementation manner,
the obtaining module is specifically configured to set the BIOS to a minimum resource installation mode by the motherboard management controller BMC when an installation instruction for the operating system is checked, and obtain a preset minimum resource set corresponding to the minimum resource installation mode when the system is started;
the installation module is specifically configured to install the operating system through the minimum system hardware resource, set the BIOS to a full resource mode through the BMC when the system is restarted, and start a full system hardware resource corresponding to the full resource mode through the installed operating system;
wherein the list information of the minimum resource set is maintained by management software.
With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner, the enabling determination module includes:
the extracting and searching unit is used for extracting the minimum hardware resource description information in the minimum resource set, searching the corresponding system hardware resource according to the minimum hardware resource description information, and determining the searched system hardware resource as the minimum system hardware resource;
an enabling unit for enabling the minimum system hardware resource.
With reference to the second aspect, in a fourth possible implementation manner, the method further includes:
the setting module is used for setting a minimum resource set;
the setting module includes:
a selecting unit for randomly selecting one processor among the at least one processor as a target processor;
a calculating unit, configured to calculate a sum of memory access delay and storage access delay between each node in at least one node and the target processor, respectively, so as to obtain a delay sum value corresponding to each node; each node comprises a section of memory and a section of storage in the hard disk;
the selecting unit is further configured to select a node corresponding to the minimum delay total value as a target node according to the delay total values respectively corresponding to the nodes;
and the adding unit is used for determining the information of the target processor and the information of the target node as minimum hardware resource description information and adding the minimum hardware resource description information to a minimum resource set.
According to the embodiment of the invention, the preset minimum resource set is obtained, the system hardware resource corresponding to the minimum resource set is started, the started system hardware resource is determined as the minimum system hardware resource, and the operating system is installed through the minimum system hardware resource, so that the whole system hardware resource can be prevented from participating in the installation process of the operating system, and therefore, a large number of cross-node accesses can be avoided, the time for installing the operating system can be effectively shortened, and the operating system can be quickly installed.
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 description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an operating system installation method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another operating system installation method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a further operating system installation method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an operating system installation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an enablement determination module according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another operating system installation apparatus provided in the embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a setup module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flow chart of an operating system installation method according to an embodiment of the present invention is shown, where the method includes:
s101, when an installation instruction aiming at an operating system is detected, a preset minimum resource set is obtained;
specifically, when the system is powered on and started, the server can perform self-check and report hardware resources of the whole system, and at this time, it can be detected whether an installation instruction for the operating system is received, where the installation instruction may be an installation instruction for installing the OS for the first time or an installation instruction for resuming installation of the OS by the system; if an installation instruction for the operating system is received, a preset minimum resource set can be acquired. The minimum resource set at least comprises information of a CPU, memory information, hard disk information, partial network information and PCIe (Peripheral Component Interconnect Express) resource information related to a display card; the hardware resources such as the number of CPUs, the size of the memory, the size of the hard disk and the like described in the minimum resource set are all the minimum hardware requirements capable of supporting the installation of the OS. For example, if the installed OS requires at least 1 CPU, 2G memory, and 50G hard disk, the CPU information described in the minimum resource set may be information of one CPU in the plurality of CPUs in the server, the memory information described may be information of one section of 2G memory in the server, and the hard disk information described may be information of one section of 50G hard disk in the server.
S102, starting system hardware resources corresponding to the minimum resource set, and determining the started system hardware resources as minimum system hardware resources;
specifically, according to the obtained minimum resource set, system hardware resources corresponding to the hardware information described in the minimum resource set are enabled, and the enabled system hardware resources are determined as minimum system hardware resources, that is, the minimum system hardware resources are the minimum hardware requirements capable of supporting the installation of the OS.
S103, installing the operating system through the minimum system hardware resource, and starting the whole system hardware resource through the installed operating system when the system is restarted;
specifically, after determining the minimum system hardware resource, the server may install the operating system through the minimum system hardware resource, so that the OS can only recognize the minimum system hardware resource, that is, the OS can only recognize the hardware described in the minimum resource set. And after the OS is installed, restarting the system, performing self-checking and reporting on the hardware resources of the whole system, and starting the hardware resources of the whole system by the installed OS.
According to the embodiment of the invention, the preset minimum resource set is obtained, the system hardware resource corresponding to the minimum resource set is started, the started system hardware resource is determined as the minimum system hardware resource, and the operating system is installed through the minimum system hardware resource, so that the whole system hardware resource can be prevented from participating in the installation process of the operating system, and therefore, a large number of cross-node accesses can be avoided, the time for installing the operating system can be effectively shortened, and the operating system can be quickly installed.
Referring to fig. 2, a schematic flow chart of another operating system installation method according to an embodiment of the present invention is shown, where the method includes:
s201, setting a minimum resource set;
specifically, the server may preset the minimum resource set. The minimum resource set at least comprises information of a CPU, memory information, hard disk information, partial network information and PCIe resource information related to a display card; the hardware resources such as the number of CPUs, the size of the memory, the size of the hard disk and the like described in the minimum resource set are all the minimum hardware requirements capable of supporting the installation of the OS. For example, if the installed OS requires at least 1 CPU, 2G memory, and 50G hard disk, the CPU information described in the minimum resource set may be information of one CPU in the plurality of CPUs in the server, the memory information described may be information of one section of 2G memory in the server, and the hard disk information described may be information of one section of 50G hard disk in the server.
The specific process of setting the minimum resource set may be: randomly selecting one processor from the at least one processor as a target processor; respectively calculating the sum of memory access delay and storage access delay between each node in at least one node and the target processor to obtain delay sum values respectively corresponding to the nodes; each node comprises a section of memory and a section of storage in the hard disk, namely, the section of memory and the section of storage of the hard disk are hung on the node; selecting the node corresponding to the minimum delay sum value as a target node according to the delay sum values corresponding to the nodes respectively; and determining the information of the target processor and the information of the target node as minimum hardware resource description information, and adding the minimum hardware resource description information to a minimum resource set, wherein the minimum resource set comprises the information of the target processor, the memory information on the target node and the storage information on the target node.
Wherein, the delay summation value R of each nodej=Pj+WjIf the minimum delay sum value corresponding to the target node is Rmin=MIN(R1,R2,R3,…,Rn) (ii) a The value range of j is 1 to n, i.e. j is the number of each node, n is the number of nodes in the server, PjRepresenting the delay of said target processor to access the memory of the jth node, WjRepresenting the latency of the target processor accessing the storage of the jth node.
Optionally, hardware described in the minimum resource set may not only have 1 CPU or the minimum memory, and specifically, balancing the cross-node delay size influence and the multithreading parallel efficiency may be performed to select more CPUs and more memories to add to the minimum resource set. For example, in the range of several nodes, the cross-node access delay is very small, and the CPUs, the memories and the storages of the several nodes can be added into the minimum resource set to fully utilize the multithreading resources.
S202, when an installation instruction aiming at an operating system is checked, selecting a minimum resource installation mode in a Basic Input Output System (BIOS), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is restarted;
specifically, when the system is powered on and started, the server can perform self-check and report hardware resources of the whole system, and at this time, it can be detected whether an installation instruction for the operating system is received, where the installation instruction may be an installation instruction for installing the OS for the first time or an installation instruction for resuming installation of the OS by the system; if an installation instruction for the operating system is received, entering a setup interface through a BIOS (basic input/output system), selecting a minimum resource installation mode in the setup interface, and then acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is restarted; the minimum resource installation mode is a mode preset in the BIOS for subsequently installing the OS according to the minimum resource set. Wherein the list information of the minimum resource set is maintained by the BIOS; the identification configuration for determining whether the minimum resource installation mode is enabled is stored in a nonvolatile storage medium such as management software or a hard disk, so as to ensure that whether the minimum resource installation mode is enabled can be determined according to the identification configuration when the server is in cold start.
S203, extracting the minimum hardware resource description information in the minimum resource set, searching the corresponding system hardware resource according to the minimum hardware resource description information, and determining the searched system hardware resource as the minimum system hardware resource;
specifically, after the server acquires the minimum resource set, the server may extract the minimum hardware resource description information in the minimum resource set, search the corresponding system hardware resource according to the minimum hardware resource description information, and determine the searched system hardware resource as the minimum system hardware resource. For example, if the minimum hardware resource description information includes information of the second CPU, memory information of the second node, and storage information of the second node, the minimum system hardware resource found includes the second CPU and a memory and a hard disk on the second node.
S204, starting the minimum system hardware resource;
specifically, after the minimum system hardware resource is found, the server may start the minimum system hardware resource.
S205, installing the operating system through the minimum system hardware resource, selecting a full resource mode in a BIOS when the system is restarted, and starting the full system hardware resource corresponding to the full resource mode through the installed operating system when the system is restarted again;
specifically, after the server enables the minimum system hardware resource, the operating system may be installed through the minimum system hardware resource, so that the OS can only recognize the minimum system hardware resource, that is, the OS can only recognize the hardware described in the minimum resource set. After the OS is installed, restarting the system, entering a setup interface through the BIOS again, selecting a full resource mode in the BIOS, and then restarting the system, so that the installed operating system can start up the full system hardware resources corresponding to the full resource mode.
According to the embodiment of the invention, the preset minimum resource set is obtained, the system hardware resource corresponding to the minimum resource set is started, the started system hardware resource is determined as the minimum system hardware resource, and the operating system is installed through the minimum system hardware resource, so that the whole system hardware resource can be prevented from participating in the installation process of the operating system, and therefore, a large number of cross-node accesses can be avoided, the time for installing the operating system can be effectively shortened, and the operating system can be quickly installed.
Referring to fig. 3, a schematic flowchart of another operating system installation method provided in an embodiment of the present invention is shown, where the method includes:
s301, setting a minimum resource set;
the specific implementation manner of the step S301 may refer to S201 in the embodiment corresponding to fig. 2, which is not described herein again.
S302, when an installation instruction aiming at an operating system is checked, setting a BIOS (basic input/output System) to be a minimum resource installation mode through a mainboard management controller (BMC), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is started;
specifically, when the system is powered on and started, the server can perform self-check and report hardware resources of the whole system, and at this time, it can be detected whether an installation instruction for the operating system is received, where the installation instruction may be an installation instruction for installing the OS for the first time or an installation instruction for resuming installation of the OS by the system; if an installation instruction for the operating system is received, the BIOS may be set to a minimum resource installation mode by the motherboard management controller BMC, and a specific process of the setting may be: and configuring an installation recovery mode in the BMC, and programming the mode of the BIOS into the minimum resource installation mode by the BMC according to the installation recovery mode. And after the minimum resource installation mode is set, starting a system, and acquiring a preset minimum resource set corresponding to the minimum resource installation mode. Wherein the list information of the minimum resource set is maintained by management software; the identification configuration for determining whether the minimum resource installation mode is enabled is stored in a nonvolatile storage medium such as management software or a hard disk, so as to ensure that whether the minimum resource installation mode is enabled can be determined according to the identification configuration when the server is in cold start.
S303, extracting the minimum hardware resource description information in the minimum resource set, searching the corresponding system hardware resource according to the minimum hardware resource description information, and determining the searched system hardware resource as the minimum system hardware resource;
s304, enabling the minimum system hardware resource.
The specific implementation manner of steps S303 to S304 may refer to steps S203 to S204 in the embodiment corresponding to fig. 2, which is not described herein again.
S305, installing the operating system through the minimum system hardware resource, setting the BIOS into a full resource mode through a BMC when the system is restarted, and starting a full system hardware resource corresponding to the full resource mode through the installed operating system;
specifically, after the server enables the minimum system hardware resource, the operating system may be installed through the minimum system hardware resource, so that the OS can only recognize the minimum system hardware resource, that is, the OS can only recognize the hardware described in the minimum resource set. After the OS is installed, the system is restarted, and the BIOS is set to the full resource mode by the BMC, and the specific setting process may be: and configuring a normal mode in the BMC, and rewriting the BIOS mode into the full resource mode by the BMC according to the normal mode. After the full resource mode is set, the full system hardware resources corresponding to the full resource mode can be started through the installed operating system.
According to the embodiment of the invention, the preset minimum resource set is obtained, the system hardware resource corresponding to the minimum resource set is started, the started system hardware resource is determined as the minimum system hardware resource, and the operating system is installed through the minimum system hardware resource, so that the whole system hardware resource can be prevented from participating in the installation process of the operating system, and therefore, a large number of cross-node accesses can be avoided, the time for installing the operating system can be effectively shortened, and the operating system can be quickly installed.
Referring to fig. 4, which is a schematic structural diagram of an operating system installation apparatus according to an embodiment of the present invention, where the operating system installation apparatus 1 may be applied to a server, and the operating system installation apparatus 1 may include: the system comprises an acquisition module 10, a starting determination module 20 and an installation module 30;
the acquiring module 10 is configured to acquire a preset minimum resource set when an installation instruction for an operating system is detected;
specifically, the obtaining module 10 may perform self-check and report hardware resources of the whole system when the system is powered on and started, at this time, the obtaining module 10 may detect whether an installation instruction for the operating system is received, where the installation instruction may be an installation instruction for installing an OS for the first time or an installation instruction for resuming installation of the OS; if an installation instruction for the operating system is received, the obtaining module 10 may obtain a preset minimum resource set. The minimum resource set at least comprises information of a CPU, memory information, hard disk information, partial network information and PCIe resource information related to a display card; the hardware resources such as the number of CPUs, the size of the memory, the size of the hard disk and the like described in the minimum resource set are all the minimum hardware requirements capable of supporting the installation of the OS. For example, if the installed OS requires at least 1 CPU, 2G memory, and 50G hard disk, the CPU information described in the minimum resource set may be information of one CPU in the plurality of CPUs in the server, the memory information described may be information of one section of 2G memory in the server, and the hard disk information described may be information of one section of 50G hard disk in the server.
The enabling determining module 20 is configured to enable the system hardware resource corresponding to the minimum resource set, and determine the enabled system hardware resource as a minimum system hardware resource;
specifically, the enabling determining module 20 enables the system hardware resource corresponding to the hardware information described in the minimum resource set according to the acquired minimum resource set, and determines the enabled system hardware resource as the minimum system hardware resource, that is, the minimum system hardware resource is the minimum hardware requirement that can support the installation of the OS.
The installation module 30 is configured to install the operating system through the minimum system hardware resource, and start a system-wide hardware resource through the installed operating system when the system is restarted;
specifically, after the enabling determination module 20 determines the minimum system hardware resource, the installation module 30 may install the operating system through the minimum system hardware resource, so that the OS can only recognize the minimum system hardware resource, that is, the OS can only recognize the hardware described in the minimum resource set. After the OS is installed, the installation module 30 restarts the system, performs self-checking and reporting on the hardware resources of the whole system, and starts the hardware resources of the whole system by the installed OS.
Optionally, the obtaining module 10 is specifically configured to select a minimum resource installation mode in a BIOS when an installation instruction for an operating system is checked, and obtain a preset minimum resource set corresponding to the minimum resource installation mode when the system is restarted;
the installation module 30 is specifically configured to install the operating system through the minimum system hardware resource, select a full resource mode in the BIOS when the system is restarted, and start a full system hardware resource corresponding to the full resource mode through the installed operating system when the system is restarted again;
wherein the list information of the minimum resource set is maintained by the BIOS; and entering a setup interface through the BIOS, and selecting the minimum resource installation mode or the full resource mode in the setup interface.
Or, the obtaining module 10 is specifically configured to set, when an installation instruction for the operating system is checked, the BIOS to the minimum resource installation mode by using the motherboard management controller BMC, and obtain a preset minimum resource set corresponding to the minimum resource installation mode when the system is started;
the installation module 30 is specifically configured to install the operating system through the minimum system hardware resource, set the BIOS to a full resource mode through the BMC when the system is restarted, and start a full system hardware resource corresponding to the full resource mode through the installed operating system;
wherein the list information of the minimum resource set is maintained by management software. When the obtaining module 10 sets the minimum resource installation mode, an installation recovery mode may be specifically configured in the BMC, and the BMC writes the mode of the BIOS as the minimum resource installation mode according to the installation recovery mode. When the installation module 30 sets the full resource mode, a normal mode may be specifically configured in the BMC, and the BMC rewrites the mode of the BIOS into the full resource mode according to the normal mode.
Further, referring to fig. 5 again, it is a schematic structural diagram of an enable determining module 20 according to an embodiment of the present invention, where the enable determining module 20 may include: an extraction searching unit 201 and an enabling unit 202;
the extracting and searching unit 201 is configured to extract the minimum hardware resource description information in the minimum resource set, search a corresponding system hardware resource according to the minimum hardware resource description information, and determine the searched system hardware resource as a minimum system hardware resource;
specifically, the extracting and searching unit 201 may extract the minimum hardware resource description information in the minimum resource set, search the corresponding system hardware resource according to the minimum hardware resource description information, and determine the searched system hardware resource as the minimum system hardware resource. For example, if the minimum hardware resource description information includes information of a second CPU, memory information of a second node, and storage information of the second node, the minimum system hardware resource found by the extracting and finding unit 201 includes the second CPU and a memory and a hard disk on the second node.
The enabling unit 202 is configured to enable the minimum system hardware resource.
According to the embodiment of the invention, the preset minimum resource set is obtained, the system hardware resource corresponding to the minimum resource set is started, the started system hardware resource is determined as the minimum system hardware resource, and the operating system is installed through the minimum system hardware resource, so that the whole system hardware resource can be prevented from participating in the installation process of the operating system, and therefore, a large number of cross-node accesses can be avoided, the time for installing the operating system can be effectively shortened, and the operating system can be quickly installed.
Please refer to fig. 6, which is a schematic structural diagram of another operating system installation apparatus provided in an embodiment of the present invention, where the operating system installation apparatus 1 may include the obtaining module 10, the enabling determination module 20, and the installation module 30 in the embodiment corresponding to fig. 4, and further, the operating system installation apparatus 1 may further include a setting module 40;
the setting module 40 is configured to set a minimum resource set;
specifically, the setting module 40 may preset the minimum resource set. The minimum resource set at least comprises information of a CPU, memory information, hard disk information, partial network information and PCIe resource information related to a display card; the hardware resources such as the number of CPUs, the size of the memory, the size of the hard disk and the like described in the minimum resource set are all the minimum hardware requirements capable of supporting the installation of the OS. For example, if the installed OS requires at least 1 CPU, 2G memory, and 50G hard disk, the CPU information described in the minimum resource set may be information of one CPU in the plurality of CPUs in the server, the memory information described may be information of one section of 2G memory in the server, and the hard disk information described may be information of one section of 50G hard disk in the server.
Further, please refer to fig. 7 again, which is a schematic structural diagram of a setting module 40 according to an embodiment of the present invention, where the setting module 40 may include: a selection unit 401, a calculation unit 402, an addition unit 403;
the selecting unit 401 is configured to randomly select one processor from the at least one processor as a target processor;
the calculating unit 402 is configured to calculate a sum of memory access delay and storage access delay between each node in at least one node and the target processor, so as to obtain a delay sum value corresponding to each node; each node comprises a section of memory and a section of storage in the hard disk;
the selecting unit 401 is further configured to select, according to the delay total sum values respectively corresponding to the nodes, a node corresponding to the minimum delay total sum value as a target node;
the adding unit 403 is configured to determine information of the target processor and information of the target node as minimum hardware resource description information, and add the minimum hardware resource description information to a minimum resource set;
wherein, the delay summation value R of each nodej=Pj+WjIf the minimum delay sum value corresponding to the target node is Rmin=MIN(R1,R2,R3,…,Rn) (ii) a The value range of j is 1 to n, i.e. j is the number of each node, n is the number of nodes in the server, PjRepresenting the delay of said target processor to access the memory of the jth node, WjRepresenting the latency of the target processor accessing the storage of the jth node.
According to the embodiment of the invention, the preset minimum resource set is obtained, the system hardware resource corresponding to the minimum resource set is started, the started system hardware resource is determined as the minimum system hardware resource, and the operating system is installed through the minimum system hardware resource, so that the whole system hardware resource can be prevented from participating in the installation process of the operating system, and therefore, a large number of cross-node accesses can be avoided, the time for installing the operating system can be effectively shortened, and the operating system can be quickly installed.
Please refer to fig. 8, which is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 1000 may include one or more processors 1001, a communication interface 1002, and a memory 1003 (the number of the processors 1001 in the server 1000 is one or more, and one processor 1001 is taken as an example in fig. 8). In some embodiments of the present invention, the processor 1001, the communication interface 1002 and the memory 1003 may be connected by a communication bus or other methods, wherein fig. 8 is taken as an example of the connection by the communication bus.
The communication interface 1002 is used for communicating with a client;
the memory 1003 is used for storing programs;
the processor 1001 is configured to execute the program to implement
When an installation instruction for an operating system is detected, acquiring a preset minimum resource set;
enabling system hardware resources corresponding to the minimum resource set, and determining the enabled system hardware resources as minimum system hardware resources;
and installing the operating system through the minimum system hardware resource, and starting the system-wide hardware resource through the installed operating system when the system is restarted.
In an embodiment, the processor 1001 is specifically configured to, when the preset minimum resource set is obtained when the installation instruction for the operating system is checked, perform:
when an installation instruction aiming at an operating system is checked, selecting a minimum resource installation mode in a Basic Input Output System (BIOS), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is restarted;
the processor 1001 executes the installation of the operating system through the minimum system hardware resource, and is specifically configured to execute, when the system is restarted, the system-wide hardware resource is started through the installed operating system:
installing the operating system through the minimum system hardware resource, selecting a full resource mode in a BIOS when the system is restarted, and starting a full system hardware resource corresponding to the full resource mode through the installed operating system when the system is restarted again;
wherein the list information of the minimum resource set is maintained by the BIOS.
In an embodiment, the processor 1001 is specifically configured to, when the preset minimum resource set is obtained when the installation instruction for the operating system is checked, perform:
when an installation instruction for an operating system is checked, setting a BIOS (basic input/output System) to be a minimum resource installation mode through a mainboard management controller (BMC), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is started;
the processor 1001 executes the installation of the operating system through the minimum system hardware resource, and is specifically configured to execute, when the system is restarted, the system-wide hardware resource is started through the installed operating system:
installing the operating system through the minimum system hardware resource, setting a BIOS (basic input/output System) to be in a full resource mode through a BMC (baseboard management controller) when the system is restarted, and starting a full system hardware resource corresponding to the full resource mode through the installed operating system;
wherein the list information of the minimum resource set is maintained by management software.
In an embodiment, the processor 1001 executes the enabling of the system hardware resource corresponding to the minimum resource set, and when the enabled system hardware resource is determined as the minimum system hardware resource, specifically, executes:
extracting the minimum hardware resource description information in the minimum resource set, searching the corresponding system hardware resource according to the minimum hardware resource description information, and determining the searched system hardware resource as the minimum system hardware resource;
enabling the minimum system hardware resources.
In one embodiment, before executing the step of obtaining a preset minimum resource set when the installation instruction for the operating system is detected, the processor 1001 is further configured to:
setting a minimum resource set;
when executing the set minimum resource set, the processor 1001 is specifically configured to execute:
randomly selecting one processor from the at least one processor as a target processor;
respectively calculating the sum of memory access delay and storage access delay between each node in at least one node and the target processor to obtain delay sum values respectively corresponding to the nodes; each node comprises a section of memory and a section of storage in the hard disk;
selecting the node corresponding to the minimum delay sum value as a target node according to the delay sum values corresponding to the nodes respectively;
and determining the information of the target processor and the information of the target node as minimum hardware resource description information, and adding the minimum hardware resource description information to a minimum resource set.
According to the embodiment of the invention, the preset minimum resource set is obtained, the system hardware resource corresponding to the minimum resource set is started, the started system hardware resource is determined as the minimum system hardware resource, and the operating system is installed through the minimum system hardware resource, so that the whole system hardware resource can be prevented from participating in the installation process of the operating system, and therefore, a large number of cross-node accesses can be avoided, the time for installing the operating system can be effectively shortened, and the operating system can be quickly installed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. An operating system installation method, comprising:
when the system is powered on and started, the whole system carries out self-checking and reports hardware resources of the whole system;
when an installation instruction for an operating system is detected, acquiring a preset minimum resource set;
enabling system hardware resources corresponding to the minimum resource set, and determining the enabled system hardware resources as minimum system hardware resources;
and installing the operating system through the minimum system hardware resource, and starting the system-wide hardware resource through the installed operating system when the system is restarted.
2. The method as claimed in claim 1, wherein said obtaining a preset minimum resource set when the installation instruction for the operating system is checked specifically comprises:
when an installation instruction aiming at an operating system is checked, selecting a minimum resource installation mode in a Basic Input Output System (BIOS), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is restarted;
the installing the operating system through the minimum system hardware resource and starting the full system hardware resource through the installed operating system when the system is restarted specifically includes:
installing the operating system through the minimum system hardware resource, selecting a full resource mode in a BIOS when the system is restarted, and starting a full system hardware resource corresponding to the full resource mode through the installed operating system when the system is restarted again;
wherein the list information of the minimum resource set is maintained by the BIOS.
3. The method as claimed in claim 1, wherein said obtaining a preset minimum resource set when the installation instruction for the operating system is checked specifically comprises:
when an installation instruction for an operating system is checked, setting a BIOS (basic input/output System) to be a minimum resource installation mode through a mainboard management controller (BMC), and acquiring a preset minimum resource set corresponding to the minimum resource installation mode when the system is started;
the installing the operating system through the minimum system hardware resource and starting the full system hardware resource through the installed operating system when the system is restarted specifically includes:
installing the operating system through the minimum system hardware resource, setting a BIOS (basic input/output System) to be in a full resource mode through a BMC (baseboard management controller) when the system is restarted, and starting a full system hardware resource corresponding to the full resource mode through the installed operating system;
wherein the list information of the minimum resource set is maintained by management software.
4. The method of any of claims 1-3, wherein the enabling system hardware resources corresponding to the minimum set of resources and determining the enabled system hardware resources as minimum system hardware resources comprises:
extracting the minimum hardware resource description information in the minimum resource set, searching the corresponding system hardware resource according to the minimum hardware resource description information, and determining the searched system hardware resource as the minimum system hardware resource;
enabling the minimum system hardware resources.
5. The method of claim 1, wherein prior to the step of obtaining a preset minimum set of resources when an installation instruction for an operating system is detected, further comprising:
setting a minimum resource set;
the setting of the minimum resource set includes:
randomly selecting one processor from the at least one processor as a target processor;
respectively calculating the sum of memory access delay and storage access delay between each node in at least one node and the target processor to obtain delay sum values respectively corresponding to the nodes; each node comprises a section of memory and a section of storage in the hard disk;
selecting the node corresponding to the minimum delay sum value as a target node according to the delay sum values corresponding to the nodes respectively;
and determining the information of the target processor and the information of the target node as minimum hardware resource description information, and adding the minimum hardware resource description information to a minimum resource set.
6. An operating system installation device, comprising:
the acquisition module is used for carrying out self-checking and reporting hardware resources of the whole system when the system is powered on and started;
the acquisition module is used for acquiring a preset minimum resource set when an installation instruction aiming at the operating system is detected;
the starting determining module is used for starting the system hardware resources corresponding to the minimum resource set and determining the started system hardware resources as the minimum system hardware resources;
and the installation module is used for installing the operating system through the minimum system hardware resource and starting the full system hardware resource through the installed operating system when the system is restarted.
7. The apparatus of claim 6,
the obtaining module is specifically configured to select a minimum resource installation mode in a basic input output system BIOS when an installation instruction for an operating system is checked, and obtain a preset minimum resource set corresponding to the minimum resource installation mode when the system is restarted;
the installation module is specifically configured to install the operating system through the minimum system hardware resource, select a full resource mode in a BIOS when the system is restarted, and start a full system hardware resource corresponding to the full resource mode through the installed operating system when the system is restarted again;
wherein the list information of the minimum resource set is maintained by the BIOS.
8. The apparatus of claim 6,
the obtaining module is specifically configured to set the BIOS to a minimum resource installation mode by the motherboard management controller BMC when an installation instruction for the operating system is checked, and obtain a preset minimum resource set corresponding to the minimum resource installation mode when the system is started;
the installation module is specifically configured to install the operating system through the minimum system hardware resource, set the BIOS to a full resource mode through the BMC when the system is restarted, and start a full system hardware resource corresponding to the full resource mode through the installed operating system;
wherein the list information of the minimum resource set is maintained by management software.
9. The apparatus of any of claims 6-8, wherein the enablement determination module comprises:
the extracting and searching unit is used for extracting the minimum hardware resource description information in the minimum resource set, searching the corresponding system hardware resource according to the minimum hardware resource description information, and determining the searched system hardware resource as the minimum system hardware resource;
an enabling unit for enabling the minimum system hardware resource.
10. The apparatus of claim 6, further comprising:
the setting module is used for setting a minimum resource set;
the setting module includes:
a selecting unit for randomly selecting one processor among the at least one processor as a target processor;
a calculating unit, configured to calculate a sum of memory access delay and storage access delay between each node in at least one node and the target processor, respectively, so as to obtain a delay sum value corresponding to each node; each node comprises a section of memory and a section of storage in the hard disk;
the selecting unit is further configured to select a node corresponding to the minimum delay total value as a target node according to the delay total values respectively corresponding to the nodes;
and the adding unit is used for determining the information of the target processor and the information of the target node as minimum hardware resource description information and adding the minimum hardware resource description information to a minimum resource set.
CN201510609059.5A 2015-09-22 2015-09-22 Operating system installation method and device Active CN106547583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510609059.5A CN106547583B (en) 2015-09-22 2015-09-22 Operating system installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510609059.5A CN106547583B (en) 2015-09-22 2015-09-22 Operating system installation method and device

Publications (2)

Publication Number Publication Date
CN106547583A CN106547583A (en) 2017-03-29
CN106547583B true CN106547583B (en) 2020-02-21

Family

ID=58365451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510609059.5A Active CN106547583B (en) 2015-09-22 2015-09-22 Operating system installation method and device

Country Status (1)

Country Link
CN (1) CN106547583B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958742A (en) * 2017-05-26 2018-12-07 华为技术有限公司 A kind of method of batch installing operating system, relevant device and system
CN108255527A (en) * 2017-12-05 2018-07-06 华为技术有限公司 The method and apparatus of activation system, computing device, readable storage medium storing program for executing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1954627A (en) * 2004-05-18 2007-04-25 基奥赛拉无线公司 Modular data components for wireless communication devices
CN1963769A (en) * 2005-11-10 2007-05-16 国际商业机器公司 Method, device and system for provisioning resources

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9086937B2 (en) * 2012-05-16 2015-07-21 Apple Inc. Cloud-based application resource files

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1954627A (en) * 2004-05-18 2007-04-25 基奥赛拉无线公司 Modular data components for wireless communication devices
CN1963769A (en) * 2005-11-10 2007-05-16 国际商业机器公司 Method, device and system for provisioning resources

Also Published As

Publication number Publication date
CN106547583A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
US20210342747A1 (en) Method and system for distributed deep machine learning
US8739167B2 (en) Method and device for balancing load of multiprocessor system by sequencing migration priorities based on memory size and calculated execution time
KR101931007B1 (en) Initialization trace of a computing device
US10387261B2 (en) System and method to capture stored data following system crash
US9223596B1 (en) Virtual machine fast provisioning based on dynamic criterion
US9658930B2 (en) Method and device for managing hardware errors in a multi-core environment
US10635473B2 (en) Setting support program, setting support method, and setting support device
US9612641B2 (en) Adjusting the connection idle timeout in connection pools
WO2018036104A1 (en) Virtual machine deployment method, system and physical server
US20190220362A1 (en) Executing computer instruction including asynchronous operation
CN111352797A (en) System and method for monitoring software application processes
US20190303172A1 (en) Information processing apparatus, device assignment method, and computer readable medium
JP2020053013A (en) Request processing method and device
US10491736B2 (en) Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS
CN106547583B (en) Operating system installation method and device
CN110187922B (en) Method, device, equipment and storage medium for setting and verifying BIOS (basic input output System) parameters
CN111857854A (en) Shutdown resource loading method and device, storage medium and electronic equipment
US20200371882A1 (en) Method, Apparatus, Device and Medium for Starting Virtual Machine
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
CN102455919A (en) Automatic optimization setting method for basic input output system(BIOS)
CN107357400B (en) Method for automatically starting up hard disk with specified operating system type
CN111400113B (en) Complete machine self-checking method, device and system of computer system
TW201327139A (en) Method for processing node replacement and server system using the same
US11244055B1 (en) Management controller to bios root of trust bypass implant detection and remediation
US20240020103A1 (en) Parallelizing data processing unit provisioning

Legal Events

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

Effective date of registration: 20200423

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310053, Binjiang District, Zhejiang, Hangzhou

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211223

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.