CN112083964A - Method for deploying operating system - Google Patents

Method for deploying operating system Download PDF

Info

Publication number
CN112083964A
CN112083964A CN201910517245.4A CN201910517245A CN112083964A CN 112083964 A CN112083964 A CN 112083964A CN 201910517245 A CN201910517245 A CN 201910517245A CN 112083964 A CN112083964 A CN 112083964A
Authority
CN
China
Prior art keywords
operating system
server device
hard disk
processing unit
management controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910517245.4A
Other languages
Chinese (zh)
Other versions
CN112083964B (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.)
Shencloud Technology Co Ltd
Shunda Computer Factory Co Ltd
Original Assignee
Shencloud Technology Co Ltd
Shunda Computer Factory 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 Shencloud Technology Co Ltd, Shunda Computer Factory Co Ltd filed Critical Shencloud Technology Co Ltd
Priority to CN201910517245.4A priority Critical patent/CN112083964B/en
Publication of CN112083964A publication Critical patent/CN112083964A/en
Application granted granted Critical
Publication of CN112083964B publication Critical patent/CN112083964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44584Portable applications, i.e. making applications self-contained, e.g. U3 standard
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

An operating system deployment method is suitable for a server device with a processing unit, a substrate management controller and a plurality of hard disks, wherein the substrate management controller is coupled to a USB storage unit through a USB interface. When the server device is not powered on and started, the host device stores the operating system, the installation program and a plurality of operating system image files in the USB storage unit. After the server device is powered on and started, the processing unit accesses the operating system and the installation program of the USB storage unit through the baseboard management controller. After the processing unit accesses the USB storage unit, the operating system and the installation program are automatically executed to install the operating system image file into each corresponding hard disk.

Description

