A method, device, equipment and storage medium for deploying an operating system

By determining the target IP address and bootloader storage path based on the client's network deployment environment information, and providing the target bootloader and system configuration files, the resource waste problem of building a dedicated deployment environment in the existing technology is solved, and flexible and efficient operating system deployment is achieved , meet diversity needs and save resources.

CN115344312BActive Publication Date: 2025-01-14SUMA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210993640.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-18
Publication Date
2025-01-14
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

When the prior art meets the diversity needs of network startup operating system methods, it is necessary to build a dedicated deployment environment for different startup modes and protocols, resulting in wasted time and human resources.

Method used

By determining the target IP address and bootloader storage path based on the network deployment environment information provided by the client, responding to the client's request, providing the target bootloader and system configuration files, supporting multiple network protocols and application layer protocols, realizing a flexible operating system deploy.

Benefits of technology

While meeting users' diverse needs for network startup operating system methods, time and labor costs are saved and deployment efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115344312B_ABST
    Figure CN115344312B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for deploying an operating system. The method comprises: determining a target Internet Protocol IP address and a target boot program storage path associated with a client based on network deployment environment information provided by a client, and feeding back the target boot program to the client in response to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path; feeding back the target boot program to the client based on a system configuration file acquisition request initiated by the client by running the target boot program, feeding back the system configuration file to the client to instruct the client to deploy the operating system based on the system configuration file. The technical solution of the embodiment of the present invention can save time and labor costs while meeting the diverse needs of users for network boot operating system methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for deploying an operating system. Background Art

[0002] Preboot eXecution Environment (PXE), also known as pre-execution environment, provides a mechanism to boot a computer using a network interface. This mechanism allows the computer to boot without relying on local data storage devices or locally installed operating systems. IPXE is an evolution of PXE. It not only includes the original features of PXE, but also adds other features, such as support for Hyper Text Transfer Protocol (HTTP) to boot from a network server.

[0003] There are various methods for different users to start the operating system through the network. For example, the network startup mode can be PXE or IPXE, the network protocol can be Internet Protocol Version 4 (IPv4) or Internet Protocol Version 6 (IPV6), and the boot network application layer protocol can be HTTP or Trivial File Transfer Protocol (TFTP). At present, in order to meet the diversity of network startup operating system methods, different PXE or IPXE environments need to be built on the server side for different startup modes, which consumes a lot of time and human resources. Summary of the invention

[0004] The present invention provides a method, device, equipment and storage medium for deploying an operating system, which can save time and labor costs while meeting users' diverse needs for network startup operating system methods.

[0005] According to one aspect of the present invention, there is provided a method for deploying an operating system, comprising:

[0006] According to the network deployment environment information provided by the client, determine the target Internet Protocol (IP) address and target boot program storage path associated with the client, and feed back to the client;

[0007] In response to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeding back the target boot program to the client;

[0008] According to a system configuration file acquisition request initiated by the client by running the target boot program, a system configuration file is fed back to the client to instruct the client to deploy an operating system according to the system configuration file.

[0009] Optionally, determining a target IP address and a target boot program storage path associated with the client according to the network deployment environment information provided by the client includes:

[0010] Determining a target IP address associated with the client based on the network deployment environment information and the physical address of the client;

[0011] According to the network deployment environment information, the target boot program storage path associated with the client is determined. The server pre-stores IP address pools associated with multiple network protocols and boot programs under multiple network deployment environments, and determines the IP address and target boot program storage path according to the network deployment environment information, which can meet the client's diverse needs for network boot operating system methods, and does not need to deploy a dedicated deployment environment for each network boot operating system method, saving server resources.

[0012] Optionally, determining a target IP address associated with the client according to the network deployment environment information and a physical address of the client includes:

[0013] Determine a target IP address pool associated with the target network protocol according to the target network protocol in the network deployment environment information;

[0014] According to the physical address of the client, a target IP address associated with the client is selected from the target IP address pool. The server pre-stores IP address pools associated with different network protocols, so that the server can simultaneously meet the client's needs for different network protocols.

[0015] Optionally, in response to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeding back the target boot program to the client includes:

[0016] In response to a boot program acquisition request sent by the client through the target application layer protocol in the network deployment environment information based on the target IP address, determining a target boot program according to a target boot program storage path in the boot program acquisition request;

