CN107562466B - Method and equipment for installing computer operating system - Google Patents

Method and equipment for installing computer operating system Download PDF

Info

Publication number
CN107562466B
CN107562466B CN201710602781.5A CN201710602781A CN107562466B CN 107562466 B CN107562466 B CN 107562466B CN 201710602781 A CN201710602781 A CN 201710602781A CN 107562466 B CN107562466 B CN 107562466B
Authority
CN
China
Prior art keywords
computer
address
operating system
boot
boot loader
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
CN201710602781.5A
Other languages
Chinese (zh)
Other versions
CN107562466A (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.)
Huawei 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 CN201710602781.5A priority Critical patent/CN107562466B/en
Publication of CN107562466A publication Critical patent/CN107562466A/en
Application granted granted Critical
Publication of CN107562466B publication Critical patent/CN107562466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The scheme provides a method and equipment for installing a computer operating system, which comprises the following steps: the computer receives the network bootstrap program sent by the management server, stores the network bootstrap program into a storage space pointed by a first address in a computer hard disk, and updates the first boot loader into a second boot loader with a boot address of a first boot item as the first address; and restarting the computer, starting a second boot loader from the hard disk by the computer, running the network bootstrap program, downloading the operating system from the operating system server, installing the operating system in a storage space pointed by the second address in the hard disk, and updating the second boot loader into a third boot loader with the boot address of the first boot item as the second address. In the implementation process of the scheme, the starting mode of the computer is always started from the hard disk, the starting mode of the computer does not need to be manually changed, and the automatic installation of an operating system of computers in batches can be realized.

Description