Method for deploying operating system
Technical Field
The present invention relates to an operating system deployment method, and more particularly, to an operating system deployment method for multiple hard disks on a server.
Background
Generally, in order to facilitate the deployment of an operating system to a device under test (UUT) (e.g., a hard disk) on a server device, a user first creates an image file of the operating system of a source device, and copies, decompresses and installs the image file into each device under test through the server device, thereby enabling the system of the source device to be completely copied to each device under test. Conventionally, when a device to be tested is deployed, a system of a server device is started up in a Preboot eXecution Environment (PXE) manner, and then a remote host computer performs backup installation on each hard disk one by one.
However, the conventional operating system deployment method only installs one device under test of the server device at a time, which is time consuming, and consumes a lot of unnecessary power cost even if the device under test is not installed yet and the system of the server device and all the devices under test must be powered on and started up during the process of transmitting the installation data. Therefore, there is a need for an improved os deployment method.
Disclosure of Invention
The present invention is directed to a method for deploying an operating system, which can greatly reduce the power consumption required for system operation and hard disk operation while waiting for data transmission between a host device and a server device.
To solve the above technical problem, the present invention provides an operating system deployment method, which is suitable for a server device communicatively connected to a host device, wherein the server device has a processing unit, a baseboard management controller and a plurality of hard disks, the baseboard management controller is coupled to a USB storage unit through a USB interface, and the operating system deployment method includes: when the server device is not powered on and started, the host device transmits an operating system, an installation program and a plurality of operating system image files to the baseboard management controller to be stored in the USB storage unit; after the server device is powered on and started, the processing unit accesses the operating system and the installation program of the USB storage unit through the baseboard management controller; and after the processing unit accesses the USB storage unit, the operating system and the installation program are automatically executed so as to install the operating system image file to each corresponding hard disk.
Preferably, the operating system deployment method further includes: after the operating system, the installation program and the operating system image file are stored in the USB storage unit, the host device transmits a power-on starting instruction to the substrate management controller; and after the baseboard management controller receives the power-on starting instruction, the server device starts power-on starting.
Preferably, when the host device transmits the os, the setup program, and the os image to the board management controller, a global state (G-States) of the server device is a G2 state. After the server device is powered on and started, the global state (G-States) of the server device is switched from the G2 state to the G0 state.
Preferably, the operating system deployment method further includes: when the processing unit finishes installing the corresponding operating system image file to the hard disk of the server device, transmitting an installation completion signal to the substrate management controller; the substrate management controller generates mounting completion data according to the mounting completion signal; and outputting an installation completion picture through a display unit after the host device obtains the installation completion data.
Preferably, the installation program further includes a look-up table, wherein the look-up table is used to indicate that a plurality of hard disk identifiers respectively correspond to the os image files. In addition, the processing unit automatically executes the operating system and the installation program after accessing the USB storage unit so as to perform the following steps: the processing unit obtains the hard disk identifier of the hard disk; the processing unit obtains the operating system image files corresponding to the hard disk identifiers of the hard disks according to the comparison table; and the processing unit is used for installing the obtained operating system image file to each corresponding hard disk.
Compared with the prior art, the operating system deployment method provided by the invention has the advantages that even if the system of the server device is not powered on and started, as long as the baseboard management controller of the server device is powered on and can normally access the USB storage unit, a user can pre-store the operating system image files and the installation programs, which need to be backed up and installed on the hard disk in the server device, in the USB storage unit through the host device, and then power on and start the system of the server device for installation. Compared with the conventional method that the system of the server device is started first and then the transmission and installation of the system installation data are carried out through a Preboot eXecution Environment (PXE), the method of the invention greatly reduces the power consumption required by the system operation and the hard disk operation during the period of waiting for the data transmission of the host device and the server device. In addition, through the method of the invention, the next hard disk is installed without waiting for the installation program of the previous hard disk to be completed, thereby greatly reducing the time for deploying the operating system. In addition to saving time and power cost, the operating system deployment method of the invention can more quickly perform backup installation of the operating system on a plurality of hard disks, and the host device can also automatically install the corresponding operating system image file on the corresponding hard disk through the setting of the comparison table, thereby avoiding the problem of artificial installation failure.
[ description of the drawings ]
Other features and advantages of the present invention will become apparent from the following detailed description of the preferred embodiments with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram illustrating a server device and a host device according to an embodiment of the invention.
FIG. 2 is a flowchart illustrating an operating system deployment method according to an embodiment of the invention.
[ detailed description ] embodiments
The embodiments or examples shown in the figures are expressed in a particular manner as set forth below. It is to be understood that the embodiment or examples are not to be construed as limiting. Any alterations and modifications in the described embodiments, and any further applications of the principles of the invention as described herein are contemplated as would normally occur to one skilled in the art to which the invention relates.
Fig. 1 is a schematic diagram illustrating a server device and a host device according to an embodiment of the invention. As shown in fig. 1, the server apparatus 110 includes a baseboard management controller 112, a processing unit 114, and several hard disks HD1, HD2, …, HDn. The host device 120 can be communicatively connected to the server device 110 through a network, and the host device 120 is coupled to the display unit 122, in other embodiments, the display unit 122 can also be disposed in the host device 120, but is not limited thereto. The host device 120 may be a desktop computer, a notebook computer, a tablet computer, or the like. The server device 110 is communicatively connected to the USB storage unit 130 through a USB interface.
In some embodiments of the present invention, as shown in fig. 1, the USB storage unit 130 stores an operating system OS, an installation program APP and at least one operating system image IMG. The operating system image file IMG is mainly used for being installed in hard disks HD1, HD2, … and HDn. The installation program APP is executed in the environment of the operating system OS to install the backup of the operating system image IMG into each of the hard disks HD1, HD2, …, HDn. In some embodiments of the present invention, when the USB storage unit 130 stores a plurality of os images IMG, the installation program APP further includes a comparison table for indicating a target hard disk to which each os image IMG is to be installed, for example, the comparison table includes a plurality of hard disk identifiers and its corresponding os image, each hard disk HD1, HD2, …, HDn also has its own hard disk identifier, and the installation program APP installs the os image IMG corresponding to the hard disk identifier into a hard disk having the same hard disk identifier according to the indication of the comparison table.
It should be appreciated that in some embodiments of the present invention, the USB storage unit 130 may be a storage unit with sufficient storage space, and the operating system OS, the installation program APP and the operating system image IMG are not required to be stored in advance, but the user transmits the operating system OS, the installation program APP and the operating system image IMG to the bmc 112 of the server apparatus 110 through the host device 120 for being stored in the USB storage unit 130 through the USB interface when the user wants to install or backup the operating system to each hard disk. Thus, the remote user can determine the OS to be installed on each hard disk in the server apparatus 110 by transmitting the appropriate OS, the installation program APP, and the OS image IMG to the bmc 112 through the host apparatus 120 in a state where the system of the server apparatus 110 is not powered on and started. Similarly, in the embodiment where the installation program APP further includes the comparison table, the user can also edit or modify the comparison table through the host device 120 to determine the corresponding operating system image IMG to be installed on each of the hard disks HD1, HD2, … and HDn.
The operation flow of the operating system deployment method of the present invention is described with reference to FIG. 1 and FIG. 2. First, in step S202, the host device 120 transmits the operating system OS, the installation program APP and at least one operating system image IMG to the bmc 112 of the server device 110. Next, in step S204, the bmc 112 stores the OS, the installation program APP and at least one OS image IMG transmitted by the host device 120 in the USB storage unit 130 through the USB interface. It should be understood that in some embodiments of the present invention, during the period between the step S202 of the host device 120 transmitting the OS, the installation program APP and the at least one OS image IMG and the step S204 of the bmc 112 storing the OS, the global state (G-States) of the server device 110 may be the G2 state, in other words, the system of the server device 110 is not started, and only the bmc 112 is powered on.
Then, after the OS, the installation program APP and the at least one OS image IMG are stored in the USB storage unit 130, in step S206, the host device 120 transmits a power-on start command to the bmc 112. Next, in step S208, the bmc 112 notifies a component (e.g., a platform Path Controller (PCH) or a microcontroller CPLD for power management) in the server device 110 according to the power-on start command to perform a power-on procedure, so as to power-on start the server device 110, and thus after the power-on start procedure is completed, the global state (G-States) of the server device 110 is switched from the G2 state to the G0 state. In this embodiment, the components related to the power-on startup procedure may be the processing unit 114 and/or a power management component (not shown), the processing unit 114 may execute a startup BIOS procedure, and the power management component provides operating power to the components of the server device 110.
In step S210, the processing unit 114 of the server apparatus 110 automatically executes an operating system OS, such as Linux or Windows, within the USB storage unit 130 according to a default. Then, after the OS is running, in step S212, the processing unit 114 automatically executes an installation program APP (e.g., clonazilla, etc.) to decompress the OS image IMG in the USB storage unit 130 and simultaneously install the corresponding hard disks HD1, HD2, …, HDn.
In some embodiments of the present invention, when the USB storage unit 130 stores more than two os images IMG, the processing unit 114 further obtains the hard disk identifier of each hard disk HD1, HD2, …, HDn in step S212. On the other hand, the installation program APP may further include a comparison table for indicating the hard disk identifiers corresponding to the operating system image files IMG, so as to determine the operating system image files IMG required to be installed in correspondence with the hard disks HD1, HD2, …, HDn after comparing the hard disk identifiers of the hard disks HD1, HD2, …, HDn. For example, when the processing unit 114 wants to install the operating system image IMG to the hard disk HD1, the processing unit 114 obtains the operating system image IMG corresponding to the hard disk identifier of the hard disk HD1 in the look-up table, and installs the obtained operating system image IMG into the hard disk HD 1. Therefore, the backup installation of the required operating system can be carried out on each hard disk installed on the server according to the design mode or the requirement.
Then, when the processing unit 114 completes the installation of the operating systems of all the hard disks HD1, HD2, …, HDn of the installation server device 110, in step S214, the processing unit 114 transmits an installation completion signal to the bmc 112, and the bmc 112 accordingly transmits installation completion data to the host device 120 according to the installation completion signal. Finally, in step S216, when the host device 120 receives the mounting completion data transmitted by the bmc 112, the mounting completion screen is output through the display unit 122 to notify the user.
In summary, according to the os deployment method of the present invention, even if the system of the server device is not powered on and started, as long as the bmc of the server device is powered on and can normally access the USB storage unit, the user can pre-store the os image file and the installation program, which need to be backed up and installed in the hard disk of the server device, in the USB storage unit through the host device, and then power on and start the system of the server device for installation. Compared with the conventional method that the system of the server device is started first and then the transmission and installation of the system installation data are carried out through a Preboot eXecution Environment (PXE), the method of the invention greatly reduces the power consumption required by the system operation and the hard disk operation during the period of waiting for the data transmission of the host device and the server device. In addition, through the method of the invention, the next hard disk is installed without waiting for the installation program of the previous hard disk to be completed, thereby greatly reducing the time for deploying the operating system. In addition to saving time and power cost, the operating system deployment method of the invention can more quickly perform backup installation of the operating system on a plurality of hard disks, and the host device can also automatically install the corresponding operating system image file on the corresponding hard disk through the setting of the comparison table, thereby avoiding the problem of artificial installation failure.
The methods of the present invention, or certain aspects or portions thereof, may take the form of program code. The program code may be embodied in tangible media, such as floppy diskettes, cd-roms, hard drives, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine thereby becomes an apparatus for practicing the invention. The program code may also be transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention. When implemented in a general-purpose processing unit, the program code combines with the processing unit to provide a unique apparatus that operates analogously to specific logic circuits.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. An operating system deployment method, adapted to a server device communicatively connected to a host device, wherein the server device has a processing unit, a baseboard management controller and a plurality of hard disks, the baseboard management controller is coupled to a USB storage unit through a USB interface, the operating system deployment method comprising:
when the server device is not powered on and started, the host device transmits an operating system, an installation program and a plurality of operating system image files to the baseboard management controller to be stored in the USB storage unit;
after the server device is powered on and started, the processing unit accesses the operating system and the installation program of the USB storage unit through the baseboard management controller; and
after the processing unit accesses the USB storage unit, the operating system and the installation program are automatically executed so as to install the operating system image file to each corresponding hard disk.
2. The operating system deployment method of claim 1, further comprising:
after the operating system, the installation program and the operating system image file are stored in the USB storage unit, the host device transmits a power-on starting instruction to the substrate management controller; and
and after the baseboard management controller receives the power-on starting instruction, the server device starts power-on starting.
3. The os deployment method of claim 1, wherein when the host device transmits the os, the installer, and the os image to the bmc, a global state (G-States) of the server device is a G2 state.
4. The OS deployment method of claim 3, wherein after the power-on of the server device, the global state (G-States) of the server device is switched from the G2 state to the G0 state.
5. The operating system deployment method of claim 1, further comprising:
when the processing unit finishes installing the corresponding operating system image file to the hard disk of the server device, transmitting an installation completion signal to the substrate management controller;
the substrate management controller generates mounting completion data according to the mounting completion signal; and
when the host device obtains the installation completion data, an installation completion picture is output through a display unit.
6. The os deployment method of claim 1, wherein the installation program further comprises a lookup table indicating the os image files corresponding to the hard disk identifiers, respectively, wherein the processing unit automatically executes the os and the installation program after accessing the USB storage unit to perform the following steps:
the processing unit obtains the hard disk identifier of the hard disk;
the processing unit obtains the operating system image files corresponding to the hard disk identifiers of the hard disks according to the comparison table; and
the processing unit mounts the acquired operating system image file to each corresponding hard disk.
CN201910517245.4A 2019-06-14 2019-06-14 Method for deploying an operating system Active CN112083964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910517245.4A CN112083964B (en) 2019-06-14 2019-06-14 Method for deploying an operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910517245.4A CN112083964B (en) 2019-06-14 2019-06-14 Method for deploying an operating system