[0017] Initiating a data transmission mode inquiry message to the client to inquire whether the client agrees to send the target boot program in a transmission mode with a specified data size;

[0018] When the client agrees to the data transmission mode, the target boot program is sent to the client through the target application layer protocol in the transmission mode of the specified data size. On the one hand, the target boot program can be fed back according to the target application layer protocol selected by the client, and it is compatible with a variety of different application layer protocols. On the other hand, before sending the target boot program, the client can be prompted whether to use the transmission mode of the specified data size to send the target boot program, so as to ensure the security of the target boot program.

[0019] Optionally, according to a system configuration file acquisition request initiated by the client by running the target boot program, feeding back a system configuration file to the client includes:

[0020] In response to a system configuration file acquisition request initiated by a client, a system configuration file is fed back to the client according to the operating system configuration item selected by the client during the process of running the target boot program; the system configuration file includes the target file transfer protocol selected by the client in the operating system configuration item. The server can feed back the corresponding system configuration file to the client according to the operating system configuration item selected by the client during the process of running the boot program, so as to realize flexible configuration and deployment of the operating system.

[0021] Optionally, after feeding back the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, the method further includes:

[0022] In response to a software package acquisition request sent by the client based on the system configuration file, determining a target software package;

[0023] The target software package is fed back to the client through the target file transfer protocol included in the system configuration file. The software package included in the system configuration file is provided to the client through the target file transfer protocol selected by the user, which is compatible with multiple file transfer protocols and meets the software installation requirements of the client user.

[0024] Optionally, the network deployment environment information includes at least one of a target network protocol, a target network startup mode, and a target application layer protocol. Users can flexibly select network protocols, network startup modes, and application layer protocols according to the requirements of deploying an operating system. The server supports different deployment environments for different client users, meets user requirements, and saves time and labor costs.

[0025] According to another aspect of the present invention, there is provided an operating system deployment device, comprising:

[0026] The IP address feedback module is used to determine the target IP address and target boot program storage path associated with the client according to the network deployment environment information provided by the client, and feed back to the client;

[0027] A boot program feedback module, configured to respond to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, and to feed back the target boot program to the client;

[0028] The configuration file feedback module is used to feed back the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy the operating system according to the system configuration file.

[0029] Optional, IP address feedback module, including:

[0030] An IP address determination unit, configured to determine a target IP address associated with the client based on the network deployment environment information and the physical address of the client;

[0031] The storage path determining unit is used to determine the target boot program storage path associated with the client according to the network deployment environment information.

[0032] Optionally, the IP address determination unit is specifically used to:

[0033] Determine a target IP address pool associated with the target network protocol according to the target network protocol in the network deployment environment information;

[0034] According to the physical address of the client, a target IP address associated with the client is selected from the target IP address pool.

[0035] Optional, bootstrap feedback module, specifically used to:

[0036] In response to a boot program acquisition request sent by the client through the target application layer protocol in the network deployment environment information based on the target IP address, determining a target boot program according to a target boot program storage path in the boot program acquisition request;

[0037] Initiating a data transmission mode inquiry message to the client to inquire whether the client agrees to send the target boot program in a transmission mode with a specified data size;

[0038] In the case where the client agrees to the data sending mode, the target boot program is sent to the client through the target application layer protocol in the transmission mode of the specified data size.

[0039] Optional, profile feedback module, specifically used to:

[0040] In response to a system configuration file acquisition request initiated by the client, a system configuration file is fed back to the client according to the operating system configuration item selected by the client during the running of the target boot program; the system configuration file includes the target file transfer protocol selected by the client in the operating system configuration item.

[0041] Optionally, the operating system deployment device further includes:

[0042] a software package determination module, configured to determine a target software package in response to a software package acquisition request sent by the client based on the system configuration file, after feeding back a system configuration file to the client according to a system configuration file acquisition request initiated by the client by running the target boot program;

[0043] The software package feedback module is used to feed back the target software package to the client through the target file transfer protocol contained in the system configuration file.

[0044] Optionally, the network deployment environment information includes at least one of a target network protocol, a target network startup mode, and a target application layer protocol.

[0045] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0046] at least one processor; and

[0047] a memory communicatively connected to the at least one processor; wherein,

[0048] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the operating system deployment method described in any embodiment of the present invention.

