CN114860272A - Operating system installation method, computing device and storage medium - Google Patents

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

Info

Publication number
CN114860272A
CN114860272A CN202210776642.5A CN202210776642A CN114860272A CN 114860272 A CN114860272 A CN 114860272A CN 202210776642 A CN202210776642 A CN 202210776642A CN 114860272 A CN114860272 A CN 114860272A
Authority
CN
China
Prior art keywords
information
operating system
file
resource server
installation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210776642.5A
Other languages
Chinese (zh)
Inventor
别业创
赵浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202210776642.5A priority Critical patent/CN114860272A/en
Publication of CN114860272A publication Critical patent/CN114860272A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

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

Abstract

The invention relates to the field of operating systems, in particular to an operating system installation method, a computing device and a storage medium, and the method comprises the following steps: generating characteristic information, and generating an installation information acquisition message according to the characteristic information; acquiring installation information from a network server according to the installation information acquisition message; acquiring a first bootstrap program from a resource server according to the installation information; generating a file acquisition address according to the characteristic information; generating a second bootstrap program according to the file acquisition address and the first bootstrap program, and acquiring an operating system installation program and a mirror image file from the resource server according to the second bootstrap program; and installing the operating system according to the operating system installation program and the image file. According to the method and the device, the operating system installation program and the image file are obtained from the resource server according to the characteristic information by generating the characteristic information and generating the file obtaining address according to the characteristic information so as to install different operating systems.

Description