Method and equipment for installing computer operating system
Technical Field
The invention relates to the technical field of information, in particular to a method and equipment for installing a computer operating system.
Background
The operating system is installed for the computer, particularly in a cloud computing scene, the operating system is installed for a large number of computers, usually, the operating system is installed in batch through a network in a manual mode, a typical installation scene needs to start the computer from a network bootstrap program, after the operating system is installed, the computer is started from a hard disk, the operating system installation is completed, a starting mode needs to be frequently set on each computer in sequence manually, and large-scale batch automatic installation of the operating system cannot be realized.
Disclosure of Invention
In one aspect, an embodiment of the present invention provides a method for installing a computer operating system, where the computer includes a hard disk; the hard disk stores a first boot loader of the computer; the starting mode of the computer is starting from the hard disk; the computer is in communication with an operating system server; the operating system server stores an operating system; the method comprises the following steps:
the computer receives a network bootstrap program sent by the management server and stores the network bootstrap program in a storage space pointed by the first address of the hard disk; the network boot program includes the operating system server address;
the computer updates the first boot loader to a second boot loader, and the boot address of the first boot entry of the second boot loader is the first address. And restarting the computer, wherein the computer starts the second loader from the hard disk. In a specific implementation method, according to a boot method of the computer from the hard disk, when the computer is restarted, a Basic Input/Output System (BIOS) of the computer first reads the second boot loader from the hard disk. The computer starts the network boot program from the first address according to the second boot loader.
The computer acquires the operating system from the operating system server according to the operating system server address in the network bootstrap program, and installs the operating system into the storage space pointed by the second address of the hard disk.
And the computer updates the second boot loader into a third boot loader, wherein the boot address of the first boot item of the third boot loader is the second address. At this time, the computer reads the third boot loader from the hard disk according to the boot manner of booting from the hard disk, and runs the first boot item of the third boot loader, that is, the operating system.
In the implementation process of the method of the embodiment, the starting mode of the computer is always started from the hard disk, and the starting mode does not need to be changed. Therefore, the management server issues the network boot programs corresponding to the operating systems to the computers of the operating systems to be installed in batch, and the computers of the operating systems to be installed can realize the installation of the corresponding operating systems by the method in the embodiment.
Optionally, the BIOS of the computer reads out the first boot loader stored on the hard disk, and runs the first boot loader.
Optionally, the first boot Loader may be a multiple operating system boot manager (GRUB) or a Linux Loader (LILO).
Optionally, the computer updates the first boot loader to the second boot loader, and an implementation is that the second boot loader is a new boot loader with respect to the first boot loader, and a boot address of a first boot entry of the second boot loader is a first address. In another implementation, the second boot loader is obtained by updating the boot address of the first boot entry of the first boot loader to the first address.
Optionally, the computer updates the second boot loader to the third boot loader, and an implementation is that the third boot loader is a new boot loader with respect to the second boot loader, and a boot address of a first boot entry of the third boot loader is a second address. In another implementation, the third boot loader is obtained by updating the boot address of the first boot entry of the second boot loader to the second address.
With reference to the first aspect, in a first implementation method of the first aspect, after the computer installs the operating system in the storage space pointed to by the second address of the hard disk and updates the second boot loader to the third boot loader, the computer is restarted to execute the step of running the operating system. Restarting the computer can detect whether the installation of the operating system was successful, and is a necessary step in subsequently running the operating system.
With reference to the first aspect, in a second implementation method of the first aspect, when the computer detects that the operating system fails to be installed in the storage space pointed to by the second address of the hard disk, the computer is restarted. And after the computer is restarted, reading the second boot loader from the hard disk again, executing the network boot program and subsequent steps thereof in the method of the first aspect, and reinstalling the operating system.
The computer can be restarted according to a preset rule or a management server instruction in the embodiment of the invention. The preset rule can be configured in the BIOS when the computer is restarted according to the preset rule required by the computer.
In a second aspect, an embodiment of the present invention provides a system for installing a computer operating system, including the computer, a management server and an operating system server; the computer comprises a hard disk; the hard disk stores a first boot loader; the starting mode of the first computer is starting from the hard disk; the computer, the management server and the operating system server are configured to execute various aspects of the first aspect of the embodiments of the present invention.
In a third aspect, embodiments of the present invention provide a computer, including a hard disk; the hard disk stores a first boot loader of the computer; the starting mode of the computer is starting from the hard disk; the computer is in communication with an operating system server; the operating system server stores an operating system; in one implementation, the computer device includes various units, which are respectively configured to execute various aspects of the first aspect of the embodiments of the present invention. In another implementation, the computer comprises an interface and a processor, each configured to perform the various aspects of the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer program product and a non-volatile computer-readable storage medium, where the computer program product and the non-volatile computer-readable storage medium contain computer instructions, the non-volatile storage medium of the computer instructions and the computer program product, and the computer executes the computer instructions to implement various aspects of the first aspect of the embodiments of the present invention.
In a fifth aspect, an embodiment of the present invention provides a management server, where the management server may be configured to manage a computer to install an operating system, where the computer includes a hard disk; the hard disk stores a first boot loader of the computer; the starting mode of the computer is starting from the hard disk; the computer is in communication with an operating system server; the operating system server stores an operating system; the management server comprises a processor and an interface; the processor is used for sending a network bootstrap program to the computer through the interface and confirming a storage space pointed by a first address of the network bootstrap program stored in the hard disk, wherein the network bootstrap program comprises an address of the operating system server;
the processor is further configured to send a first instruction to the computer through the interface, where the first instruction is used to instruct the computer to update the first boot loader to a second boot loader, where a boot address of a first boot entry of the second boot loader is a first address, confirm that the computer successfully updates the first boot loader to the second boot loader, send a second instruction to the computer, where the second instruction is used to restart the computer, and when the computer receives the second instruction and restarts according to a manner of booting from the hard disk, the computer reads the second boot loader from the hard disk, starts the network boot program according to the first address, and after obtaining a storage space to which the second address points and which is installed in the hard disk after the operating system is installed from an operating system server, the processor is further used to send a third instruction to the computer through the interface, the third instruction is used for instructing the computer to update the second boot loader into a third boot loader; wherein, the boot address of the first boot entry of the third boot loader is the second address.
With reference to the fifth aspect, in the first implementation method of the first aspect, the method further includes: when the management server detects that the operating system is not installed, the processor is further configured to send a fourth instruction to the computer through the interface, where the fourth instruction is used to instruct the computer to restart. And after the computer is restarted, reading the second boot loader from the hard disk again, and executing the network boot program and subsequent steps thereof in the method of the fifth aspect by the management server to reinstall the operating system.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below.
FIG. 1 is a schematic diagram of a computer management system;
FIG. 2 is a schematic diagram of a management server;
FIG. 3 is a diagram illustrating the relationship between a network boot program and an operating system server;
FIG. 4 is a flow chart of a computer installing an operating system;
FIG. 5 is a block diagram of a computer according to an embodiment of the present invention;
fig. 6 is a block diagram of a computer according to an embodiment of the present invention.
Detailed Description
The computer management system shown in fig. 1 includes a computer 100, a management server 101, and an operating system server 320, and the computer 100 communicates with the management server 101 and the operating system server 320. The management server 101 has stored thereon a network boot 310. The os server 320 stores the os 103, and the os 103 may be a Windows or Linux or other os, which is not limited in this embodiment. The computer 100 includes a hard disk 110, and a boot loader 111 is stored on the hard disk 110. When the computer 100 is started from the hard disk 110, a Basic Input/Output System (BIOS) 120 of the computer 100 reads the boot loader 111 stored in the hard disk 110 and runs the boot loader 111. Here, the boot Loader 111 may be a multiple operating system boot manager (GRUB), a Linux Loader (LILO), or others, which is not limited in this embodiment. The management server 101 is configured as shown in fig. 2, and includes a processor 201 and an interface 202. The processor 201 may include a Central Processing Unit (CPU) and a memory, wherein the CPU may be one or more. The processor 201 may also be a Field Programmable Gate Array (FPGA), or a combination of an FPGA and a CPU, etc. The Interface 202 may be a Network Interface Card (NIC), and the like, which is not limited in this embodiment of the present invention. The management server 101 may also contain a storage device for storing the network boot 310.
As shown in FIG. 3, network boot 310 has stored thereon operating system server address 311, operating system server address 311 pointing to operating system server 320. Computer 100 communicates with operating system server 320 to obtain operating system 103 based on operating system server address 311 stored in network boot 310.
The present embodiment provides a method for installing an operating system as shown in fig. 4. The specific process is as follows:
401, the computer 100 receives the network boot program 310 sent by the management server 101, and stores the network boot program 310 in the storage space pointed to by the first address in the hard disk 110. Where the network boot program 310 is compiled into a program recognizable by the boot loader in this embodiment.
In one implementation, the processor 201 of the management server 101 sends the network boot program 310 to the computer 100 through the interface 202, and confirms the storage space pointed to by the first address of the network boot program 310 stored in the hard disk 110, where the network boot program includes the address of the operating system server 320.
402, the computer 100 updates the boot loader 111 to be the first boot loader, and the boot address of the first boot entry of the first boot loader is the first address. The first start-up entry is the network bootstrap 310. In the embodiment of the present invention, the boot loader 111 is updated to be the first boot loader, and one implementation is that the first boot loader is a new boot loader with respect to the boot loader 111, and the boot address of the first boot entry of the first boot loader is the first address. In another implementation, the first boot loader is obtained by updating the boot address of the first boot entry of the boot loader 111 to the first address.
In one implementation, the processor 201 of the management server 101 sends a first instruction to the computer 100 through the interface 202, where the first instruction is used to instruct the computer 100 to update the boot loader 111 to the first boot loader, confirm that the computer 100 successfully updates the boot loader 111 to the first boot loader, and send a second instruction to the computer 100, where the second instruction is used to restart the computer 100.
403, the computer 100 is restarted, starting the first boot loader from the hard disk 110. When the computer 100 is restarted, the BIOS120 reads and starts the first boot loader in the hard disk 110 according to its boot style, i.e., from the hard disk 110.
404, the computer 100 boots the network boot 310 from the memory space pointed to by the first boot loader from the first address. After the first bootloader is started, the BIOS120 executes the first boot entry according to the boot address of the first boot entry of the first bootloader, that is, according to the first address, starts the network boot program 310 stored in the storage space pointed to by the first address.
405, computer 100 obtains operating system 103 from operating system server 320 according to address 311 of operating system server 320 in network boot 310, and installs operating system 103 in the memory space pointed to by the second address of hard disk 110. During installation of operating system 103, computer 100 updates the first bootloader to a second bootloader, where the boot address of the first bootloader of the second bootloader is the second address. At this time, the first boot item of the second boot loader stored in the hard disk 110 is the installed operating system 103, and when the computer 100 boots from the hard disk, the BIOS120 reads and executes the second boot loader, and the second boot loader executes the operating system 103. In the embodiment of the present invention, the first boot loader is updated to the second boot loader, and one implementation is that the second boot loader is a new boot loader with respect to the first boot loader, and the boot address of the first boot entry of the second boot loader is the second address. In another implementation, the second boot loader is obtained by updating the boot address of the first boot entry of the first boot loader to the second address.
In one implementation, the processor 201 of the management server 101 sends a third instruction to the computer 100 through the interface 202, where the third instruction is used to instruct the computer 100 to update the first boot loader to the second boot loader.
Computer 100 detects whether operating system 103 is installed in the memory space pointed to by the second address of hard disk 110. If the installation of the operating system 103 fails, the computer 100 is restarted, and the flow 403 and 405 are executed according to the mode started from the hard disk 110 to reinstall the operating system 103.
After the computer 100 detects that the operating system 103 is successfully installed in the storage space pointed to by the second address of the hard disk 110, and the first boot loader is updated to the second boot loader, the computer 100 is restarted, and the operating system 103 is started and executed according to the mode started from the hard disk 110.
In the implementation process of the method of the embodiment, the starting mode of the computer is always started from the hard disk, and the starting mode does not need to be changed. Therefore, the management server can issue the network bootstrap program corresponding to the operating system to a plurality of computers to be installed with the operating system in batch, and the computers to be installed with the operating system can be installed with the operating system by the method in the embodiment.
The computer can be restarted according to a preset rule or a management server instruction in the embodiment of the invention. Wherein, when the computer is restarted, the preset rule can be configured in the BIOS 120.
Corresponding to the method in the embodiment of the present invention, the specific structure of the computer 100 is shown in fig. 5, and includes a receiving unit 510, a storing unit 520, an updating unit 530, a starting unit 540, an obtaining unit 550, and an installing unit 560. The receiving unit 510 is configured to receive the network bootstrap 310 sent by the management server 101; a storage unit 520, configured to store the network boot program 310 in a storage space pointed to by the first address in the hard disk 110; an updating unit 530, configured to update the boot loader 111 to a first boot loader, where a boot address of a first boot entry of the first boot loader is a first address; the booting unit 540 is used for rebooting the computer 100, and includes a first boot loader from the hard disk 110, and booting the network boot program 310 from the memory space pointed by the first address according to the first boot loader; an acquisition unit 550 configured to acquire the operating system 103 from the operating system server 320 according to the address 311 of the operating system server 320 in the network boot program 310; an installation unit 560 for installing the operating system 103 to the memory space pointed to by the second address of the hard disk 110; the updating unit 530 is further configured to update the first bootloader to a second bootloader when the operating system 103 is installed by the installing unit 560, where a boot address of a first boot entry of the first bootloader is a second address.
The booting unit 540 is further configured to reboot the computer 100 after the operating system 103 is installed and the first bootloader is updated to the second bootloader, and boot the operating system 103 according to the memory space pointed to by the second bootloader from the second address.
The booting unit 540 is further configured to reboot the computer 100 after the operating system 103 fails to be installed, boot the network boot program 310 according to the storage space pointed to by the first boot loader from the second address, and reinstall the operating system 103.
The specific implementation of the computer 100 shown in fig. 5 can refer to the foregoing embodiments, wherein each unit can be implemented by a corresponding hardware chip, for example, the receiving unit 510 corresponds to an interface card chip, the storage unit 520 corresponds to a storage chip, the updating unit 530 corresponds to an updating chip, the starting unit 540 corresponds to a starting chip, the obtaining unit 550 corresponds to a obtaining chip, and the installing unit 560 corresponds to an installing chip. In another implementation, one or more of the units may be integrated on one hardware chip. Accordingly, embodiments of the present invention provide a non-volatile storage medium and a computer program product containing computer instructions, which are executed by a processor of a computer for implementing the solution described in the embodiments of the present invention.
The structure of the computer 100 according to the embodiment of the present invention, as shown in fig. 6, includes a processor 601 and an interface 602, where the processor 601 may include a Central Processing Unit (CPU) and a memory, where the CPU may be one or more. The processor 601 may also be a Field Programmable Gate Array (FPGA), a combination of an FPGA and a CPU, or the like, or a combination of a CPU and a BIOS. The Interface 602 may be a Network Interface Card (NIC), and the like, which is not limited in this embodiment of the present invention. The interface 602 is configured to receive the network boot program 310 sent by the management server 101, obtain the operating system 103 from the operating system server 320 according to the address 311 of the operating system server 320 in the network boot program 310, and the processor 601 is configured to perform other processes shown in fig. 4. The embodiment of the present invention will not be described in detail.
The hardware architecture of the computer in the embodiment of the present invention may be an Intel limited reduced instruction set processor x86(Intel x86, x86), an Arm limited reduced instruction set processor (advanced RISC Machines, Arm), a MIPS limited reduced instruction set processor (MIPS), and an optimized reduced instruction set processor (performance optimization with enhanced RISC, PowerPC), which is not limited in this embodiment. For computers with different hardware architectures, when installing an operating system, only a network bootstrap program corresponding to the hardware architecture needs to be issued for the computer. The operating system to be installed includes, but is not limited to, Windows and Linux, which is not limited in this embodiment. The hard disk in the embodiment of the present invention may be a physical hard disk, such as a mechanical hard disk or a solid state hard disk, and may also be a Logical Unit (LU) or a volume. Wherein LU is also called logical unit number. In a virtualization scenario, a computer in the embodiment of the present invention may also be a Virtual Machine (VM), and according to the scheme provided by the embodiment of the present invention, an operating system may be installed in batch for a Virtual Machine, without manually and frequently modifying a start setting, so that the operating system is installed in batch for the Virtual Machine.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the division of the units in the above-described apparatus embodiments is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.