[0049] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the operating system deployment method described in any embodiment of the present invention when executed.

[0050] The technical solution of the embodiment of the present invention first determines the target Internet Protocol IP address and the target boot program storage path associated with the client according to the network deployment environment information provided by the client, and feeds back the information to the client, and then responds to the boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeds back the target boot program to the client, and finally feeds back the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy the operating system according to the system configuration file. The network deployment environment information flexibly selected by the client can be adapted, and time and labor costs can be saved while meeting the user's diverse needs for network startup operating system methods.

[0051] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 is a flow chart of a method for deploying an operating system provided according to an embodiment of the present invention;

[0054] Figure 2 is a flow chart of a method for deploying an operating system provided according to an embodiment of the present invention;

[0055] Figure 3 is a flow chart of a method for deploying an operating system provided according to an embodiment of the present invention;

[0056] Figure 4 A signaling diagram between a client and a server according to an embodiment of the present invention;

[0057] Figure 5 is a structural schematic diagram of a deployment device for an operating system provided according to an embodiment of the present invention;

[0058] Figure 6 It is a structural diagram of an electronic device for implementing the method for deploying an operating system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0061] Figure 1 This is a flowchart of an operating system deployment method provided by an embodiment of the present invention. This embodiment is applicable to the case where an operating system is deployed based on network deployment environment information selected by a client user. The method can be executed by an operating system deployment device, which can be implemented in the form of hardware and / or software. The operating system deployment device can be configured in various general-purpose computing devices, for example, the general-purpose computing device is a server. Figure 1 As shown, the method includes:

[0062] S110 , determining a target Internet Protocol IP address and a target boot program storage path associated with the client based on the network deployment environment information provided by the client, and feeding back the information to the client.

[0063] The network deployment environment information is the network deployment environment selected by the client for deploying the operating system. Exemplarily, the network deployment environment information may include the network protocol, network boot mode, and application layer protocol selected by the client user. Among them, the network protocol can select the IPV4 protocol or the IPV6 protocol; the network boot mode can select the PXE mode or the IPXE mode; the application layer protocol can select the HTTP protocol or the TFTP protocol.

[0064] The client can support the installation of the operating system in the Unified Extensible Firmware Interface (UEFI) mode, or support the installation of the operating system in the Legacy mode. In a specific example, the client supports the installation of the operating system in the UEFI mode, and the client can provide the user with the network deployment environment information that can be selected in the UEFI mode. Specifically, in the UEFI mode, the network protocol that the user can select is the IPV4 protocol or the IPV6 protocol, the network boot mode that can be selected is the PXE mode or the IPXE mode, and the application layer protocol that can be selected is the HTTP protocol or the TFTP protocol. In another specific example, the client supports the installation of the operating system in the Legacy mode, and the client can provide the user with the network deployment environment information that can be selected in the Legacy mode. Specifically, in the Legacy mode, the network protocol that the user can select is the IPV4 protocol or the IPV6 protocol, the network boot mode that can be selected is only the PXE mode, and the application layer protocol that can be selected is the HTTP protocol or the TFTP protocol.

[0065] In an embodiment of the present invention, after the client user selects a set of network deployment environment information in the network deployment environment information selection item provided by the client, the client will send a Dynamic Host Configuration Protocol (DHCP) request to the user, wherein the DHCP request includes the network deployment environment information selected by the client user. The DHCP server in the server side determines the target IP address pool associated with the network deployment environment information based on the network deployment environment information provided by the client, and selects a target IP address for the client in the IP address pool. At the same time, the server side will also determine the target boot program that matches the network deployment environment information based on the network deployment environment information provided by the client, and feed back the target IP address and the storage path of the target boot program to the client.

[0066] In a specific example, the client supports the installation of the operating system in UEFI mode, and the client can provide the user with the network deployment environment information that can be selected in UEFI mode. For example, in UEFI mode, the network protocol that the user can select is the IPV4 protocol or the IPV6 protocol, the network boot mode that can be selected is the PXE mode or the IPXE mode, and the application layer protocol that can be selected is the HTTP protocol or the TFTP protocol. Based on the options provided by the client, the user selects the network deployment environment information including the IPV6 network protocol, the PXE network boot mode, and the HTTP application layer protocol, and then the client sends a DHCP request containing the network deployment environment information selected by the user to the server. After receiving the DHCP request, the DHCP server in the server can select an idle IP address in the IP address pool corresponding to the IPV6 network protocol as the target IP address and feedback it to the client. At the same time, the server also determines the target boot program that matches the current client based on the IPV6 network protocol, the PXE network boot mode, and the HTTP application layer protocol, and feeds back the target boot program storage path and the target IP address to the client together.