Operating system installation method, computing device and storage medium
Technical Field
The present invention relates to the field of operating systems, and in particular, to an operating system installation method, a computing device, and a storage medium.
Background
With the development of computer technology, people use operating systems to complete various tasks more and more. The installation and subsequent debugging of the operating system become essential links in the development and use processes of the operating system.
In the prior art, when operating systems are installed on computers in a large batch, in order to improve installation efficiency, a PXE technology is usually adopted to install the operating systems: and respectively sending the bootstrap program and the image file of the operating system to a plurality of computers for installation in a network resource mode. However, this type of installation has a problem in that the image files transmitted to the plurality of computers are the same, and the plurality of computers can only install operating systems of the same type and version, and cannot perform a customized operation on the type and version of the operating system installed on each computer.
For this reason, a new operating system installation method is required.
Disclosure of Invention
To this end, the present invention provides an operating system installation method which seeks to solve, or at least alleviate, the problems identified above.
According to one aspect of the present invention, there is provided an operating system installation method, adapted to be executed in a client, the client being communicatively connected to a web server, the method comprising the steps of: generating characteristic information, and generating an installation information acquisition message according to the characteristic information; acquiring installation information from a network server according to the installation information acquisition message; acquiring a first bootstrap program from a resource server according to the installation information; generating a file acquisition address according to the characteristic information; generating a second bootstrap program according to the file acquisition address and the first bootstrap program, and acquiring an operating system installation program and a mirror image file from the resource server according to the second bootstrap program; and installing the operating system according to the operating system installation program and the image file.
Optionally, in the method according to the present invention, generating the feature information includes the steps of: and generating characteristic information according to the hardware information of the client.
Optionally, in the method according to the present invention, generating the installation information acquisition message according to the feature information includes: and generating an installation information acquisition message according to the characteristic information and the processor architecture of the client so that the network server determines an information file according to the processor architecture.
Optionally, in the method according to the present invention, acquiring the first bootstrap program from the resource server according to the installation information includes: acquiring an information file from a resource server according to the installation information; and acquiring the first bootstrap program from the resource server according to the acquired information file.
Optionally, in the method according to the present invention, the installation information includes an address of the resource server and a storage location of the information file, and acquiring the information file from the resource server according to the installation information includes: establishing communication connection with the resource server according to the address of the resource server in the installation information; and acquiring the information file from the storage position of the information file in the resource server according to the established communication connection.
Optionally, in the method according to the present invention, the information file includes a storage location of the first bootstrap program in the resource server, and acquiring the first bootstrap program from the resource server according to the acquired information file includes the steps of: and acquiring the bootstrap program from the storage position of the first bootstrap program in the resource server according to the acquired information file.
Optionally, in the method according to the present invention, generating the file obtaining address according to the feature information includes: and generating a file acquisition address according to the characteristic information and the path parameter, wherein the path parameter is a parameter of a path of the resource server for storing the operating system installation program and the image file.
Optionally, in the method according to the present invention, the file obtaining address includes an operating system installer obtaining address and an image file obtaining address, and the generating the second boot program according to the file obtaining address and the first boot program includes: and respectively taking the operating system installation program acquisition address and the image file acquisition address as a first parameter and a second parameter of the first bootstrap program to obtain a second bootstrap program.
Optionally, in the method according to the present invention, acquiring the operating system installer and the image file from the resource server according to the second boot program comprises the steps of: sending the first parameter and the second parameter to the resource server according to the second bootstrap program, so that the resource server determines a real path stored by the operating system installation program according to the first parameter as the soft link and determines a real path stored by the image file according to the second parameter as the soft link; and acquiring the operating system installation program from the resource server according to the real path stored by the operating system installation program, and acquiring the image file from the resource server according to the real path stored by the image file.
According to another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the operating system installation method according to the present invention.
According to yet another aspect of the present invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform an operating system installation method according to the present invention.
The invention discloses an operating system installation method which is suitable for being executed in a client. The client is in communication connection with the network server, and the method comprises the following steps: generating characteristic information, and generating an installation information acquisition message according to the characteristic information; acquiring installation information from a network server according to the installation information acquisition message; acquiring a first bootstrap program from a resource server according to the installation information; generating a file acquisition address according to the characteristic information; generating a second bootstrap program according to the file acquisition address and the first bootstrap program, and acquiring an operating system installation program and a mirror image file from the resource server according to the second bootstrap program; and installing the operating system according to the operating system installation program and the image file. According to the method and the device, the installation program and the mirror image file of the operating system are obtained from the resource server according to the characteristic information by generating the characteristic information and generating the file obtaining address according to the characteristic information, so that the operating system is installed. Furthermore, different clients can generate different feature information, and different operating system installation programs and image files are obtained from the resource server, so that different operating systems can be installed conveniently.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 illustrates a schematic diagram of a client communicatively coupled to a web server and a resource server in accordance with an exemplary embodiment of the present invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to an exemplary embodiment of the invention;
FIG. 3 illustrates a flowchart of an operating system installation method 300 in accordance with an exemplary embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of a client installation operating system in accordance with an exemplary embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating installation of an operating system in the prior art;
FIG. 6 illustrates a schematic diagram of installing an operating system, according to an exemplary embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. Like reference numerals generally refer to like parts or elements.
An operating system installation method in the invention is suitable for being executed in a client. The client is in communication connection with the network server and the resource server. Fig. 1 shows a schematic diagram of a client in communication connection with a web server and a resource server according to an exemplary embodiment of the present invention. As shown in FIG. 1, clients 111-113 are communicatively coupled to web server 130 and resource server 140, respectively, via network 120. The invention does not limit the specific number of clients connected to the network server and the resource server.
Network 120 may include wired and/or wireless communication paths such as, but not limited to, the internet, a local area network, a satellite path, a fiber optic path, a cable path, or any other suitable wired or wireless communication path or combination of such paths, among others. The present invention does not limit the specific communication connection mode between the clients 111-113 (including the client 111, the client 112, and the client 113) and the network server 130 and the resource server 140.
The clients 111-113 are devices which are not provided with the operating system, or are provided with the operating system and need to be provided with the operating system. The operating system to be installed may be the same as the original operating system or may be different from the original operating system in type, version, etc. The invention does not limit the specific version and type of the operating system to be installed in the clients 111-113.
The network server 130 provides network communication resource service and provides network resources required for communication to the clients 111-113. The resource server 140 is used for storing various resources required by the clients 111 to 113 when installing the operating system. When the operating systems are installed in the clients 111 to 113, these resources are acquired from the resource server 140 if they are needed.
According to an embodiment of the present invention, the client, the network server and the resource server in the present invention can be implemented as a computing device. FIG. 2 illustrates a block diagram of a computing device, according to an exemplary embodiment of the invention.
In a basic configuration, computing device 200 includes at least one processing unit 220 and system memory 210. According to one aspect, depending on the configuration and type of computing device, system memory 210 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. According to one aspect, system memory 210 includes an operating system 211.
According to one aspect, the operating system 211, for example, is adapted to control the operation of the computing device 200. Further, the examples are practiced in conjunction with a graphics library, other operating systems, or any other application program, and are not limited to any particular application or system. This basic configuration is illustrated in fig. 2 by those components within dashed line 215. According to one aspect, computing device 200 has additional features or functionality. For example, according to one aspect, computing device 200 includes additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape.
As stated hereinabove, according to one aspect, program modules 212 are stored in system memory 210. According to one aspect, program modules 212 may include one or more applications, the invention not being limited to the type of application, e.g., applications further include: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided applications, web browser applications, and the like.
According to one aspect, examples may be practiced in a circuit comprising discrete electronic elements, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, an example may be practiced via a system on a chip (SOC) in which each or many of the components shown in fig. 2 may be integrated on a single integrated circuit. According to one aspect, such SOC devices may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functions described herein may be operated via application-specific logic integrated with other components of the computing device 200 on a single integrated circuit (chip). Embodiments of the invention may also be practiced using other technologies capable of performing logical operations (e.g., AND, OR, AND NOT), including but NOT limited to mechanical, optical, fluidic, AND quantum technologies. In addition, embodiments of the invention may be practiced within a general purpose computer or in any other circuits or systems.
According to one aspect, computing device 200 may also have one or more input devices 231, such as a keyboard, mouse, pen, voice input device, touch input device, or the like. Output device(s) 232 such as a display, speakers, printer, etc. may also be included. The foregoing devices are examples and other devices may also be used. Computing device 200 may include one or more communication connections 233 that allow communication with other computing devices 200. Examples of suitable communication connections 233 include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel, and/or serial ports. Computing device 200 may be communicatively connected to other computing devices 240 via communication connection 233.
Embodiments of the present invention also provide a non-transitory readable storage medium storing instructions for causing the computing device to perform a method according to embodiments of the present invention. The readable media of the present embodiments include permanent and non-permanent, removable and non-removable media, and the storage of information may be accomplished by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory readable storage medium.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more feature sets or that has been altered in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, Radio Frequency (RF), infrared, and other wireless media.
It should be noted that although the computing device described above shows only processing unit 220, system memory 210, input device 231, output device 232, and communication connection 233, in particular implementations, the device may include other components necessary for proper operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
FIG. 3 shows a flowchart of an operating system installation method 300 according to an example embodiment of the invention. As shown in fig. 3, step S310 is first executed to generate feature information and generate an installation information acquisition message according to the feature information.
In a computer, system booting is a very complicated process because the kernel of the operating system needs to detect hardware and load a proper driver, and then call various programs to prepare an environment for system operation, so that a user can smoothly operate the computer through the operating system.
According to one embodiment of the present invention, after the client is powered on, the client first enters a hardware self-test stage: the client hardware reads Basic Input Output System (BIOS) loading hardware information and carries out self-checking. Then entering a start-up boot phase: if the client side is provided with the operating system, the bootstrap program is loaded, and the kernel of the operating system is loaded into the internal memory according to the bootstrap program. According to one embodiment of the invention, when the operating system is implemented as a linux system, the boot program may be implemented as a GRUB2 operating system boot program. And finally, entering a system operation stage: and the kernel starts to operate, detects hardware information and loads a driver to enable the client to operate. At this point, the operating system has begun to work, and then the required programs can be loaded and subsequent work performed.
In the prior art, when an operating system is not installed in a client, a boot program is loaded during a boot stage, and the boot program is loaded into an operating system installer to install the operating system. The operating system installer is used to install the operating system in the device.
When a large-scale installation is performed, a PXE (preboot eXecution environment) is usually adopted, a boot program and an image file of an operating system are respectively sent to a plurality of computers for installation in a network resource manner, so as to test the operating system. According to one embodiment of the invention, the Client in the invention may be implemented as a PXE Client (PXE _ Client).
According to an embodiment of the present invention, the client generates the feature information first, so as to generate the installation information acquisition message according to the feature information. And when the client generates the characteristic information, generating the characteristic information according to the hardware information of the client. The hardware information includes: network card MAC, motherboard SN number, motherboard manufacturer, etc. The invention does not limit the type of the hardware information specifically used when the client generates the characteristic information, and the client can also synthesize various hardware information to generate the characteristic information.
Subsequently, step S320 is executed to acquire the installation information from the network server according to the installation information acquisition message. And after the client generates the characteristic information, acquiring the installation information from a preset storage position in a hardware self-checking stage. The predetermined storage location comprises network storage. The network storage stores installation information. The client establishes communication connection with the network server and sends installation information acquisition information to the network server.
The installation information acquisition message includes characteristic information of the client and a processor architecture of the client. According to one embodiment of the invention, the network server may determine the operating system to be installed by the client according to the processor architecture of the client.
According to an embodiment of the present invention, when the client has a specific installation requirement, a target operating system may be further added to the installation information obtaining message, and the network server uses the added target operating system as an operating system to be installed by the client.
After determining the operating system to be installed by the client, the network server generates installation information according to the storage position of the information file corresponding to the operating system in the resource server. The installation information also includes the address of the resource server.
Subsequently, step S330 is executed to obtain the first bootstrap program from the resource server according to the installation information. Specifically, the method comprises the following steps: and acquiring an information file from the resource server according to the installation information, and acquiring a first bootstrap program from the resource server according to the acquired information file.
The client establishes communication connection with the resource server according to the address of the resource server, and then acquires the information file from the resource server according to the installation information. According to an embodiment of the present invention, the information file may be implemented as a bootnetx64.efi file, and the present invention does not limit the specific type of the information file. The information file includes a storage location of the first bootstrap program in the resource server.
The resource server can acquire the characteristic information of the client from the network server, and according to the characteristic information of the client, the resource server can make a soft link for installing a real path stored by the operating system file, so that the real path of the requested file can be determined according to the soft link after the soft link sent by the client is received subsequently.
And the client side operates the first bootstrap program after acquiring the first bootstrap program from the resource server according to the acquired information file, and the first bootstrap program can search whether a loadable operating system exists. If the operating system which can be loaded does not exist, whether an operating system installation program and an image file exist is searched. If there is no os installer and no image file, step S340 is performed to generate a file obtaining address according to the feature information.
According to one embodiment of the present invention, when generating a file acquisition address according to the feature information, the file acquisition address is generated according to the feature information and the path parameter. The path parameter is a parameter of a path for storing an installation file required by installing the operating system, and is determined by the resource server when the installation file is stored. The installation files include operating system installation programs and image files. The client combines the characteristic information and the path parameters to obtain a file acquisition address of an installation file required by the installation operating system. According to an embodiment of the invention, the file acquisition address may be implemented as a soft link by which the true path of the file stored in the resource server can be determined. The resource server will also make a soft link to the real storage path, i.e. the file retrieval address. The soft link made by the resource server according to the characteristic information of the client is the same as the soft link generated by the client. According to the soft link sent by the client, the real path corresponding to the same soft link can be determined, and the client can obtain the installation file according to the real path. Because the hardware information of each client is different, the characteristic information generated by each client according to the hardware information is different. When the client generates the same characteristic information through the same hardware information. Therefore, through configuration, each client generates different file acquisition addresses according to the characteristic information, and acquires the required installation files from the different file acquisition addresses, thereby realizing installation of different operating systems.
According to one embodiment of the invention, the MAC address of the client is "aa: bb: cc: dd". The client transforms the MAC address first, and then converts the following: "replace with" _ ", get the character string: "aa _ bb _ cc _ dd" is the characteristic value of the client. The string "aa _ bb _ cc _ dd" is then compared to the path parameter: and the "/binary-installer/amd 64/live/vmlinux" is spliced to obtain the file acquisition address of the operating system installation program: "/debo-installer/amd 64/aa _ bb _ cc _ dd/live/vmlinux". The string "aa _ bb _ cc _ dd" is associated with the path parameter: the "/binary-installer/amd 64" is spliced to obtain the file acquisition address of the image file: "10.20.41.245:/var/nfs/amd 64/aa _ bb _ cc _ dd". The files required to install the operating system include operating system installers and image files. The client acquires the address through the file of the operating system installation program: "/binary-installer/amd 64/aa _ bb _ cc _ dd/live/vmlinux" and the file acquisition address of the image file: "10.20.41.245:/var/nfs/amd 64/aa _ bb _ cc _ dd", namely, the operating system installer and the image file can be respectively obtained from the resource server, and the operating system can be installed according to the operating system installer and the image file.
Subsequently, step S350 is executed, a second boot program is generated according to the file obtaining address and the first boot program, and the operating system installer and the image file are obtained from the resource server according to the second boot program. Specifically, the method comprises the following steps: and respectively taking the operating system installation program acquisition address and the image file acquisition address as a first parameter and a second parameter of the first bootstrap program to obtain a second bootstrap program.
According to one embodiment of the invention, the first boot program may be implemented as a grub. The client generates a file acquisition address, assigns the address of the acquired operating system installation program to the parameter linux as a first parameter, and assigns the address of the acquired image file to the parameter nfroot as a second parameter; a second boot program is obtained that includes the first parameter and the second parameter.
And then the client acquires the operating system installation program and the image file from the resource server through a second bootstrap program.
An example of the second boot procedure is specifically as follows:
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
set timeout=5
insmod gzio
menuentry "Install uos" {
set gfxpayload=keep
linux /debian-installer/amd64/live/vmlinuz root=/dev/nfs nfsroot=10.20.41.245:/var/nfs/amd64 console=tty boot=live components ethdevice-timeout=60 union=overlay locales=zh_CN.UTF-8 livecd-installer rw --
initrd /debian-installer/amd64/live/initrd.lz
}
menuentry "Try uos without installing" {
set gfxpayload=keep
linux /debian-installer/amd64/live/vmlinuz console=tty boot=live union=overlay quiet splash --initrd /debian-installer/amd64/live/initrd.lz
}。
according to one embodiment of the invention, after receiving the first parameter and the second parameter of the second lead sent by the client, the resource server determines the real path of the file stored in the resource server according to the first parameter and the second parameter. The file acquisition addresses in the first parameter and the second parameter are soft links of the real path, and the real path stored by the file can be determined through the reference relation of the file acquisition addresses to the real path. The resource server is manufactured with soft links in advance according to the real path and the characteristic value of the client, so that the real path of file storage is determined according to the soft links. And the resource server determines a real path stored by the operating system installation program according to the first parameter serving as the soft link and determines a real path stored by the image file according to the second parameter serving as the soft link.
The client then obtains the operating system installation program from the resource server according to the real path stored by the operating system installation program, and obtains the image file from the resource server according to the real path stored by the image file.
Finally, step S360 is executed to install the operating system according to the operating system installer and the image file. The client acquires the file in a soft link mode, so that the efficiency of acquiring the file from the resource server can be improved, and a plurality of servers can acquire the file from the resource server at the same time. Meanwhile, the resource server can also position the real paths of different files through different soft links, so that different clients can obtain different files.
FIG. 4 illustrates a schematic diagram of a client installation operating system according to an exemplary embodiment of the invention. As shown in fig. 4: firstly, the client generates characteristic information and generates an installation information acquisition message according to the characteristic information. And the client acquires the installation information from the network server according to the installation information acquisition message. And after determining the operating system to be installed by the client, the network server generates installation information according to the storage position of the information file in the resource server. The installation information also includes the address of the resource server.
And then, the client establishes communication connection with the resource server according to the address of the resource server and acquires an information file from the resource server according to the installation information.
And then, the client acquires a first bootstrap program from the resource server according to the acquired information file and runs the first bootstrap program.
And finally, when the client generates the file acquisition address according to the characteristic information, specifically generating the file acquisition address according to the characteristic information and the path parameter. The path parameter is a parameter of a path for storing an installation file required by installing the operating system, and is determined by the resource server when the installation file is stored. The client generates a second bootstrap program according to the file acquisition address and the first bootstrap program, and acquires an operating system installation program and a mirror image file from the resource server according to the second bootstrap program; and installing the operating system according to the operating system installation program and the image file.
Fig. 5 shows a schematic diagram of installing an operating system in the prior art. As shown in fig. 5: after the installation of the operating system is started, a boot program is executed first, and the operating system installer and the image file to be acquired are specified in the boot program. The operating system installer and the image file are then obtained from the boot program. And finally, installing the operating system according to the obtained operating system installation program and the image file. In the prior art, all computers provided with operating systems use the same bootstrap program, only the same operating system can be installed, and the operating systems cannot be installed in a customized manner according to the requirements of each computer.
FIG. 6 illustrates a schematic diagram of installing an operating system, according to an exemplary embodiment of the invention. As shown in fig. 6: after the installation is started, a first bootstrap program is acquired first. Specifically, the client generates the feature information first, and the feature information can be generated according to the hardware information; and then generating an installation information acquisition message according to the characteristic information and the processor architecture of the client, and sending the installation information acquisition message to the network server. The network server may determine the operating system to be installed by the client based on the processor architecture of the client. And after determining the operating system to be installed by the client, the network server generates installation information according to the storage position of the information file in the resource server. And the client acquires the first bootstrap program from the resource server according to the installation information.
Then, the client generates a file acquisition address according to the characteristic information; specifically, the method comprises the following steps: and generating a file acquisition address according to the characteristic information and the path parameter. The path parameter is a parameter of a path for storing an installation file required by installing the operating system, and is determined by the resource server when the installation file is stored. The installation files include operating system installation programs and image files. The client combines the characteristic information with the path parameters to obtain a file acquisition address of an installation file required by the installation operating system. Because the hardware information of each client is different, the characteristic information generated by each client according to the hardware information is different. Each client can generate the same characteristic information through the same hardware information. Therefore, through configuration, each client generates different file acquisition addresses according to the characteristic information, and acquires the required installation files from the different file acquisition addresses, thereby realizing installation of different operating systems.
Then, a second bootstrap program is generated according to the file acquisition address and the first bootstrap program, and an operating system installation program and an image file are acquired from the resource server according to the second bootstrap program. Specifically, the method comprises the following steps: and respectively taking the operating system installation program acquisition address and the image file acquisition address as a first parameter and a second parameter of the first bootstrap program to obtain a second bootstrap program. And after receiving the first parameter and the second parameter of the second guide lead sent by the client, the resource server determines a real path of the file stored in the resource server according to the first parameter and the second parameter. The file acquisition addresses in the first parameter and the second parameter are soft links of the real path, and the real path stored by the file can be determined through the reference relation of the file acquisition addresses to the real path. The resource server is manufactured with soft links in advance according to the real path and the characteristic value of the client, so that the real path of file storage is determined according to the soft links. And the resource server determines a real path stored by the operating system installation program according to the first parameter serving as the soft link and determines a real path stored by the image file according to the second parameter serving as the soft link.
Then, the operating system installer and the image file are obtained from the resource server according to the second bootstrap program, and the operating system is installed according to the operating system installer and the image file. The client acquires the file in a soft link mode, so that the efficiency of acquiring the file from the resource server can be improved, and a plurality of servers can acquire the file from the resource server at the same time. Meanwhile, the resource server can also position the real paths of different files through different soft links, so that different clients can obtain different files.
The invention discloses an operating system installation method which is suitable for being executed in a client. The client is in communication connection with the network server, and the method comprises the following steps: generating characteristic information, and generating an installation information acquisition message according to the characteristic information; acquiring installation information from a network server according to the installation information acquisition message; acquiring a first bootstrap program from a resource server according to the installation information; generating a file acquisition address according to the characteristic information; generating a second bootstrap program according to the file acquisition address and the first bootstrap program, and acquiring an operating system installation program and a mirror image file from the resource server according to the second bootstrap program; and installing the operating system according to the operating system installation program and the image file. According to the method and the device, the installation program and the mirror image file of the operating system are obtained from the resource server according to the characteristic information by generating the characteristic information and generating the file obtaining address according to the characteristic information, so that the operating system is installed. Furthermore, different clients can generate different feature information, and different operating system installation programs and image files are obtained from the resource server, so that different operating systems can be installed conveniently.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by an alternative feature serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the operating system installation method of the present invention in accordance with instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to practitioners skilled in this art. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention.