Publications (2)

Publication Number Publication Date
CN112083964A true CN112083964A (en) 2020-12-15
CN112083964B CN112083964B (en) 2024-02-13

Family

ID=73734146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910517245.4A Active CN112083964B (en) 2019-06-14 2019-06-14 Method for deploying an operating system

Country Status (1)

Country Link
CN (1) CN112083964B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI808713B (en) * 2022-01-27 2023-07-11 楊明勳 Method and system for deploying operating environments

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512346A (en) * 2002-12-31 2004-07-14 联想(北京)有限公司 Computer system backup and restoring method
CN101014034A (en) * 2006-12-31 2007-08-08 武汉蓝星科技股份有限公司 U disk server-based cluster solving method
CN101989121A (en) * 2009-07-30 2011-03-23 联想(北京)有限公司 Computer system, mixing memory and method for controlling power supply of computer memory
US20130111465A1 (en) * 2010-06-12 2013-05-02 Zte Corporation Method and system for installing [[a]] terminal equipment
TWI587109B (en) * 2016-02-05 2017-06-11 神雲科技股份有限公司 System structure and deployment method for installing operating systems of a plurality of devices under test
CN107179917A (en) * 2016-03-09 2017-09-19 佛山市顺德区顺达电脑厂有限公司 System architecture and dispositions method for the operating system of installing multiple test systems
CN109800002A (en) * 2019-01-17 2019-05-24 恒峰信息技术有限公司 A kind of automatic installation and deployment method of Java software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512346A (en) * 2002-12-31 2004-07-14 联想(北京)有限公司 Computer system backup and restoring method
CN101014034A (en) * 2006-12-31 2007-08-08 武汉蓝星科技股份有限公司 U disk server-based cluster solving method
CN101989121A (en) * 2009-07-30 2011-03-23 联想(北京)有限公司 Computer system, mixing memory and method for controlling power supply of computer memory
US20130111465A1 (en) * 2010-06-12 2013-05-02 Zte Corporation Method and system for installing [[a]] terminal equipment
TWI587109B (en) * 2016-02-05 2017-06-11 神雲科技股份有限公司 System structure and deployment method for installing operating systems of a plurality of devices under test
CN107179917A (en) * 2016-03-09 2017-09-19 佛山市顺德区顺达电脑厂有限公司 System architecture and dispositions method for the operating system of installing multiple test systems
CN109800002A (en) * 2019-01-17 2019-05-24 恒峰信息技术有限公司 A kind of automatic installation and deployment method of Java software

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI808713B (en) * 2022-01-27 2023-07-11 楊明勳 Method and system for deploying operating environments