[0067] In another specific example, the server includes the client's physical address and network deployment environment information in the DHCP request sent by the client. Among them, the network deployment environment information includes that the network protocol is IPV6. The server first determines the target IP address pool corresponding to the IPV6 network protocol, and then selects the target IP address that matches the client's physical address in the target IP address pool based on the matching relationship between the physical address and the IP address. The IP address allocated in this way can meet the needs of locating a unique server node based on the IP address in scenarios such as supercomputing centers.

[0068] S120 : In response to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeding back the target boot program to the client.

[0069] When the boot program is run on a client where an operating system is to be installed, it can guide the client to complete the installation of the corresponding operating system.

[0070] In the embodiment of the present invention, after the client obtains the target IP address and the target boot program storage path fed back by the server, based on the target IP address, it initiates a boot program acquisition request to the server, and the request includes the target boot program storage path. The server responds to the boot program acquisition request initiated by the client, obtains the target boot program according to the target boot program storage path in the request, and feeds back the target boot program to the client.

[0071] In a specific example, based on the options provided by the client, the user selects network deployment environment information including IPV6 network protocol, PXE network boot mode and HTTP application layer protocol. After receiving the target IP address fed back by the server, the client sends a boot program acquisition request to the HTTP service of the server through the HTTP application layer protocol based on the target IP address. After receiving the boot program acquisition request, the server first asks the client whether to specify the block size during the transmission process. If the client agrees, the target boot program is determined according to the target boot program storage path in the boot program acquisition request, and the target boot program is fed back to the client in accordance with the mode of specifying the block size.

[0072] S130: Feedback a system configuration file to the client based on a system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy an operating system based on the system configuration file.

[0073] The system configuration file is the Kickstart configuration file, which can include the system language, system time zone, disk partition, and network settings required during the operating system installation process. In addition, the Kickstart configuration file also includes the software packages and test tools that need to be installed during the deployment of the operating system.

[0074] In the embodiment of the present invention, after receiving the target boot program, the client will run the target boot program, load the grub.cfg file, and select the file transfer protocol used for subsequent file transfer with the server in the menu options displayed after the grub.cfg file is loaded, as well as the operating system version to be installed, the driver to be installed and other configuration information. Among them, the file transfer protocol can support the HTTP protocol, the TFTP protocol, the Network File System (NFS) protocol and the File Transfer Protocol (FTP), etc.

[0075] Furthermore, based on the configuration information selected by the client user after loading the grub.cfg file, a system configuration file acquisition request is initiated to the server. The server determines the corresponding system configuration file based on the client's configuration information and feeds the system configuration file back to the client to instruct the client to deploy the operating system based on the system configuration file.

[0076] In a specific example, when the client user runs the target boot program and loads the grub.cfg file, the file transfer protocol selected in the menu options displayed is the NFS protocol. Based on the selected information, a request to obtain the system configuration file is initiated to the server. The server determines the corresponding system configuration file based on the configuration information selected by the user, and feeds the system configuration file back to the client. At this time, the system configuration file defines that the file transfer protocol to be used subsequently is the NFS protocol. If the user does not select the operating system version or file transfer protocol in the menu options displayed when running the target boot program, the system configuration file can be requested based on the default values ​​of these options.

[0077] The technical solution of the embodiment of the present invention first determines the target Internet Protocol IP address and the target boot program storage path associated with the client based on the network deployment environment information provided by the client, and feeds back the results to the client. Then, in response to the boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, the target boot program is fed back to the client. Finally, based on the system configuration file acquisition request initiated by the client by running the target boot program, the system configuration file is fed back to the client, which is used to instruct the client to deploy the operating system based on the system configuration file. The system can be compatible with the network deployment environment information flexibly selected by the client, and meet the user's diverse needs for network startup operating system methods.

[0078] Figure 2 This is a flowchart of an operating system deployment method provided by an embodiment of the present invention. This embodiment further refines the above embodiment and provides specific steps for determining the target IP address and target boot program storage path associated with the client based on the network deployment environment information provided by the client. Figure 2 As shown, the method includes:

[0079] S210: Determine a target IP address associated with the client based on the network deployment environment information provided by the client and the physical address of the client.

[0080] In the embodiment of the present invention, when the client deploys the operating system, it first sends a DHCP request to the server to request an IP address from the server. The DHCP request contains the network deployment environment information selected by the client user and the physical address of the client. The server can determine the target IP address pool based on the network deployment environment information selected by the user, and then select a target IP address that matches the client in the target IP address pool based on the physical address of the client.

[0081] In a specific example, the target network protocol selected by the user included in the network deployment environment information provided by the client is the IPV6 protocol. The server uses the IP address pool corresponding to the IPV6 protocol as the target IP address pool, and further selects the IP address corresponding to the physical address of the client in the target IP address pool as the target IP address and feeds it back to the client.

[0082] Optionally, the network deployment environment information includes at least one of a target network protocol, a target network startup mode, and a target application layer protocol.

[0083] In this optional embodiment, the network deployment environment information includes at least one of the target network protocol, the target network boot mode, and the target application layer protocol selected by the client user. Exemplarily, the target network protocol can be selected from the IPV4 protocol and the IPV6 protocol, the target network boot mode can be selected from the PXE mode and the IPXE mode, and the target application layer protocol can be selected from the HTTP protocol and the TFTP protocol. The server can support the deployment of the operating system in cooperation with the client under different network deployment environments selected by the client.

[0084] Optionally, determining a target IP address associated with the client according to the network deployment environment information and the physical address of the client includes:

[0085] Determine a target IP address pool associated with the target network protocol according to the target network protocol in the network deployment environment information;

[0086] According to the physical address of the client, a target IP address associated with the client is selected from the target IP address pool.

[0087] In this optional embodiment, a specific method is provided for determining the target IP address associated with the client based on the network deployment environment information and the physical address of the client: first, based on the target network protocol in the network deployment environment information, determine the target IP address pool associated with the target network protocol. For example, if the target network protocol is the IPV6 protocol, the target IP address pool is the IP address pool corresponding to the IPV6 protocol. Further, in order to achieve the effect of locating a unique client based on the IP address, the target IP address associated with the client can be selected from the target IP address pool based on the physical address of the client.

[0088] S220: Determine a target boot program storage path associated with the client according to the network deployment environment information.

[0089] In the embodiment of the present invention, after obtaining the network deployment environment information provided by the client, the server can also determine the boot program that matches the network deployment environment information currently provided by the client as the target boot program based on the pre-stored mapping relationship between the network deployment environment information and the boot program. Finally, the target boot program storage path is fed back to the client to instruct the client to request the target boot program that matches the network deployment environment currently selected by the user from the server based on the target boot program storage path.

[0090] S230 : In response to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeding back the target boot program to the client.

[0091] S240: Feedback a system configuration file to the client based on a system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy an operating system based on the system configuration file.

[0092] The technical solution of the embodiment of the present invention determines the target IP address associated with the client based on the network deployment environment information provided by the client and the physical address of the client, and determines the target boot program storage path associated with the client based on the network deployment environment information, and then responds to the boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeds back the target boot program to the client, and finally feeds back the system configuration file to the client based on the system configuration file acquisition request initiated by the client by running the target boot program. The network deployment environment information flexibly selected by the client can be adapted to meet the diverse needs of users for network startup operating system methods.

[0093] Figure 3 A flowchart of an operating system deployment method provided by an embodiment of the present invention is further refined on the basis of the above embodiment, and provides specific steps of feeding back a target boot program to a client in response to a boot program acquisition request initiated by a client based on a target IP address and a target boot program storage path, and specific steps of feeding back a system configuration file to a client in response to a system configuration file acquisition request initiated by the client by running the target boot program. Figure 3 As shown, the method includes:

[0094] S310: Determine a target Internet Protocol IP address and a target boot program storage path associated with the client based on the network deployment environment information provided by the client, and feed back the information to the client.

[0095] S320: In response to a boot program acquisition request sent by the client through the target application layer protocol in the network deployment environment information based on the target IP address, determine the target boot program according to the target boot program storage path in the boot program acquisition request.