Claims (11)

1. An operating system installation method, adapted to be executed in a client communicatively connected to a web server, the method comprising the steps of:
generating characteristic information, and generating an installation information acquisition message according to the characteristic information;
acquiring installation information from the network server according to the installation information acquisition message;
acquiring a first bootstrap program from a resource server according to the installation information;
generating a file acquisition address according to the characteristic information;
generating a second bootstrap program according to the file acquisition address and the first bootstrap program, and acquiring an operating system installation program and a mirror image file from the resource server according to the second bootstrap program;
and installing the operating system according to the operating system installation program and the image file.
2. The method of claim 1, wherein the generating of the characteristic information comprises the steps of:
and generating characteristic information according to the hardware information of the client.
3. The method of claim 1 or 2, wherein generating an installation information acquisition message according to the feature information comprises the steps of:
and generating an installation information acquisition message according to the characteristic information and the processor architecture of the client, so that the network server determines an information file according to the processor architecture.
4. The method as claimed in claim 1, wherein the step of obtaining the first bootstrap program from the resource server according to the installation information comprises the steps of:
acquiring an information file from a resource server according to the installation information;
and acquiring a first bootstrap program from the resource server according to the acquired information file.
5. The method of claim 4, wherein the installation information includes an address of the resource server and a storage location of an information file, and the obtaining of the information file from the resource server according to the installation information includes the steps of:
establishing communication connection with the resource server according to the address of the resource server in the installation information;
and acquiring the information file from the storage position of the information file in the resource server according to the established communication connection.
6. The method according to claim 4 or 5, wherein the information file comprises a storage location of the first bootstrap program in the resource server, and the acquiring the first bootstrap program from the resource server according to the acquired information file comprises the steps of:
and acquiring the first bootstrap program from the storage position of the first bootstrap program in the resource server according to the acquired information file.
7. The method of claim 1, wherein the generating a file acquisition address according to the characteristic information comprises:
and generating a file acquisition address according to the characteristic information and path parameters, wherein the path parameters comprise parameters of a path of the resource server for storing the operating system installation program and the image file.
8. The method of claim 7, wherein the file capture address comprises an operating system installer capture address and an image file capture address, and wherein generating the second boot program from the file capture address and the first boot program comprises:
and respectively taking the operating system installation program acquisition address and the image file acquisition address as a first parameter and a second parameter of the first bootstrap program to obtain a second bootstrap program.
9. The method of claim 8, wherein said obtaining an operating system installer and an image file from said resource server in accordance with said second boot program comprises the steps of:
sending the first parameter and the second parameter to the resource server according to the second bootstrap program, so that the resource server determines a real path stored by an operating system installation program according to the first parameter as a soft link, and determines a real path stored by an image file according to the second parameter as a soft link;
and acquiring the operating system installation program from the resource server according to the real path stored by the operating system installation program, and acquiring the image file from the resource server according to the real path stored by the image file.
10. A computing device, comprising:
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-9.
11. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-9.
CN202210776642.5A 2022-07-04 2022-07-04 Operating system installation method, computing device and storage medium Pending CN114860272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210776642.5A CN114860272A (en) 2022-07-04 2022-07-04 Operating system installation method, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210776642.5A CN114860272A (en) 2022-07-04 2022-07-04 Operating system installation method, computing device and storage medium