Claims (15)

1. A computer operating system installation method is characterized in that the computer comprises a hard disk; the hard disk stores a first boot loader of the computer; the starting mode of the computer is starting from the hard disk; the computer is in communication with an operating system server; the operating system server stores an operating system; the method comprises the following steps:
the computer receives a network bootstrap program sent by a management server, and stores the network bootstrap program in a storage space pointed by a first address in the hard disk; the network boot program includes an address of the operating system server;
the computer updates the first boot loader to a second boot loader, and the boot address of the first boot entry of the second boot loader is the first address;
the computer is restarted, and the second boot loader is started from the hard disk;
the computer starts the network boot program from the first address according to the second boot loader;
the computer acquires the operating system from the operating system server according to the address of the operating system server in the network bootstrap program, and installs the operating system into a storage space pointed by a second address of the hard disk;
and the computer updates the second boot loader into a third boot loader, wherein the boot address of the first boot item of the third boot loader is the second address.
2. The method of claim 1, wherein the method further comprises:
and when the computer installs the operating system into the storage space pointed by the second address of the hard disk and updates the second boot loader into the third boot loader, restarting the computer.
3. The method of claim 1, wherein the method further comprises:
and the computer is restarted after detecting that the operating system is installed in the storage space pointed by the second address of the hard disk and fails.
4. A computer management system, characterized in that the computer management system comprises a computer, a management server and an operating system server; the computer comprises a hard disk; the hard disk stores a first boot loader; the starting mode of the computer is starting from the hard disk;
wherein, the management server is used for sending a network bootstrap program to the computer; wherein the network boot program contains an address of the operating system server;
the computer is used for receiving the network bootstrap program and storing the network bootstrap program in a storage space pointed by the first address of the hard disk; the computer is further configured to update the first boot loader to a second boot loader, where a boot address of a first boot entry of the second boot loader is a first address; the computer is restarted and obtains the address of the operating system server according to the network bootstrap program;
the operating system server is used for providing the operating system for the computer;
the computer is further configured to obtain the operating system from the operating system server according to the address of the operating system server, install the operating system in a storage space to which a second address of the hard disk points, and update the second boot loader to a third boot loader, where a boot address of a first boot item of the third boot loader is the second address.
5. The system of claim 4, wherein:
the computer is also used for restarting after the computer installs the operating system into the storage space pointed by the second address of the hard disk and updates the second boot loader into the third boot loader.
6. The system of claim 4,
and the computer is also used for restarting after detecting that the operating system is installed in the storage space pointed by the second address of the hard disk.
7. A computer, wherein said computer comprises a hard disk; the hard disk stores a first boot loader; the starting mode of the computer is starting from the hard disk; the computer is in communication with an operating system server; the operating system server stores an operating system; the computer also comprises a receiving unit, a storage unit, an updating unit, a starting unit, an obtaining unit and an installing unit;
the receiving unit is used for receiving a network bootstrap program sent by a management server;
the storage unit is used for storing the network boot program in a storage space pointed by a first address in the hard disk; the network boot program includes an address of the operating system server;
the updating unit is configured to update the first boot loader to a second boot loader, where a boot address of a first boot entry of the second boot loader is the first address;
the starting unit is used for restarting, starting the second boot loader from the hard disk, and starting the network bootstrap program according to the storage space pointed by the second boot loader from the first address;
the obtaining unit is used for obtaining the operating system from the operating system server according to the address of the operating system server in the network bootstrap program;
the installation unit is used for installing the operating system into a storage space pointed by a second address of the hard disk;
the updating unit is further configured to update the second boot loader to a third boot loader; wherein the boot address of the first boot entry of the third boot loader is the second address.
8. The computer of claim 7, wherein the boot unit is further configured to reboot after the installation unit installs the operating system to the storage space pointed to by the second address of the hard disk and the update unit updates the second boot loader to the third boot loader.
9. The computer of claim 7, wherein the booting unit is further configured to reboot the computer after detecting that the second address pointing to the storage space from which the installation unit installs the operating system to the hard disk fails.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the steps of:
receiving a network bootstrap program sent by a management server, and storing the network bootstrap program in a storage space pointed by a first address in a hard disk of the computer; the network boot program contains an address of an operating system server; the operating system server stores an operating system, the hard disk stores a first boot loader of a computer, and the computer is booted from the hard disk;
updating the first boot loader to a second boot loader, wherein a boot address of a first boot entry of the second boot loader is the first address;
restarting, starting the second boot loader from the hard disk;
starting the network boot program from the first address according to the second boot loader;
acquiring the operating system from the operating system server according to the address of the operating system server in the network boot program, and installing the operating system into a storage space pointed by a second address of the hard disk;
and updating the second boot loader to a third boot loader, wherein the boot address of the first boot item of the third boot loader is the second address.
11. The computer-readable storage medium of claim 10, wherein the computer-readable storage medium stores computer instructions for further causing a computer to perform:
and when the computer installs the operating system into the storage space pointed by the second address of the hard disk and updates the second boot loader into the third boot loader, restarting the computer.
12. The computer-readable storage medium of claim 10, wherein the computer-readable storage medium stores computer instructions for further causing a computer to perform:
and restarting the operating system after detecting that the operating system is installed in the storage space pointed by the second address of the hard disk.
13. A computer, wherein said computer comprises a hard disk; the hard disk stores a first boot loader; the starting mode of the computer is starting from the hard disk; the computer is in communication with an operating system server; the operating system server stores an operating system; the computer further comprises a processor and an interface; wherein the content of the first and second substances,
the interface is used for receiving a network bootstrap program sent by the management server;
the processor is used for storing the network bootstrap program in a storage space pointed by a first address in the hard disk; the network boot program comprises an address of the operating system server, the first boot loader is updated to be a second boot loader, a boot address of a first boot item of the second boot loader is the first address, the second boot loader is restarted, the second boot loader is started from the hard disk, and the network boot program is started from the first address according to the second boot loader;
the interface is further used for acquiring the operating system from the operating system server according to the address of the operating system server in the network bootstrap program;
the processor is further configured to install the operating system in a storage space to which a second address of the hard disk points, update the second boot loader to a third boot loader, and set a boot address of a first boot item of the third boot loader to the second address.
14. The computer of claim 13, wherein the processor is further configured to reboot after installing the operating system to the memory space pointed to by the second address of the hard disk and updating the second boot loader to the third boot loader.
15. The computer of claim 13, wherein the processor is further configured to reboot the computer upon detecting a failure of the operating system to install the memory space pointed to by the second address on the hard disk.
CN201710602781.5A 2017-07-21 2017-07-21 Method and equipment for installing computer operating system Active CN107562466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710602781.5A CN107562466B (en) 2017-07-21 2017-07-21 Method and equipment for installing computer operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710602781.5A CN107562466B (en) 2017-07-21 2017-07-21 Method and equipment for installing computer operating system