[0096] In the embodiment of the present invention, after obtaining the target IP address and the target boot program storage path, the client sends a boot program acquisition request based on the target IP address through the target application layer protocol in the network deployment environment information. In response to the boot program acquisition request sent by the client based on the target IP address through the target application layer protocol in the network deployment environment information, the server searches for the target boot program according to the target boot program storage path in the boot program acquisition request.

[0097] In a specific example, the application layer protocol selected by the client user is the HTTP protocol. After the client obtains the target IP address and the target boot program storage path, it first initiates a boot program acquisition request to the server through the HTTP protocol based on the target IP address, and the request includes the target boot program storage path. After receiving the boot program acquisition request, the server reads the target boot program storage path in the request, and determines the target boot program from multiple boot programs stored locally based on the target boot program storage path.

[0098] S330: Initiate a data transmission mode inquiry message to the client to inquire whether the client agrees to send the target boot program in a transmission mode with a specified data size.

[0099] S340: When the client agrees to the data transmission mode, the target boot program is sent to the client through the target application layer protocol in a transmission mode of a specified data size.

[0100] In the embodiment of the present invention, in order to ensure the security of data transmission between the client and the server, after determining the target boot program, the server first initiates a data transmission mode inquiry message to the client to inquire whether the client agrees to send the target boot program in the transmission mode of the specified data size. If the client agrees to send the target boot program in the transmission mode of the specified data size, the target boot program is sent to the client in the transmission mode of the specified data size through the target application layer protocol selected by the client, thereby ensuring the security of the transmission of the target boot program.

[0101] S350: In response to a system configuration file acquisition request initiated by the client, a system configuration file is fed back to the client according to an operating system configuration item selected by the client during the running of the target boot program; the system configuration file includes a target file transfer protocol selected by the client in the operating system configuration item.

[0102] In the embodiment of the present invention, after receiving the target boot program sent by the server, the client runs the target boot program. During the running of the target boot program, the grub.cfg file is loaded, and the selection items of various operating system configuration items are displayed to the user in the form of a menu. For example, the operating system configuration item includes a file transfer protocol used for file transfer with the server, and the selection items included may be HTTP protocol, TFTP protocol, NFS protocol, FTP protocol, etc. In addition, the operating system configuration item may also include the operating system version to be deployed and the driver to be installed, etc.

[0103] After obtaining the result of the user's selection based on each operating system configuration item, the client sends a system configuration file acquisition request to the server based on the selection result, for requesting the server for a system configuration file that matches the above selection result. After receiving the system configuration file acquisition request, the server determines the system configuration file that matches the operating system configuration item based on the operating system configuration item selected by the client during the boot process, and feeds back to the client. The system configuration file includes the target file transfer protocol selected by the client in the operating system configuration item, and when the client and the server interact subsequently, the file transfer is performed according to the target file transfer protocol.

[0104] S360: Determine a target software package in response to a software package acquisition request sent by the client based on the system configuration file.

[0105] In an embodiment of the present invention, after receiving the system configuration file, the client deploys the operating system based on the system configuration file. Specifically, the system configuration file is a Kickstart configuration file, which may include the configuration information required during the operating system installation process, such as the system language, system time zone, disk partition, and network settings. In addition, the Kickstart configuration file also includes the software packages that need to be installed during the deployment of the operating system. On the one hand, the client reads the configuration information in the system configuration file, and sets the system language, system time zone, system network, and disk partition according to the configuration information during the deployment of the operating system. On the other hand, the software package to be installed and the kernel file contained in the system configuration file are read, and a software package acquisition request is sent to the server. Among them, the software package acquisition request may include the identification information of the software to be installed. After receiving the software package acquisition request, the server determines the target software package based on the identification information of the software to be installed contained in the request.

[0106] S370: Feedback the target software package to the client through the target file transfer protocol included in the system configuration file.

[0107] In the embodiment of the present invention, the server sends the target software package to the client through the target file transfer protocol included in the system configuration file, so that the client completes the installation of the required software during the installation of the operating system. For example, if the client user needs to install a test tool during the installation of the operating system, the server feeds back the test tool to the client through the target file transfer protocol specified by the client.

[0108] According to the technical solution of the embodiment of the present invention, the server can feedback the target boot program to the client using the application layer protocol selected by the client, and during the installation of the operating system, it can also send the files required for installing the operating system based on the target file transfer protocol selected by the client in the operating system configuration item. On the one hand, it can be compatible with various scenarios of deploying operating systems on various network cards, and on the other hand, it can also be compatible with multiple file transfer protocols, which can meet the user's demand for a variety of network startup operating system methods while saving server resources.