Publications (1)

Publication Number Publication Date
CN114860272A true CN114860272A (en) 2022-08-05

Family

ID=82625743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210776642.5A Pending CN114860272A (en) 2022-07-04 2022-07-04 Operating system installation method, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN114860272A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357257A (en) * 2022-10-21 2022-11-18 统信软件技术有限公司 Installation file generation method, system, computing device and storage medium
WO2024113995A1 (en) * 2022-11-30 2024-06-06 苏州元脑智能科技有限公司 Bmc heterogeneous upgrading method and system, device, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398762A (en) * 2007-09-29 2009-04-01 联想(北京)有限公司 Method and device for automatic installing operating system on computer
US20130152074A1 (en) * 2011-12-12 2013-06-13 Chia-Wei Yeh Method for automatic consecutive installing operating systems
CN105653326A (en) * 2015-12-29 2016-06-08 上海爱数信息技术股份有限公司 System and method for batch Linux system installation and detection
US20170220330A1 (en) * 2016-01-28 2017-08-03 T-Mobile, Usa, Inc. Remote support installation mechanism
CN107526618A (en) * 2017-09-04 2017-12-29 深圳互联先锋科技有限公司 system installation method and device
CN110753088A (en) * 2019-09-18 2020-02-04 平安科技(深圳)有限公司 System deployment method and device
CN111679837A (en) * 2020-05-07 2020-09-18 海南车智易通信息技术有限公司 System installation control method, control system and computing equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398762A (en) * 2007-09-29 2009-04-01 联想(北京)有限公司 Method and device for automatic installing operating system on computer
US20130152074A1 (en) * 2011-12-12 2013-06-13 Chia-Wei Yeh Method for automatic consecutive installing operating systems
CN105653326A (en) * 2015-12-29 2016-06-08 上海爱数信息技术股份有限公司 System and method for batch Linux system installation and detection
US20170220330A1 (en) * 2016-01-28 2017-08-03 T-Mobile, Usa, Inc. Remote support installation mechanism
CN107526618A (en) * 2017-09-04 2017-12-29 深圳互联先锋科技有限公司 system installation method and device
CN110753088A (en) * 2019-09-18 2020-02-04 平安科技(深圳)有限公司 System deployment method and device
CN111679837A (en) * 2020-05-07 2020-09-18 海南车智易通信息技术有限公司 System installation control method, control system and computing equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357257A (en) * 2022-10-21 2022-11-18 统信软件技术有限公司 Installation file generation method, system, computing device and storage medium
WO2024113995A1 (en) * 2022-11-30 2024-06-06 苏州元脑智能科技有限公司 Bmc heterogeneous upgrading method and system, device, and readable storage medium