Also Published As

Publication number Publication date
CN112083964B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
JP6530774B2 (en) Hardware failure recovery system
US7484084B1 (en) Use of a baseboard management controller to facilitate installation of firmware in a processing system
US7313685B2 (en) Unattended BIOS recovery
US9563442B2 (en) Baseboard management controller and method of loading firmware
US8997090B2 (en) Installing an operating system in a host system
US20170228228A1 (en) Remote launch of deploy utility
US9910664B2 (en) System and method of online firmware update for baseboard management controller (BMC) devices
US7146512B2 (en) Method of activating management mode through a network for monitoring a hardware entity and transmitting the monitored information through the network
CN105917306B (en) System and method for configuring system firmware configuration data
JP3777136B2 (en) Computer device, data dead copy method, program, and computer device operating method
US20090249319A1 (en) Testing method of baseboard management controller
US20220214945A1 (en) System Booting Method and Apparatus, Node Device, and Computer-Readable Storage Medium
US20190042368A1 (en) System and Method to Enable Rapid Recovery of an Operating System Image of an Information Handling System after a Malicious Attack
KR20090120541A (en) Method and system for automatic recovery of an embedded operating system
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
JP2019204488A (en) Update of firmware by remote utility
CN111782283A (en) Automatic management method, device and medium for bare metal server
US20040083357A1 (en) Method, system, and program for executing a boot routine on a computer system
CN111090546A (en) Method, device and equipment for restarting operating system and readable storage medium
CN112083964B (en) Method for deploying an operating system
TWI764454B (en) Firmware corruption recovery
US20070214345A1 (en) System and method for porting an operating system
US20130097412A1 (en) Performing A Boot Sequence In A Multi-Processor System
JP6583942B1 (en) BMC, determination method and BMC firmware
CN109471665B (en) Method for automatically installing Windows operating system

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