[0109] Figure 4 A signaling diagram between a client and a server provided according to an embodiment of the present invention.

[0110] S401, the client sends a DHCP request to the server; the DHCP request includes network deployment environment information;

[0111] S402, the server responds to the DHCP request, determines the target IP address and target boot program storage path associated with the client according to the network deployment environment information, and feeds back to the client;

[0112] S403, the client sends a boot program acquisition request to the server through the target application layer protocol in the network deployment environment information based on the target IP address; the boot program acquisition request includes the target boot program storage path;

[0113] S404, the server sends a data transmission mode inquiry message to the client in response to the boot program acquisition request, to inquire whether the client agrees to send the target boot program in a transmission mode with a specified data size;

[0114] S405, the client returns the consent to send the target boot program in the transmission mode of the specified data size;

[0115] S406, the server sends the target boot program to the client through the target application layer protocol in a transmission mode of a specified data size;

[0116] S407, the client initiates a system configuration file acquisition request to the server by running the target boot program;

[0117] S408, the server sends a system configuration file;

[0118] S409, the client reads the system configuration file, and initiates a software package acquisition request to the server according to the system configuration file, and sends a kernel acquisition request;

[0119] S410: The server feeds back Kernel and related software packages to the client, so as to instruct the client to complete the operating system deployment according to the system configuration file.

[0120] The technical solution of the embodiment of the present invention first determines the target Internet Protocol IP address and the target boot program storage path associated with the client according to the network deployment environment information provided by the client, and feeds back the information to the client, and then responds to the boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeds back the target boot program to the client, and finally feeds back the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy the operating system according to the system configuration file. The network deployment environment information flexibly selected by the client can be adapted, and time and labor costs can be saved while meeting the user's diverse needs for network startup operating system methods.

[0121] Figure 5 A schematic diagram of a deployment device for an operating system provided by an embodiment of the present invention. Figure 5 As shown, the device comprises:

[0122] The IP address feedback module 510 is used to determine the target IP address and target boot program storage path associated with the client according to the network deployment environment information provided by the client, and feed back to the client;

[0123] The boot program feedback module 520 is used to respond to the boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, and feedback the target boot program to the client;

[0124] The configuration file feedback module 530 is used to feedback the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy the operating system according to the system configuration file.

[0125] The technical solution of the embodiment of the present invention first determines the target Internet Protocol IP address and the target boot program storage path associated with the client according to the network deployment environment information provided by the client, and feeds back the information to the client, and then responds to the boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeds back the target boot program to the client, and finally feeds back the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy the operating system according to the system configuration file. The network deployment environment information flexibly selected by the client can be adapted, and time and labor costs can be saved while meeting the user's diverse needs for network startup operating system methods.

[0126] Optionally, the IP address feedback module 510 includes:

[0127] An IP address determination unit, configured to determine a target IP address associated with the client based on the network deployment environment information and the physical address of the client;

[0128] The storage path determining unit is used to determine the target boot program storage path associated with the client according to the network deployment environment information.

[0129] Optionally, the IP address determination unit is specifically used to:

[0130] Determine a target IP address pool associated with the target network protocol according to the target network protocol in the network deployment environment information;

[0131] According to the physical address of the client, a target IP address associated with the client is selected from the target IP address pool.

[0132] Optionally, the boot program feedback module 520 is specifically configured to:

[0133] In response to a boot program acquisition request sent by the client through the target application layer protocol in the network deployment environment information based on the target IP address, determining a target boot program according to a target boot program storage path in the boot program acquisition request;

[0134] Initiating a data transmission mode inquiry message to the client to inquire whether the client agrees to send the target boot program in a transmission mode with a specified data size;

[0135] In the case where the client agrees to the data sending mode, the target boot program is sent to the client through the target application layer protocol in the transmission mode of the specified data size.

[0136] Optionally, the configuration file feedback module 530 is specifically configured to:

[0137] In response to a system configuration file acquisition request initiated by the client, a system configuration file is fed back to the client according to the operating system configuration item selected by the client during the running of the target boot program; the system configuration file includes the target file transfer protocol selected by the client in the operating system configuration item.