Similar Documents

Publication Publication Date Title
WO2019090993A1 (en) Deployment method and apparatus for monitoring system, computer device and storage medium
US10120743B2 (en) System and method for error handling based on a boot profile
CN114860272A (en) Operating system installation method, computing device and storage medium
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
US9665465B1 (en) Automated determination of application permissions
US10747526B2 (en) Apparatus and method to execute prerequisite code before delivering UEFI firmware capsule
CN113312037A (en) Data processing method, device and equipment applied to microservice and storage medium
US20210173765A1 (en) Streamlined Creation of Integration Tests
US11429298B2 (en) System and method for tying non-volatile dual inline memory modules to a particular information handling system
US20200012544A1 (en) Optimizing startup time for event-driven functions
US20200364120A1 (en) System and Method to Prevent Endless Machine Check Error of Persistent Memory Devices
CN113741914A (en) Operating system installation mechanism
JP2022542203A (en) Mini-program batch processing method, device, electronic device and readable storage medium
US20200218635A1 (en) Logging stored information for identifying a fix for and/or a cause of an error condition
US10776132B1 (en) System and method for preboot device driver provisioning for remotely-staged operating system
CN115150392B (en) Remote file copying method, system, computing equipment and storage medium
CN112506781B (en) Test monitoring method, device, electronic equipment, storage medium and program product
US10248396B1 (en) Code review with automated translation
CN116192784B (en) Message notification method, device and equipment based on broadcast robot
US7752076B2 (en) Inventory management of resources
CN115202830B (en) Root file system preparation method, system, computing device and readable storage medium
US20240037017A1 (en) Verification of core file debugging resources
JP6920501B1 (en) Information processing systems, programs, and information processing methods
US12032956B2 (en) Techniques to deploy an application as a cloud computing service
US20230110520A1 (en) Ui service package generation and registration method and apparatus, and ui service loading method and apparatus

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