System installation method and device
By automatically deploying the system installation method on ARM architecture devices and using the system startup firmware and installation program files provided by the server, the problem of tedious manual installation steps is solved, fast and simple system installation is achieved, and installation efficiency is improved.
Patent Information
- Application Number
- CN201911397902.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-12-30
AI Technical Summary
In a large-scale host cluster environment, devices based on the ARM architecture require manual installation of the operating system, which is cumbersome and lacks automated solutions.
The client device sends a broadcast message to the server to obtain the system startup firmware identification information, and requests and installs the system startup firmware and system installation program files based on the information to realize an automated system installation process.
Save human resources, improve system installation efficiency, and enable devices based on ARM architecture to quickly and easily complete the installation of operating systems.
Smart Images

Figure CN111163167B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a system installation method and device. Background Art
[0002] With the popularization of computer technology, computers have gradually penetrated into all aspects of people's work and life. With the rapid growth of various computing business volumes, the scale of the Internet Data Center (Internet Data Center) computer room that carries the business at the back end is also expanding exponentially, and computer rooms with tens of thousands of hosts are also very common. In this large-scale host cluster environment, it is often necessary to install and deploy the operating system. The current mainstream operating systems are all built based on the X86 architecture (The X86 architecture, a computer language instruction set executed by a microprocessor), and the system installation method based on the X86 architecture is also very mature. Due to the difference in the hardware layer between the two, that is, the instruction set of the microprocessor corresponding to the X86 architecture and the microprocessor corresponding to the ARM architecture (Acorn RISC Machine, an advanced reduced instruction set machine) is different, so the system installation method applicable to the X86 architecture is not applicable to the ARM architecture device. Generally speaking, the system deployment and installation of devices based on the ARM architecture, that is, ARM microprocessors, is manually performed by users, and the operation steps are cumbersome and require certain professionalism.
[0003] Therefore, there is an urgent need for a system installation method and device that can overcome the above problems, and can automatically deploy the system on a device based on the ARM architecture, eliminating the trouble of manual installation. Summary of the invention
[0004] The embodiment of the present invention provides a system installation method and device, which automatically deploys and installs the system on a device based on the ARM architecture, so as to solve the problems of manual installation and complicated operation steps in the prior art, and enable the operating system of the device based on the ARM architecture to be installed quickly and easily.
[0005] In a first aspect, an embodiment of the present invention provides a system installation method, including:
[0006] The client device sends a broadcast message to the server, and the broadcast message includes information of the ARM microprocessor of the client device. Further, the client device receives a response message from the server, and the response message includes identification information of the system startup firmware corresponding to the information of the ARM microprocessor of the client device. The client device sends a system installation request message, wherein the system installation request message is used to request to obtain the system startup firmware, and the request message also includes the above identification information. Further, the client device receives the system startup firmware corresponding to the identification information from the server. Further, the client device obtains and installs the system installation program file from the server according to the system startup firmware.
[0007] In a possible embodiment, the client device sends a broadcast message carrying the information of the ARM microprocessor of the client device to the server, and the server identifies the information of the ARM microprocessor of the client device according to the preset logic code, and then returns a response message with the identification information of the corresponding system startup firmware. System installation request message. Further, the client device sends a system installation request message according to the identification information to request the system startup firmware corresponding to the identification information from the server. Correspondingly, the server returns the corresponding system startup firmware to the client device according to the identification information. Finally, the client device implements the subsequent steps of requesting and installing the system installation program file from the server according to the system startup firmware, thereby realizing the automatic installation of the system of the client device, saving human resources, and improving the efficiency of system installation.
[0008] In a possible design, the broadcast message is also used by the client device to request an IP address from the server. Accordingly, the response message of the server also includes the IP address. Further, the client device establishes a network connection with the server based on the IP address.
[0009] In a possible embodiment, the client device first starts the network card PXE to request a broadcast message of an IP address from the server, and at the same time sends the ARM architecture information of the client device to the server. The server then returns the IP address assigned to the client device and the ARM architecture information of the client device to the identification information of the system startup firmware corresponding to the server. The client device then uses the IP address to establish communication with the server to implement the subsequent steps of sending request messages, receiving response messages, etc.
[0010] In a possible design, the client device sends a system installation program file acquisition request message to the server, and the system installation program file acquisition request message is used to request a system installation program file. Further, the client device receives the system installation program file from the server. Then the client device starts the kernel according to the system installation program file, and sends a configuration file acquisition request message to the server, and the configuration file acquisition request message is used to request to obtain a configuration file; the client device receives the configuration file from the server, and the client device installs the system installation program file according to the configuration file.
[0011] In a possible embodiment, the client device sends a system installation program file acquisition request message to the server, requests the system installation program file from the server, and the server returns the corresponding system installation program file, and then the client device starts the core file in the system installation program file. According to the core file, the client device continues to send a configuration file request message to the server, and further, after obtaining the configuration file sent by the server, the client device automatically installs the operating system according to the configuration file.
[0012] Optionally, the client device reports an installation log, that is, a task progress log, to the server according to the configuration file, forming a task closed loop.
[0013] In a second aspect, an embodiment of the present invention further provides a method for installing a system, including:
[0014] The service receives a broadcast message from a client device, wherein the broadcast message includes information of an ARM microprocessor of the client device. Further, the server sends a response message including identification information of a system startup firmware corresponding to the information of the ARM microprocessor of the client device to the client device. Then, a system installation request message is received from the client device, wherein the system installation request message is used to request acquisition of the system startup firmware, and the system installation request message includes the identification information. The server sends the system startup firmware corresponding to the identification information to the client device; wherein the system startup firmware is used by the client device to acquire and install the system installation program file from the server according to the system startup firmware.
[0015] In one possible design, the broadcast message is also used to request an IP address; the response message also includes the IP address configured by the server for the client device; and the server establishes a network connection with the client device based on the IP address.
[0016] In a possible design, after the server sends the system startup firmware corresponding to the identification information to the client device, it also includes: the server receives a system installation program file acquisition request message from the client device, and the system installation program file acquisition request message is used to request to obtain the system installation program file. Further, the server sends the system installation program file to the client device. The server receives a configuration file acquisition request message from the client device, and the configuration file acquisition request message is used to request to obtain a configuration file. The configuration file acquisition request message is sent by the client device after starting the kernel according to the system installation program file. The server sends the configuration file to the client device, and the configuration file is used by the client device to install the system installation program file according to the configuration file.
[0017] In a third aspect, an embodiment of the present invention provides a system installation method, including:
[0018] The client device sends a broadcast message to the server, the broadcast message includes information of the ARM microprocessor of the client device. The client device receives a response message from the server, the response message includes identification information of the system startup firmware corresponding to the information of the ARM microprocessor of the client device; the client device sends a system installation request message to the server, the system installation request message is used to request to obtain the system startup firmware, and also includes the identification information. The client device receives the system startup firmware corresponding to the identification information from the server; the client device obtains and installs the system installation program file from the server according to the system startup firmware.
[0019] Correspondingly, the server receives the broadcast message of the client device; the server sends the response message to the client device; the server receives the system installation request message sent by the client device; the server sends the system startup firmware corresponding to the identification information to the client device.
[0020] In a fourth aspect, an embodiment of the present invention provides a system installation device, comprising: a sending unit, configured to send a broadcast message, wherein the broadcast message includes information about the ARM microprocessor of the client device. A receiving unit, configured to receive a response message from the server, including identification information of a system startup firmware corresponding to the information about the ARM microprocessor of the client device. Furthermore, the sending unit is also configured to send a system installation request message to the server, wherein the system installation request message is used to request acquisition of the system startup firmware, and the system installation request message includes the identification information. A receiving unit, configured to receive the system startup firmware corresponding to the identification information from the server. A processing unit, configured to obtain a system installation program file from the server according to the system startup firmware, and to install the system installation program file.
[0021] In a possible design, the broadcast message is also used to request an IP address. The response message also includes an IP address configured by the server for the client device. The processing unit is also used to establish a network connection with the server based on the IP address.
[0022] In a possible design, the sending unit is specifically used to send a system installation program file acquisition request message to the server, and the system installation program file acquisition request message is used to request a system installation program file. The receiving unit is also used to receive the system installation program file from the server. The processing unit is also used to start the kernel according to the system installation program file, and enable the sending unit to send a configuration file acquisition request message to the server. The configuration file acquisition request message is used to request to obtain a configuration file. The receiving unit is also used to receive a configuration file from the server. The processing unit is also used to install the system installation program file according to the configuration file.
[0023] In a fifth aspect, an embodiment of the present invention provides a system installation device, comprising: a processing unit, specifically used to send a system installation program file acquisition request message to the server, for requesting to obtain the system installation program file. Accordingly, a receiving unit is used to receive the system installation program file from the server. The processing unit is used to start the kernel according to the system installation program file, and to enable the sending unit to send a configuration file acquisition request message to the server, wherein the configuration file acquisition request message is used to request to obtain the configuration file. Accordingly, the receiving unit is used to receive the configuration file from the server. Further, the processing unit is used to install the system installation program file according to the configuration file.
[0024] In one possible design, a receiving unit is used to receive a broadcast message from a client device, wherein the broadcast message includes information about an ARM microprocessor of the client device. A sending unit is used to send a response message, wherein the response message includes identification information of a system startup firmware corresponding to the information about the ARM microprocessor of the client device. A receiving unit is used to receive a system installation request message from a client device, wherein the system installation request message is used to request acquisition of system startup firmware, wherein the system installation request message includes the identification information. A sending unit is used to send system startup firmware corresponding to the identification information to the client device; the system startup firmware is used by the client device to acquire and install a system installation program file from the server according to the system startup firmware.
[0025] In a possible design, the receiving unit is also used to receive a broadcast message from the client device, and the broadcast message is used to request an IP address. The sending unit is also used to send a response message to the client device, which includes the IP address. Further, the processing unit is used to establish a network connection with the client device according to the IP address. The receiving unit is also used to receive a system installation program file acquisition request message from the client device, and the system installation program file acquisition request message is used to request to obtain a system installation program file. The sending unit is also used to send a system installation program file to the client device. The receiving unit is also used to receive a configuration file acquisition request message from the client device, and the configuration file acquisition request message is used to request to obtain a configuration file. The configuration file acquisition request message is sent by the client device after starting the kernel according to the system installation program file. The receiving unit is also used to send a configuration file to the client device; the configuration file is used by the client device to install the system installation program file according to the configuration file.
[0026] In a sixth aspect, an embodiment of the present invention provides a system installation device, comprising: a sending unit, configured to send a broadcast message, wherein the broadcast message includes information of an ARM microprocessor of a client device. A receiving unit, configured to receive a response message from a server, wherein the response message includes identification information of a system startup firmware corresponding to the information of the ARM microprocessor of the client device. A sending unit, configured to send a system installation request message to a server, wherein the system installation request message is used to request acquisition of system startup firmware, and the system installation request message includes the identification information. A receiving unit, configured to receive system startup firmware corresponding to the identification information from the server. A processing unit, configured to acquire and install a system installation program file from the server according to the system startup firmware.
[0027] Correspondingly, the receiving unit is further used to receive the broadcast message of the client device. The sending unit is further used to send the response message to the client device. The receiving unit is further used to receive the system installation request message of the client device. The sending unit is further used to send the system startup firmware to the client device.
[0028] In the seventh aspect, an embodiment of the present invention provides a computing device, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes any method described in the first aspect, the second aspect, and the third aspect above.
[0029] In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computing device. When the program runs on the computing device, the computing device executes any method described in the first, second, or third aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 paying creative work.
[0031] Figure 1 A schematic diagram of a system installation architecture in the prior art provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of a system installation architecture based on an ARM microprocessor device provided in an embodiment of the present application;
[0033] Figure 3 A schematic diagram of a system automatic deployment and installation process based on an ARM microprocessor device provided in an embodiment of the present application;
[0034] Figure 4 A schematic diagram of a system automatic deployment and installation process based on an ARM microprocessor device provided in an embodiment of the present application;
[0035] Figure 5 A schematic diagram of a system automatic deployment and installation process based on an ARM microprocessor device provided in an embodiment of the present application;
[0036] Figure 6 A schematic diagram of a system automatic deployment and installation device based on an ARM microprocessor device provided in an embodiment of the present application;
[0037] Figure 7 A schematic diagram of a system automatic deployment and installation device based on an ARM microprocessor device provided in an embodiment of the present application;
[0038] Figure 8 A schematic diagram of a system automatic deployment and installation device based on an ARM microprocessor device provided in an embodiment of the present application;
[0039] Fig. 9 A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Figure 1 1 is a schematic diagram of a system installation architecture in the prior art, which generally coordinates and manages the client device 101 by setting up a server 102. Figure 2 From the schematic diagram of the system installation architecture based on the ARM microprocessor device shown, it can be seen that: the client device 101 includes a network card 103 and a system startup firmware 104 obtained from the server 102, a system installation program file 105 obtained from the server 102, and a configuration file 106 obtained from the server 102; further, the server 102 includes a DHCP (Dynamic Host Configuration Protocol) 107, a TFTP (Trivial File Transfer Protocol) 108 and a WEB SERVER (web server) 109.
[0042] The embodiment of the present invention provides Figure 3 A schematic diagram of the automatic deployment and installation process of a system based on an ARM microprocessor device is as follows:
[0043] Step 301 : The client device 101 sends a broadcast message to the server 102 . The broadcast message includes information of the ARM microprocessor of the client device.
[0044] In a possible embodiment, the client device 101 starts the network card 103 to send information carrying the ARM microprocessor of the client device. Optionally, the information includes arch code information corresponding to the ARM microprocessor of the device.
[0045] Step 302 : The client device 101 receives a response message from the server 102 . The response message includes identification information of the system startup firmware 104 corresponding to information of the ARM microprocessor of the client device.
[0046] In a possible embodiment, the client device 101 receives a response message from the server 102 , the server 102 finds the corresponding system startup firmware 104 through the above-mentioned arch code information, and then sends the identification information of the system startup firmware 104 to the client device 101 .
[0047] Step 303 : The client device 101 sends a system installation request message to the server 102 . The system installation request message is used to request to obtain the system startup firmware 104 , and also includes identification information.
[0048] In a possible embodiment, the client device 101 sends a system installation request message to the TFTP 108 in the server 102 to request the system to start the firmware 104 , and the message also includes the above identification information.
[0049] Step 304, the client device 101 receives the system startup firmware 104 corresponding to the identification information from the server 102;
[0050] In a possible embodiment, the client device 101 receives the system boot firmware 104 corresponding to the identification information of the TFTP 108 in the server 102 .
[0051] Step 305 , the client device 101 obtains and installs the system installation program file 105 from the server 102 according to the system startup firmware 104 .
[0052] In a possible embodiment, the client device 101 obtains the system installation program file 105 from the TFTP 108 in the server 102 according to the system startup firmware 104, and installs the system installation program file 105. The client device 101 reads the system installation program file 105 of the server 102 through the network, and completes the automatic deployment and installation of the operating system step by step according to the pre-set steps.
[0053] In one possible design, in step 301, the client device 101 sends a broadcast message to the server 102, wherein the broadcast message is also used to request an IP address. Further, the client device 101 receives a response message from the server 102, wherein the response message also includes the IP address. Then, the client device 101 establishes a network connection with the server 102 according to the IP address.
[0054] In a possible embodiment, the client device 101 starts the network card 103 to send a broadcast message to the DHCP 107 of the server 102, and the broadcast message is also used to request an IP address to be assigned to the client device 101. Further, the client device 101 receives a response message from the DHCP 107 in the server 102, and the response message includes the IP address. Then the client device 101 establishes a network connection with the server 102 according to the IP address.
[0055] In a possible design, in step 303 , the client device 101 sends a request message for obtaining the system installation program file 105 to the server 102 , where the request message for obtaining the system installation program file 105 is used to request the system installation program file 105 .
[0056] Further, the client device 101 receives the system installation program file 105 from the server 102. Then, the client device 101 starts the kernel according to the system installation program file 105, and sends a configuration file acquisition request message to the server 102, where the configuration file acquisition request message is used to request to acquire the configuration file 106. Further, the client device 101 receives the configuration file 106 from the server 102, and then installs the system installation program file 105 according to the configuration file 106.
[0057] In a possible embodiment, the client device 101 sends a system installation program file acquisition request message to the TFTP 108 in the server 102. Further, the client device 101 receives the system installation program file 105 sent by the TFTP 108 in the server 102. Optionally, the system installation program file 105 includes a kernel file and a root system file. Then the client device 101 starts the kernel file, sends a configuration file acquisition request message to the server 102, then receives a kickstart configuration file from the server 102, and then automatically installs the operating system according to the kickstart configuration file.
[0058] Furthermore, the kickstart configuration file includes common system installation necessary configurations such as time zone and system partition, and also reports the installation task progress log to the deployment platform (my.webserver.com), forming a task closed loop.
[0059] In a possible embodiment, before step 301, the configuration items of DHCP107 are added to adapt to the installation of the ARM microprocessor device. Optionally, the service configuration file of DHCP107 is modified, the default storage path / etc / dhcp / dhcpd.conf is set, and the arch=00:0b judgment logic and the corresponding system startup firmware ipxeaa64.efi are added.
[0060] The corresponding codes are as follows:
[0061] Table 1
[0062]
[0063] Among them, arch=00:00 means that the client device 101 is based on the X86 architecture, and the server 102 will return the system startup firmware "undionly.kpxe" based on the X86 architecture; arch=00:07 means that the server 102 will return a system startup firmware "ipxex64.efi" with stronger compatibility; arch=00:0b means that the client device 101 is based on the ARM architecture, and the server 102 will return the system startup firmware ipxeaa64.efi based on the ARM architecture 64-bit microprocessor.
[0064] Furthermore, in the above step 301, the ARM microprocessor information of the client device 101 is its corresponding Arch code information "arch=00:0b". Optionally, in step 302, the server 102 identifies that the client device 101 is based on an ARM architecture 64-bit microprocessor according to the "arch=00:0b" sent by the above client device 101 and the pre-configured logic code in DHCP107, so the server 102 sends a response message carrying the identification information corresponding to the system startup firmware ipxeaa64.efi to the client device 101.
[0065] Furthermore, the system boot firmware ipxeaa64.efi is obtained by modifying and compiling the IPXE file. The modification and compilation process is as follows:
[0066] 1. Modify and compile the parameter configuration file in the IPXE file, including: turning off unnecessary functions and turning on common feature configurations, including:
[0067] (1) Modify the general.h file, enable some protocol functions, and disable other protocols:
[0068] Table 2
[0069]
[0070] (2) Modify the general.h file and enable some support configuration items to allow the EFI format image to be deployed and installed, including:
[0071] Table 3
[0072]
[0073] 2. Add the script file ipxescript, the content is as follows:
[0074] Table 4
[0075]
[0076] The above code logic implements that when the client device 101 runs the system startup firmware 104, the client device 101 automatically requests the system installation program file 105 from the server 102 through the http protocol to implement step 303. By modifying and compiling IPXE as above, the system startup firmware 104 suitable for ARM architecture devices in the embodiment of the present application, that is, the ipxeaa64.efi file, is obtained.
[0077] In a possible embodiment, in the above step 305, the client device 101 runs the system startup firmware 104 to send a system installation program file 105 request information to the server 102, wherein the content of the request information declares the location of the vmlinuz kernel file, the location of the kickstart file, and the location of the root file system initrd in the system installation program file 105, wherein the specific implementation code is as follows:
[0078] Table 5
[0079]
[0080] Furthermore, in the above step 305, the TFTP 108 of the server 102 returns the corresponding system installation program file 105. The client device 101 performs system installation according to the downloaded system installation program file 105. Optionally, the client device 101 starts the Linux kernel, sends a configuration document acquisition request message to the WEB SERVER 109, and the WEB SERVER 109 returns the configuration file 106, that is, the kickstart configuration file to the client device 101. Then the client device 101 automatically installs the operating system according to the kickstart configuration file. The preset kickstart configuration file not only includes the necessary configurations for general system installation, such as time zone, system partition, etc., but also reports the task progress log to the deployment platform (my.webserver.com) to form a task closed loop.
[0081] In a possible embodiment, the above method is used to simultaneously install the system on multiple client devices. For a single client device, it usually takes more than ten to dozens of minutes to complete the installation of the operating system, which mainly depends on the host hardware performance and network bandwidth conditions. If a large number of client devices are installed concurrently, this time consumption may be extended to a certain extent. As such a long operation with a large time span, during the operation execution process, the client device reports the installation log and feeds back the installation status to the server, which is conducive to monitoring the entire system installation process and improving the system installation efficiency.
[0082] Based on the same technical concept, the embodiment of the present invention also provides a schematic diagram of the automatic deployment and installation process of the system based on the ARM microprocessor device, such as Figure 4 As shown, including:
[0083] Step 401 : the server 102 receives a broadcast message from the client device 101 , where the broadcast message includes information of an ARM microprocessor of the client device.
[0084] Step 402 , the server 102 sends a response message to the client device 101 , where the response message includes identification information of the system startup firmware 104 corresponding to information of the ARM microprocessor of the client device.
[0085] Step 403: the server 102 receives a system installation request message from the client device 101, where the system installation request message is used to request to obtain the system startup firmware 104, and also includes identification information.
[0086] Step 404 , the server 102 sends the system startup firmware 104 corresponding to the identification information to the client device 101 . The system startup firmware 104 is used to enable the client device 101 to obtain and install the system installation program file 105 from the server 102 according to the system startup firmware 104 .
[0087] In a possible design, in the above step 401, the server 102 receives a broadcast message from the client device 101, and the broadcast message is used to request an IP address. Further, the server 102 sends a response message to the client device 101, and the response message also includes the IP address. Then the server 102 and the client device 101 establish a network connection based on the IP address.
[0088] Optionally, the DHCP 107 in the server 102 sends a response message to the client device 101, wherein the response message includes an IP address. Then, the server 102 establishes a network connection with the client device 101 according to the IP address.
[0089] Optionally, in step 404, after sending the system startup firmware 104 to the client device 101, the server 102 receives a system installation program file 105 acquisition request message from the client device 101, and the system installation program file 105 acquisition request message is used to request the system installation program file 105. Further, the server 102 sends the system installation program file 105 to the client device 101. Then the server 102 receives a configuration file acquisition request message from the client device 101, wherein the configuration file acquisition request message is used to request to obtain the configuration file 106, and the configuration file acquisition request message is sent by the client device 101 after starting the kernel according to the system installation program file 105 in the previous step. Next, the server 102 sends the configuration file 106 to the client device 101, wherein the configuration file 106 is used by the client device 101 to install the system installation program file 105 according to the configuration file 106.
[0090] In a possible embodiment, TFTP 108 in server 102 sends system installation program file 105 to client device 101. Further, server 102 receives a configuration file acquisition request message from client device 101 and returns a corresponding configuration file 106. Then client device 101 automatically installs the operating system according to the configuration file 106. Further, configuration file 106, i.e., kickstart configuration file, includes common system installation necessary configurations such as time zone and system partition, etc. In a possible embodiment, deployment platform (my.webserver.com) receives the installation task progress log from client device 101, forming a task closed loop.
[0091] Based on the same technical concept, the embodiment of the present invention also provides a schematic diagram of the automatic deployment and installation process of the system based on the ARM microprocessor device, such as Figure 5 shown.
[0092] In a possible embodiment, first, the client device 101 drives the network card 103 to send a broadcast message to the server 102, which optionally also includes the ARM architecture information of the client device 101 and the information of the requested IP address. Exemplarily, the broadcast message includes the "arch=00:1b" code information. Subsequently, after receiving the broadcast message, the server 102 returns a response message, which includes the identification information of the system startup firmware 104 corresponding to the "arch=00:1b" code information and the IP address information assigned to the client device 101. Further, the client device 101 establishes communication with the server 102 according to the IP address. Further, the client device 101 sends a system installation request message to the server 102, and the request message is used to request the server 102 to obtain the system startup firmware 104, which includes the identification information in the previous step. Exemplarily, TFTP108 in the server 102 identifies that the client device 101 is a device based on an ARM architecture 64-bit microprocessor based on the above identification information and the preset logic code, so the server 102 sends the corresponding system startup firmware 104, that is, the ipxeaa64.efi file to the client device 101.
[0093] In a possible embodiment, after receiving the ipxeaa64.efi file, the client device 101 runs and sends a system installation program file request message to the server 102 according to the ipxeaa64.efi, and the TFTP 108 in the server 102 returns the system installation program file 105 to the client device 101. The file includes a kernel file and a root system file.
[0094] In a possible embodiment, further, the client device 101 runs the kernel file according to the system installation program file 105, and further, sends a configuration file acquisition request message to the WEB SERVER 109 in the server 102, and the WEB SERVER 109 returns the corresponding configuration file 106. Exemplarily, the WEB SERVER 109 in the server 102 returns the kickstart configuration file, which includes common system installation necessary configurations such as time zone and system partition.
[0095] In a possible embodiment, the deployment platform (my.webserver.com) in the server 102 receives the installation task progress log from the client device 101 to form a task closed loop, thereby completing the installation of the operating system.
[0096] Based on the same technical concept, the embodiment of the present invention also provides a system automatic deployment and installation device based on an ARM microprocessor device, which can execute Figure 3The device provided by the embodiment of the present invention is as follows: Figure 6 As shown, including:
[0097] The sending unit 601 is used to send a broadcast message, wherein the broadcast message includes the ARM microprocessor information of the client device.
[0098] The receiving unit 603 is used to receive a response message from the server 102, where the response message includes identification information of the system startup firmware 104 corresponding to information of the ARM microprocessor of the client device.
[0099] The sending unit 601 is used to send a system installation request message to the server 102, wherein the system installation request message is used to request to obtain the system startup firmware 104 and also includes identification information.
[0100] The receiving unit 603 is configured to receive the system startup firmware 104 corresponding to the identification information from the server 102 .
[0101] The processing unit 602 is configured to obtain the system installation program file 105 from the server 102 according to the system startup firmware 104 , and install the system installation program file 105 .
[0102] In a possible design, the broadcast message is also used to request an IP address. Accordingly, the response message also includes the IP address. The processing unit 602 is also used to establish a network connection with the server 102 according to the IP address.
[0103] In a possible design, the sending unit 601 is specifically used to send a system installation program file 105 acquisition request message to the server 102, and the system installation program file 105 acquisition request message is used to request the system installation program file 105. The receiving unit 603 is also used to receive the system installation program file 105 from the server 102. The processing unit 602 is also used to start the kernel according to the system installation program file 105, and make the sending unit 601 send a configuration file acquisition request message to the server 102. Among them, the configuration file 106 acquisition request message is used to request to obtain the configuration file 106. The receiving unit 603 is also used to receive the configuration file 106 from the server 102. The processing unit 602 is also used to install the system installation program file 105 according to the configuration file 106.
[0104] Based on the same technical concept, the embodiment of the present invention also provides a system automatic deployment and installation device based on an ARM microprocessor device, which can execute Figure 4 The device provided by the embodiment of the present invention is as follows: Figure 7 As shown, including:
[0105] The receiving unit 703 is configured to receive a broadcast message from the client device 101, wherein the broadcast message includes the ARM microprocessor information of the client device.
[0106] The sending unit 701 is used to send a response message to the client device 101, where the response message includes identification information of the system startup firmware 104 corresponding to information of the ARM microprocessor of the client device.
[0107] The receiving unit 703 is used to receive a system installation request message from the client device 101 , where the system installation request message is used to request to obtain the system startup firmware 104 , including the above identification information.
[0108] The sending unit 701 is used to send the system startup firmware 104 corresponding to the identification information to the client device 101. Further, the system startup firmware 104 is used by the client device 101 to obtain the system installation program file 105 from the server according to the system startup firmware 104 and install the system installation program file 105.
[0109] In one possible design, the receiving unit 703 is further configured to receive a broadcast message from the client device 101, wherein the broadcast message is used to request an IP address. The sending unit 701 is further configured to send a response message to the client device 101, wherein the response message includes an IP address. The processing unit 702 is configured to establish a network connection with the client device 101 according to the IP address.
[0110] In a possible design, the receiving unit 703 is used to receive a request message for obtaining the system installation program file 105 from the client device 101, and the request message for obtaining the system installation program file 105 is used to request the system installation program file 105. The sending unit 701 is also used to send the system installation program file 105 to the client device 101.
[0111] Further, the receiving unit 703 is further used to receive a configuration file 106 acquisition request message from the client device 101, the configuration file 106 acquisition request message is used to request to acquire the configuration file 106, and the configuration file 106 acquisition request message is sent by the client device 101 after starting the kernel according to the system installation program file 105. The receiving unit 703 is used to send the configuration file 106 to the client device 101. The configuration file 106 is used by the client device 101 to install the system installation program file 105 according to the configuration file 106.
[0112] Based on the same technical concept, an embodiment of the present invention provides a system installation device, such as Figure 8 As shown, the device can be implemented as Figure 5 The method shown comprises:
[0113] The sending unit 801 is used to send a broadcast message, where the broadcast message includes information about the ARM microprocessor of the client device.
[0114] The receiving unit 803 is used to receive a response message from the server 102, where the response message includes identification information of the system startup firmware 104 corresponding to information of the ARM microprocessor of the client device.
[0115] The sending unit 801 is used to send a system installation request message to the server 102. The system installation request message is used to request to obtain the system startup firmware 104. The system installation request message includes identification information.
[0116] The receiving unit 803 is configured to receive the system startup firmware 104 corresponding to the identification information from the server.
[0117] The processing unit 802 is configured to obtain and install the system installation program file 105 from the server 102 according to the system startup firmware 104 .
[0118] The receiving unit 803 is further configured to receive a broadcast message from the client device 101 .
[0119] The sending unit 801 is further configured to send a response message to the client device 101 .
[0120] The receiving unit 803 is further configured to receive a system installation request message from the client device 101 .
[0121] The sending unit 801 is further configured to send the system startup firmware to the client device 101 .
[0122] It should be noted that the present device can also realize the above Figure 3 and Figure 4 The method of any one of the embodiments described above Figure 3 and Figure 4 The method steps are the same as in , and will not be repeated here.
[0123] Based on the same technical concept, an embodiment of the present invention provides a computing device, such as Fig. 9 As shown, it includes at least one processor 901 and a memory 902 connected to the at least one processor. The specific connection medium between the processor 901 and the memory 902 is not limited in the embodiment of the present invention. Fig. 9 For example, the processor 901 and the memory 902 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0124] In the embodiment of the present invention, the memory 902 stores instructions that can be executed by at least one processor 901. The at least one processor 901 can execute the steps included in the aforementioned settlement method by executing the instructions stored in the memory 902.
[0125] Among them, the processor 901 is the control center of the terminal device, which can use various interfaces and lines to connect various parts of the terminal device, and process data by running or executing instructions stored in the memory 902 and calling data stored in the memory 902. Optionally, the processor 901 may include one or more processing units, and the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0126] The processor 901 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0127] The memory 902 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 902 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 902 in the embodiment of the present invention can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0128] Based on the same technical concept, an embodiment of the present invention provides a computer-readable medium storing a computer program executable by a terminal device, which enables the terminal device to execute the steps of the settlement method when the program is executed on the terminal device.
[0129] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0130] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0133] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0134] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A system installation method, characterized in that: The method is applicable to a client device having an ARM microprocessor, and the method comprises: Sending a broadcast message, wherein the broadcast message includes information of an ARM microprocessor of the client device, or information of an X86 microprocessor of the client device; Receiving a response message from the server, the response message including identification information of the system startup firmware corresponding to the information of the ARM microprocessor of the client device; Sending a system installation request message to the server, where the system installation request message is used to request to obtain the system startup firmware, and the system installation request message includes the identification information; receiving a system startup firmware corresponding to the identification information from the server; Sending a system installation program file acquisition request message to the server, wherein the system installation program file acquisition request message is used to request to acquire a system installation program file; Receiving a system installation program file of the server; The kernel is started according to the system installation program file, and a configuration file acquisition request message is sent to the WEB SERVER of the server, wherein the configuration file acquisition request message is used to request the configuration file; the configuration file includes common system installation necessary configurations such as time zone and system partition, etc., and the installation task progress log is also reported to the deployment platform to form a task closed loop; Receiving a configuration file of the WEB SERVER from the server; Installing the system installation program file according to the configuration file; Reporting the installation task progress log to the deployment platform; Before sending the broadcast message, the server further includes: Modify the DHCP service configuration file, add the system startup firmware corresponding to the information of the ARM microprocessor, and the identification information of the system startup firmware corresponding to the information of the ARM microprocessor; Modify the general.h file and enable some support configuration items to allow the EFI format image to be deployed and installed on the system.
2. The method according to claim 1, characterized in that The broadcast message is also used to request an Internet Protocol IP address; The response message also includes an IP address configured by the server for the client device; A network connection is established with the server according to the IP address.
3. A system installation method, characterized in that: The method is applicable to a server, and comprises: Receiving a broadcast message from a client device, the broadcast message including information of an ARM microprocessor of the client device, or information of an X86 microprocessor of the client device; Sending a response message, wherein the response message includes identification information of the system startup firmware corresponding to the information of the ARM microprocessor of the client device; receiving a system installation request message from the client device, wherein the system installation request message is used to request acquisition of system startup firmware, and the system installation request message includes the identification information; Sending a system startup firmware corresponding to the identification information to the client device; the system startup firmware is used by the client device to obtain and install the system installation program file from the server according to the system startup firmware; receiving a system installation program file acquisition request message from the client device, wherein the system installation program file acquisition request message is used to request acquisition of a system installation program file; Sending a system installation program file to the client device; The WEB SERVER of the server receives a configuration file acquisition request message from the client device, wherein the configuration file acquisition request message is used to request to acquire a configuration file, and the configuration file acquisition request message is sent by the client device after starting a kernel according to the system installation program file; The WEB SERVER of the server sends a configuration file to the client device; the configuration file is used by the client device to install the system installation program file according to the configuration file; Receiving the installation task progress log sent by the client device; Before receiving the broadcast message from the client device, the method further includes: Modify the DHCP service configuration file, add the system startup firmware corresponding to the information of the ARM microprocessor, and the identification information of the system startup firmware corresponding to the information of the ARM microprocessor; Modify the general.h file and enable some support configuration items to allow the EFI format image to be deployed and installed on the system.
4. The method according to claim 3, characterized in that The broadcast message is also used to request an IP address; The response message also includes an IP address configured by the server for the client device; A network connection is established with the client device according to the IP address.
5. A system installation method, characterized in that: include: The client device sends a broadcast message to the server, wherein the broadcast message includes information of the ARM microprocessor of the client device, or information of the X86 microprocessor of the client device; The client device receives a response message from the server, wherein the response message includes identification information of a system startup firmware corresponding to information of an ARM microprocessor of the client device; The client device sends a system installation request message to the server, where the system installation request message is used to request to obtain the system startup firmware, and the system installation request message includes the identification information; The client device receives the system startup firmware corresponding to the identification information from the server; The client device sends a system installation program file acquisition request message to the server, where the system installation program file acquisition request message is used to request to acquire a system installation program file; The client device receives a system installation program file from the server; The client device starts the kernel according to the system installation program file, and sends a configuration file acquisition request message to the server, wherein the configuration file acquisition request message is used to request to acquire a configuration file; the configuration file includes common system installation necessary configurations such as time zone and system partition, etc., and also reports the installation task progress log to the deployment platform to form a task closed loop; The client device receives a configuration file from the server; The client device installs the system installation program file according to the configuration file; The client device reports the installation task progress log to the deployment platform; The server receives the broadcast message from the client device; The server sends the response message to the client device; The server receives the system installation request message sent by the client device; The server sends the system startup firmware corresponding to the identification information to the client device; The server receives a system installation program file acquisition request message from the client device, wherein the system installation program file acquisition request message is used to request to acquire a system installation program file; The server sends a system installation program file to the client device; The WEB SERVER of the server receives a configuration file acquisition request message from the client device, wherein the configuration file acquisition request message is used to request to acquire a configuration file, and the configuration file acquisition request message is sent by the client device after starting the kernel according to the system installation program file; the WEB SERVER of the server sends the configuration file to the client device; The configuration file is used by the client device to install the system installation program file according to the configuration file; The server receives the installation task progress log sent by the client device; Before the client device sends a broadcast message to the server, the method further includes: The server modifies the DHCP service configuration file, adds the system startup firmware corresponding to the information of the ARM microprocessor, and the identification information of the system startup firmware corresponding to the information of the ARM microprocessor; The server modifies the general.h file and opens some support item configurations to achieve the purpose of allowing the efi format image to be deployed and installed on the system.
6. A system installation device, characterized in that: The device is suitable for a client device having an ARM microprocessor, comprising: A sending unit, configured to send a broadcast message, wherein the broadcast message includes information of an ARM microprocessor of the client device, or information of an X86 microprocessor of the client device; A receiving unit, configured to receive a response message from the server, wherein the response message includes identification information of a system startup firmware corresponding to information of an ARM microprocessor of the client device; The sending unit is further used to send a system installation request message to the server, wherein the system installation request message is used to request to obtain the system startup firmware, and the system installation request message includes the identification information; A receiving unit, configured to receive a system startup firmware corresponding to the identification information from the server; The sending unit is further used to send a system installation program file acquisition request message to the server, wherein the system installation program file acquisition request message is used to request to acquire a system installation program file; The receiving unit is further used to receive a system installation program file of the server; The sending unit is further used to start the kernel according to the system installation program file, and send a configuration file acquisition request message to the WEBSERVER of the server, wherein the configuration file acquisition request message is used to request to obtain the configuration file; the configuration file includes common system installation necessary configurations such as time zone and system partition, etc., and also reports the installation task progress log to the deployment platform to form a task closed loop; The receiving unit is further used to receive a configuration file of the WEB SERVER from the server; A processing unit, configured to install the system installation program file according to the configuration file; The sending unit is further used to report the installation task progress log to the deployment platform; A processing unit, used to modify the DHCP service configuration file, add the system startup firmware corresponding to the information of the ARM microprocessor, and the identification information of the system startup firmware corresponding to the information of the ARM microprocessor; The processing unit is used to modify the general.h file and enable some supported configuration items to allow the system to be deployed and installed using an image in the efi format.
7. The device according to claim 6, characterized in that The broadcast message is also used to request an IP address; The response message also includes an IP address configured by the server for the client device; The processing unit is further used to establish a network connection with the server according to the IP address.
8. A system installation device, characterized in that: The device is applicable to a server and includes: A receiving unit, configured to receive a broadcast message from a client device, wherein the broadcast message includes information of an ARM microprocessor of the client device, or information of an X86 microprocessor of the client device; A sending unit, configured to send a response message, wherein the response message includes identification information of a system startup firmware corresponding to information of an ARM microprocessor of the client device; A receiving unit, configured to receive a system installation request message from a client device, wherein the system installation request message is used to request to obtain a system startup firmware, and the system installation request message includes the identification information; A sending unit, configured to send a system startup firmware corresponding to the identification information to the client device; the system startup firmware is used by the client device to obtain and install a system installation program file from the server according to the system startup firmware; The receiving unit is further used to receive a system installation program file acquisition request message from the client device, wherein the system installation program file acquisition request message is used to request to acquire a system installation program file; The sending unit is further used to send a system installation program file to the client device; The receiving unit is further used to receive a configuration file acquisition request message from the client device, wherein the configuration file acquisition request message is used to request to acquire a configuration file, and the configuration file acquisition request message is sent by the client device after starting a kernel according to the system installation program file; The receiving unit is further used to send a configuration file to the client device; the configuration file is used by the client device to install the system installation program file according to the configuration file; The receiving unit is further used to receive the installation task progress log sent by the client device; A processing unit, used to modify the DHCP service configuration file, add the system startup firmware corresponding to the information of the ARM microprocessor, and the identification information of the system startup firmware corresponding to the information of the ARM microprocessor; The processing unit is used to modify the general.h file and enable some supported configuration items to allow the system to be deployed and installed using an image in the efi format.
9. The device according to claim 8, characterized in that The receiving unit is further used to receive a broadcast message from the client device, wherein the broadcast message is used to request an IP address; the sending unit is further used to send a response message to the client device, wherein the response message includes the IP address; A processing unit is used to establish a network connection with the client device according to the IP address.
10. A system installation device, characterized in that: include: A sending unit, configured to send a broadcast message, wherein the broadcast message includes information of an ARM microprocessor of a client device, or information of an X86 microprocessor of the client device; A receiving unit, configured to receive a response message from a server, wherein the response message includes identification information of a system startup firmware corresponding to information of an ARM microprocessor of the client device; A sending unit, configured to send a system installation request message to a server, wherein the system installation request message is used to request to obtain a system startup firmware, and the system installation request message includes the identification information; A receiving unit, configured to receive a system startup firmware corresponding to the identification information from the server; The sending unit is further used to send a system installation program file acquisition request message to the server, wherein the system installation program file acquisition request message is used to request to acquire a system installation program file; The receiving unit is further used to receive a system installation program file of the server; The sending unit is further used to start the kernel according to the system installation program file, and send a configuration file acquisition request message to the WEBSERVER of the server, wherein the configuration file acquisition request message is used to request to obtain the configuration file; the configuration file includes common system installation necessary configurations such as time zone and system partition, etc., and also reports the installation task progress log to the deployment platform to form a task closed loop; The receiving unit is further used to receive a configuration file of the WEB SERVER from the server; A processing unit, configured to install the system installation program file according to the configuration file; The sending unit is further used to report the installation task progress log to the deployment platform; The receiving unit is further configured to receive the broadcast message of the client device; The sending unit is further used to send the response message to the client device; The receiving unit is further configured to receive the system installation request message of the client device; The sending unit is further used to send the system startup firmware to the client device; The receiving unit is further used to receive a system installation program file acquisition request message from the client device, wherein the system installation program file acquisition request message is used to request to acquire a system installation program file; The sending unit is further used to send a system installation program file to the client device; The receiving unit is further used to receive a configuration file acquisition request message from the client device, wherein the configuration file acquisition request message is used to request to acquire a configuration file, and the configuration file acquisition request message is sent by the client device after starting a kernel according to the system installation program file; The receiving unit is further used to send a configuration file to the client device; the configuration file is used by the client device to install the system installation program file according to the configuration file; The receiving unit is further used to receive the installation task progress log sent by the client device; A processing unit, used to modify the DHCP service configuration file, add the system startup firmware corresponding to the information of the ARM microprocessor, and the identification information of the system startup firmware corresponding to the information of the ARM microprocessor; The processing unit is used to modify the general.h file and enable some supported configuration items to allow the system to be deployed and installed using an image in the efi format.
11. A computing device, characterized in that: The method comprises at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit executes the method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: It stores a computer program executable by a computing device, and when the program is run on the computing device, the computing device executes the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Advanced Risc machine (ARM) server and method of automatic installation system thereof
CN103200271A