[0138] Optionally, the operating system deployment device further includes:

[0139] a software package determination module, configured to determine a target software package in response to a software package acquisition request sent by the client based on the system configuration file, after feeding back a system configuration file to the client according to a system configuration file acquisition request initiated by the client by running the target boot program;

[0140] The software package feedback module is used to feed back the target software package to the client through the target file transfer protocol contained in the system configuration file.

[0141] Optionally, the network deployment environment information includes at least one of a target network protocol, a target network startup mode, and a target application layer protocol.

[0142] The operating system deployment device provided in the embodiment of the present invention can execute the operating system deployment method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0143] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0144] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0145] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0146] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for deploying an operating system.

[0147] In some embodiments, the method for deploying an operating system may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for deploying an operating system described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for deploying an operating system in any other appropriate manner (e.g., by means of firmware).

[0148] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0149] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0150] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0151] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0152] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0153] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0154] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0155] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for deploying an operating system, characterized in that: include: According to the network deployment environment information provided by the client, determine the target Internet Protocol IP address and the target boot program storage path associated with the client, and feed back to the client; In response to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeding back the target boot program to the client; Feedback the system configuration file to the client according to a system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy the operating system according to the system configuration file; The step of responding to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, feeding back the target boot program to the client includes: In response to a boot program acquisition request sent by the client through the target application layer protocol in the network deployment environment information based on the target IP address, determining a target boot program according to a target boot program storage path in the boot program acquisition request; Initiating a data transmission mode inquiry message to the client to inquire whether the client agrees to send the target boot program in a transmission mode with a specified data size; In the case where the client agrees to the data sending mode, the target boot program is sent to the client through the target application layer protocol in the transmission mode of the specified data size.

2. The method according to claim 1, characterized in that Based on the network deployment environment information provided by the client, determine the target IP address and target boot program storage path associated with the client, including: Determining a target IP address associated with the client based on the network deployment environment information and the physical address of the client; A target boot program storage path associated with the client is determined according to the network deployment environment information.

3. The method according to claim 2, characterized in that Determining a target IP address associated with the client according to the network deployment environment information and the physical address of the client includes: Determine a target IP address pool associated with the target network protocol according to the target network protocol in the network deployment environment information; According to the physical address of the client, a target IP address associated with the client is selected from the target IP address pool.

4. The method according to claim 1, characterized in that: Feedback the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, including: In response to a system configuration file acquisition request initiated by the client, a system configuration file is fed back to the client based on the operating system configuration item selected by the client during the running of the target boot program; the system configuration file includes the target file transfer protocol selected by the client in the operating system configuration item.

5. The method according to claim 4, characterized in that After feeding back the system configuration file to the client according to the system configuration file acquisition request initiated by the client by running the target boot program, the method further includes: In response to a software package acquisition request sent by the client based on the system configuration file, determining a target software package; The target software package is fed back to the client through the target file transfer protocol contained in the system configuration file.

6. The method according to any one of claims 1 to 5, characterized in that: The network deployment environment information includes at least one of a target network protocol, a target network startup mode, and a target application layer protocol.

7. A deployment device for an operating system, characterized in that: include: The IP address feedback module is used to determine the target IP address and target boot program storage path associated with the client according to the network deployment environment information provided by the client, and feed back to the client; A boot program feedback module, configured to respond to a boot program acquisition request initiated by the client based on the target IP address and the target boot program storage path, and to feed back the target boot program to the client; A configuration file feedback module, used to feedback a system configuration file to the client according to a system configuration file acquisition request initiated by the client by running the target boot program, so as to instruct the client to deploy an operating system according to the system configuration file; Bootstrap feedback module, specifically used for: In response to a boot program acquisition request sent by the client through the target application layer protocol in the network deployment environment information based on the target IP address, determining a target boot program according to a target boot program storage path in the boot program acquisition request; Initiating a data transmission mode inquiry message to the client to inquire whether the client agrees to send the target boot program in a transmission mode with a specified data size; In the case where the client agrees to the data sending mode, the target boot program is sent to the client through the target application layer protocol in the transmission mode of the specified data size.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the operating system deployment method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the operating system deployment method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Rapid deployment method of cluster Linux operation system in cloud-computing environment

    CN103984575A

  • Installation method and apparatus of operating system

    CN104850437A