Publications (2)

Publication Number Publication Date
CN107562466A CN107562466A (en) 2018-01-09
CN107562466B true CN107562466B (en) 2021-01-08

Family

ID=60974269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710602781.5A Active CN107562466B (en) 2017-07-21 2017-07-21 Method and equipment for installing computer operating system

Country Status (1)

Country Link
CN (1) CN107562466B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1508697A (en) * 2002-12-16 2004-06-30 联想(北京)有限公司 Method and apparatus for realizing protection of computer operation system in hard disk
CN1744040A (en) * 2005-09-27 2006-03-08 胡元志 Method for completely running operating system in multi storage media and its operating system
CN105824678A (en) * 2016-05-17 2016-08-03 浪潮电子信息产业股份有限公司 Method and device for installing operating system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1508697A (en) * 2002-12-16 2004-06-30 联想(北京)有限公司 Method and apparatus for realizing protection of computer operation system in hard disk
CN1744040A (en) * 2005-09-27 2006-03-08 胡元志 Method for completely running operating system in multi storage media and its operating system
CN105824678A (en) * 2016-05-17 2016-08-03 浪潮电子信息产业股份有限公司 Method and device for installing operating system

Also Published As

Publication number Publication date
CN107562466A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
US10496424B2 (en) Reconfiguring virtual machines
CN109478135B (en) Computer system and method for rebooting a computer system
US7694165B2 (en) Automation of bare metal recoveries
US8423991B2 (en) Embedded network device and firmware upgrading method
US8171276B2 (en) Minimal startup mode for performing multiple-reboot configuration
US20060020845A1 (en) Unattended BIOS recovery
US20140359617A1 (en) Patching a Virtual Image
US20200218544A1 (en) Information handling system quick boot
US10747523B2 (en) Methods of updating firmware components, computer systems and memory apparatus
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
CN107533441B (en) Creating operating system volumes
US20230367607A1 (en) Methods and apparatus for hypervisor boot up
CN112445495A (en) Mirroring and recovery method for high-performance computing cluster nodes
CN111475172B (en) Bare metal deployment method and device
US11030047B2 (en) Information handling system and method to restore system firmware to a selected restore point
WO2020222959A1 (en) Snapshot recovery states
US11256519B2 (en) Using a single process to install a UEFI-supported OS or a non-UEFI supported OS on a hardware platform
CN106484442B (en) Server system and method for updating startup mapping file
CN107562466B (en) Method and equipment for installing computer operating system
KR102423056B1 (en) Method and system for swapping booting disk
CN113342365A (en) Operating system deployment method, device, equipment and computer-readable storage medium
US9405559B2 (en) Efficient method of decoupling the downloading of a memory map and execution of a utility program contained in the memory map
CN106201546B (en) Full-scale formatting method and system for large disks in linux system installation processes
US20240036896A1 (en) Generating installation images based upon dpu-specific capabilities

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