Dual-system automatic installation method and device

Through the combination of dual-system automatic installation method and PXE process, CGI scripts are used to achieve communication between target computers and servers, and automatically install and switch operating systems, solving the problem of compatibility gap between domestic operating systems and Windows software, improving installation efficiency and reducing installation Human errors were eliminated and efficient dual-system deployment was achieved.

CN119201148APending Publication Date: 2024-12-27ZIGUANG COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411314904.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

There is a gap in compatibility between domestic operating systems and Windows software, which leads to users encountering the problem that the software cannot run when using domestic operating systems.

Method used

Using the dual-system automatic installation method, the first operating system is automatically installed through the pre-start execution environment, and a reserved partition is created for the second operating system, the PXE boot file is modified to support dual-system installation, and the communication between the target computer and the server is achieved using CGI scripts. , automatically switch the boot system, and there is no need for manual participation in the entire installation process.

Benefits of technology

It improves the installation efficiency of dual systems, reduces human errors and time costs, realizes flexible and convenient installation in a factory batch deployment environment, and saves maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201148A_ABST
    Figure CN119201148A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of system installation, in particular to a dual-system automatic installation method and device.The method is applied to a target computer, the target computer is connected with a server, and the method comprises the steps that a first operating system is started and installed through a network, and a partition is created for a second operating system; in the auditing mode, the equipment information is sent to a server, so that the server modifies the PXE boot file; starting from the network for the second time based on the modified PXE boot file, and entering a pre-installation environment of a second operating system; installing a second operating system in the reserved partition, and configuring a dual-system boot file; sending the equipment information to the server again, and restarting to enter a configuration environment of a second operating system; and starting from the dual-system boot file, and displaying a dual-operation system selection menu. According to the method, the server can automatically switch the currently guided system, the whole installation process does not need manual participation, and the dual-system installation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of system installation, and in particular to a dual-system automatic installation method and device. Background Art

[0002] With the improvement of information security awareness, the development of domestic computer hardware and software has received unprecedented attention. In this context, the domestic CPU platform is becoming more and more mature. At the same time, the operating system based on the domestic CPU platform has also received more and more attention and application.

[0003] However, although domestic operating systems have improved in functions and performance, there is still a gap in compatibility with widely used Windows software. This may cause users to encounter problems with some software not being able to run when using domestic operating systems. Summary of the invention

[0004] In view of this, the present invention provides a dual-system automatic installation method and device to solve the problem that there is still a gap in compatibility between domestic operating systems and Windows software, which may cause users to encounter problems that some software cannot run when using domestic operating systems.

[0005] In a first aspect, the present invention provides a dual-system automatic installation method, the method is applied to a target computer, the target computer is connected to a server, and the method comprises:

[0006] Automatically install the first operating system through the pre-boot execution environment and create a reserved partition for the second operating system;

[0007] In the audit mode, the device information of the target computer is sent to the server, so that the server modifies the PXE boot file based on the device information;

[0008] Obtaining the modified PXE boot file, and booting from the pre-boot execution environment for a second time based on the modified PXE boot file, and entering the pre-installation environment of the second operating system;

[0009] In the pre-installation environment of the second operating system, installing the second operating system in the reserved partition and configuring a dual-system boot file;

[0010] Sending the device information of the target computer to the server again, and restarting the computer to enter the configuration environment of the second operating system;

[0011] After the second operating system is configured, it is started from the dual-system boot file and a dual-operating system selection menu is displayed.

[0012] In an optional implementation, the first operating system is a domestic operating system, and the second operating system is a Windows operating system.

[0013] In an optional implementation, automatically installing the first operating system through the pre-boot execution environment and creating a reserved partition for the second operating system includes:

[0014] Start up through the pre-startup execution environment and install the domestic operating system;

[0015] The domestic operating system is automatically deployed using a Kickstart file, and a reserved partition is created for the Windows operating system.

[0016] In an optional implementation, in the audit mode, sending the device information of the target computer to the server so that the server modifies the PXE boot file based on the device information includes:

[0017] After the domestic operating system is installed, entering the audit mode;

[0018] In the audit mode, a CGI script is run to send the device information of the target computer to the server, so that the server modifies the PXE boot file based on the device information and boots the target computer into the Windows preinstallation environment for startup; the device information includes MAC address, BIOS-DMI information and the current operating system name.

[0019] In an optional implementation, the obtaining the modified PXE boot file, and booting from the pre-boot execution environment for a second time based on the modified PXE boot file, and entering the pre-installation environment of the second operating system includes:

[0020] Based on the command of the CGI script, determining to start from the pre-start execution environment for the second time;

[0021] During the second boot process, the modified PXE boot file is obtained, and based on the modified PXE boot file, the system is booted from the pre-boot execution environment to the Windows pre-installation environment.

[0022] In an optional implementation, in the pre-installation environment of the second operating system, installing the second operating system in the reserved partition and configuring a dual-system boot file includes:

[0023] In the Windows preinstallation environment, the Windows operating system is installed in the reserved partition, and the dual-system boot file is copied to the EFI boot partition to perform dual-system booting.

[0024] In an optional implementation manner, the sending the device information of the target computer to the server again and restarting to enter the configuration environment of the second operating system includes:

[0025] In the Windows preinstallation environment, running the CGI script, and sending the device information of the target computer to the server again, so that the server restores the modified PXE boot file to a default state;

[0026] Restart to enter the configuration environment of the Windows operating system and perform configuration and installation of the Windows operating system.

[0027] In a second aspect, the present invention provides a dual-system automatic installation device, the device is applied to a target computer, the target computer is connected to a server, and the device comprises:

[0028] A first operating system installation module, used to automatically install the first operating system through the pre-start execution environment and create a reserved partition for the second operating system;

[0029] A device information sending module, used to send the device information of the target computer to the server in the audit mode, so that the server modifies the PXE boot file based on the device information;

[0030] A pre-installation environment startup module, used to obtain the modified PXE boot file, and start from the pre-boot execution environment for a second time based on the modified PXE boot file, and enter the pre-installation environment of the second operating system;

[0031] A dual-system boot file module, used to install the second operating system in the reserved partition in a pre-installation environment of the second operating system, and configure a dual-system boot file;

[0032] A second operating system configuration module, used to send the device information of the target computer to the server again, and restart to enter the configuration environment of the second operating system;

[0033] The dual-system selection module is used to start from the dual-system boot file after the second operating system is configured and display a dual-operating system selection menu.

[0034] In a third aspect, the present invention provides a dual-system automatic installation system, the system comprising a target computer and a server, the target computer being connected to the server;

[0035] The target computer is used to automatically install the first operating system through the pre-boot execution environment and create a reserved partition for the second operating system; in the audit mode, the device information of the target computer is sent to the server;

[0036] The server is used to modify the PXE boot file based on the device information;

[0037] The target computer is further used to obtain the modified PXE boot file, and boot from the pre-boot execution environment for the second time based on the modified PXE boot file, and enter the pre-installation environment of the second operating system; in the pre-installation environment of the second operating system, install the second operating system in the reserved partition, and configure the dual-system boot file; send the device information of the target computer to the server again, and restart to enter the configuration environment of the second operating system;

[0038] The server is further configured to restore the modified PXE boot file to a default state based on the device information sent again by the target computer;

[0039] The target computer is also used to start from the dual-system boot file and display a dual-operating system selection menu after the second operating system is configured.

[0040] In a fourth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to thereby execute a dual-system automatic installation method of the first aspect or any corresponding embodiment thereof.

[0041] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute a dual-system automatic installation method according to the first aspect or any corresponding embodiment thereof.

[0042] In a fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute a dual-system automatic installation method according to the first aspect or any corresponding embodiment thereof.

[0043] The technical solution provided by the present invention may include the following beneficial effects:

[0044] The present invention combines the dual-system installation scenario with the PXE process, so that the dual system can be carried out in a batch deployment environment such as a factory, and incorporates the CGI dynamic script into the dual-system installation process, making the entire dual-system installation process more flexible and convenient. The communication between the target computer and the server is realized through the CGI script, so that the server can automatically switch the currently booted system to a domestic operating system or a Windows operating system. The entire installation process does not require manual participation, thereby improving the efficiency of dual-system installation and reducing the possibility of human errors and manual time costs in factory batch installation. In addition, the server of the present invention can automatically analyze the system that the client machine needs to deploy according to the characteristic information uploaded by the target computer of the client, and no subsequent modification is required, saving maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 is a structural schematic diagram of a dual-system automatic installation system according to an embodiment of the present invention;

[0047] Figure 2 is a flow chart of a dual-system automatic installation method according to an embodiment of the present invention;

[0048] Figure 3 is a flow chart of another dual-system automatic installation method according to an embodiment of the present invention;

[0049] Figure 4 is a flow chart of another dual-system automatic installation method according to an embodiment of the present invention;

[0050] Figure 5 is a structural block diagram of a dual-system automatic installation device according to an embodiment of the present invention;

[0051] Figure 6 is a structural block diagram of another dual-system automatic installation device according to an embodiment of the present invention;

[0052] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0054] In this embodiment, a dual-system automatic installation system is provided. Figure 1 is a schematic diagram of the structure of a dual-system automatic installation system according to an embodiment of the present invention. Figure 1 As shown, the system includes: a target computer and a server, the target computer is connected to the server;

[0055] The target computer is used to automatically install the first operating system through the pre-start execution environment and create a reserved partition for the second operating system; in the audit mode, the device information of the target computer is sent to the server;

[0056] The server is used to modify the PXE boot file based on the device information; the server may be a PXE server.

[0057] The target computer is further used to obtain the modified PXE boot file, and boot from the pre-boot execution environment for a second time based on the modified PXE boot file, and enter the pre-installation environment of the second operating system; in the pre-installation environment of the second operating system, install the second operating system in the reserved partition, and configure the dual-system boot file; send the device information of the target computer to the server again, and restart to enter the configuration environment of the second operating system;

[0058] The server is further used to restore the modified PXE boot file to a default state based on the device information sent again by the target computer;

[0059] The target computer is also used to start from the dual-system boot file after the second operating system is configured, and display a dual-operating system selection menu.

[0060] Furthermore, the first operating system is a domestic operating system, and the second operating system is a Windows operating system.

[0061] Furthermore, the target computer of this embodiment is used to implement the preboot execution environment (Preboot Execution Environment, PXE) and the installation of the first operating system, as well as the installation and configuration of the second operating system. For the installation of the preboot execution environment and the first operating system, the target computer is first started through PXE to enter the preboot execution environment. In this environment, the target computer automatically installs the first operating system, and creates a reserved partition for the second operating system according to the preset configuration to ensure that the second operating system has enough disk space for installation. After the installation of the first operating system, the target computer will enter the audit mode (Audit Mode), which allows the administrator to perform further configuration. At this stage, the target computer will send its own device information to the server so that the server can adjust the installation parameters accordingly.

[0062] For the installation and configuration of the second operating system, the target computer obtains the modified PXE boot file from the server and boots again through PXE based on this file. After this boot, the target computer will enter the pre-installation environment of the second operating system and start installing the second operating system into the reserved partition created previously. After the installation is complete, the target computer configures the dual-system boot file to ensure that the operating system selection menu can be displayed at startup. After installing and configuring the dual-system boot file, the target computer sends the device information to the server again and restarts to enter the configuration environment of the second operating system.

[0063] After the second operating system is configured, the target computer starts up through the dual system boot file and displays a dual operating system selection menu during startup. The user can choose which operating system to enter through this menu.

[0064] Furthermore, the server of this embodiment acts as a PXE server and is responsible for providing a PXE boot file. The PXE boot file allows the target computer to boot through the network and enter a predefined boot environment. The server also modifies the PXE boot file according to the device information sent by the target computer to adapt to the installation requirements of the second operating system. After the target computer completes the installation and configuration of the second operating system and sends a device information confirmation, the server restores the modified PXE boot file to the default state to ensure that the subsequent network boot of other target computers will not be affected.

[0065] In summary, the present invention combines the dual-system installation scenario with the PXE process, so that the dual system can be carried out in a batch deployment environment such as a factory, and incorporates the CGI dynamic script into the dual-system installation process, making the entire dual-system installation process more flexible and convenient. The communication between the target computer and the server is realized through the CGI script, so that the server can automatically switch the currently booted system to a domestic operating system or a Windows operating system. The entire installation process does not require human participation, which improves the efficiency of dual-system installation and reduces the possibility of human errors and labor time costs in factory batch installation. In addition, the server of the present invention can automatically analyze the system that the client machine needs to deploy according to the characteristic information uploaded by the target computer of the client, and no subsequent modification is required, saving maintenance costs.

[0066] According to an embodiment of the present invention, an embodiment of a dual-system automatic installation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0067] In this embodiment, a dual-system automatic installation method is provided, which is applied to Figure 1 In the target computer in, the target computer is connected to the server, Figure 2 FIG. 1 is a flow chart of a dual-system automatic installation method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0068] Step S201: automatically install a first operating system through a pre-boot execution environment, and create a reserved partition for a second operating system.

[0069] In some optional implementations, the first operating system is a domestic operating system, and the second operating system is a Windows operating system.

[0070] In some optional implementations, step S201 includes:

[0071] Start through the pre-boot execution environment and install the domestic operating system;

[0072] Use the Kickstart file to automatically deploy the domestic operating system and create a reserved partition for the Windows operating system.

[0073] For further information, see Figure 3A flowchart of another dual-system automatic installation method is shown. In this embodiment, the target computer uses PXE to install the domestic operating system, and the domestic operating system is automatically deployed through the KS file (i.e., Kickstart file), and a usable reserved partition is created for the Windows operating system.

[0074] The target computer of this embodiment chooses to start from the network (rather than the local hard disk) when starting up. When the target computer is set to start from the network, it will connect to the configured PXE server and load the pre-boot execution environment (PXE environment) from the server, that is, the target computer loads the boot image from the server via PXE to start the installation process. The Kickstart file is an automated script used to automate the installation process of a domestic operating system. The Kickstart file contains all the configuration information required during the installation of the operating system, such as software package selection, network settings, user accounts, etc. The use of the Kickstart file can ensure the consistency of the installation process and reduce human intervention. While installing the domestic operating system, this embodiment creates a reserved partition on the hard disk according to the preset configuration for future installation of the Windows operating system.

[0075] Step S202: in the audit mode, sending the device information of the target computer to the server, so that the server modifies the PXE boot file based on the device information.

[0076] In some optional implementations, step S202 includes:

[0077] After the domestic operating system is installed, enter the audit mode;

[0078] In the audit mode, the CGI script is run to send the device information of the target computer to the server, so that the server modifies the PXE boot file based on the device information and boots the target computer into the Windows preinstallation environment for startup; the device information includes the MAC address, BIOS-DMI information and the current operating system name.

[0079] Further, such as Figure 3 As shown, in this embodiment, after the domestic operating system is installed, it enters the audit mode and runs the CGI script to transmit to the server: MAC address, BIOS-DMI information, current operating system name and other information. Running the command in the audit mode of the domestic operating system allows the next boot to continue to start from PXE, and the target computer restarts. The server automatically parses the information transmitted by the target computer based on the CGI script, and modifies the PXE boot file grub.cfg to start the WinPE environment (i.e., the above-mentioned Windows pre-installation environment).

[0080] That is to say, after the first operating system is installed, the audit mode is entered. The audit mode is a special system mode that allows the administrator to further configure and optimize the system without completely restarting to the normal mode, and is used for system configuration and diagnosis. The CGI (Common Gateway Interface) script is a script for a Web server that is used to collect device information of the target computer, such as MAC address, BIOS-DMI (Desktop Management Interface) information, and the current operating system name, and send this information to the server. Through the CGI script, the device information of the target computer is sent to the server. The server needs this device information to customize the PXE boot file. After the server receives the device information, it will automatically parse this information and modify the PXE boot file (such as grub.cfg file) accordingly, thereby ensuring that the target computer can enter the correct environment, i.e., the Windows pre-installation environment (WinPE environment) when it is started next time. The modified PXE boot file is configured to load the WinPE environment when the target computer is started next time, allowing the administrator to further configure or troubleshoot the target computer without having to fully install the operating system. In summary, in the audit mode, the present embodiment runs the CGI script command to ensure that the target computer continues to boot from PXE when it is started next time. In this way, when the target computer restarts, the modified PXE boot file is loaded and the WinPE environment is entered.

[0081] Step S203, obtaining the modified PXE boot file, and booting from the pre-boot execution environment for a second time based on the modified PXE boot file, and entering the pre-installation environment of the second operating system.

[0082] In some optional implementations, step S203 includes:

[0083] Based on the command of the CGI script, determining to start from the pre-start execution environment for the second time;

[0084] During the second boot process, the modified PXE boot file is obtained, and based on the modified PXE boot file, the system is booted from the pre-boot execution environment to the Windows pre-installation environment.

[0085] Further, such as Figure 3As shown, in this embodiment, the target computer boots from PXE and obtains the boot file grub.cfg to boot into the WinPE environment. That is, the target computer executes the command or setting triggered by the CGI script so that the target computer continues to use the PXE boot mode the next time it starts. When the target computer restarts and attempts to boot from PXE, the target computer requests the boot file from the PXE server on the network. Since the server has modified the PXE boot file (such as the grub.cfg file) according to the device information of the target computer in the previous step, the target computer will obtain this modified version. The modified PXE boot file (such as the grub.cfg file) is configured to load the files and settings required for the WinPE environment. Therefore, when the PXE boot file is loaded and executed, it will boot the target computer into the WinPE environment. The WinPE environment is a lightweight Windows operating system environment, which is generally used for tasks such as system deployment, recovery, and diagnosis.

[0086] Step S204: in the pre-installation environment of the second operating system, the second operating system is installed in the reserved partition, and a dual-system boot file is configured.

[0087] In some optional implementations, step S204 includes:

[0088] In the Windows preinstallation environment, the Windows operating system is installed in the reserved partition, and the dual-system boot file is copied to the EFI boot partition to perform dual-system booting.

[0089] Further, such as Figure 3 As shown, in this embodiment, the target computer automatically installs the Windows operating system to the pre-reserved partition in the WinPE environment, and copies the dual-system boot file UniBootX64.efi file and the grub file to the EFI boot partition. That is, in the WinPE environment, this embodiment recognizes the reserved partition and automatically starts the installation process of the Windows operating system. In order to enable the target computer to start two different operating systems from the same hard disk, this embodiment needs to configure the dual-system boot, such as copying the dual-system boot file (EFI boot file) to the EFI system partition (ESP).

[0090] In this embodiment, the dual-system boot file includes a UniBootX64.efi file (the UniBootX64.efi file is an EFI boot loader, used to support more complex boot scenarios) and a grub file (the grub file is a boot loader, and also supports multi-system booting). These files are copied to the EFI system partition so that a menu can be provided at startup to allow the user to select the operating system to be started. The EFI System Partition (ESP) is a dedicated storage space used when the computer starts up, following the EFI specification, and is used to store the boot loader, the boot files of the operating system, and other boot-related files.

[0091] Step S205, sending the device information of the target computer to the server again, and restarting to enter the configuration environment of the second operating system.

[0092] In some optional implementations, step S205 includes:

[0093] In the Windows preinstallation environment, the CGI script is run, and the device information of the target computer is sent to the server again, so that the server restores the modified PXE boot file to a default state;

[0094] Restart to enter the configuration environment of the Windows operating system and configure and install the Windows operating system.

[0095] Further, such as Figure 3 As shown, this embodiment runs a CGI script in a WinPE environment, transmits information such as the MAC address, BIOS-DMI, and the current operating system name to the server, and the target computer restarts and enters the Windows operating environment. After the server obtains the data sent by the CGI script again, it restores the grub.cfg file to the default state, which is convenient for installing the dual system again next time. That is to say, in this embodiment, under the pre-installation environment (WinPE environment) of the Windows operating system, the target computer runs a CGI script, and through the CGI script, the device information of the target computer (such as MAC address, BIOS-DMI information, and the current operating system name) is sent to the server again. After receiving the device information, the server restores the previously modified PXE boot file (such as the grub.cfg file) to the default state. This step is to prepare for the next dual system installation to ensure that the boot file does not retain the specific configuration of the last installation. The target computer restarts after sending the device information. After restarting, the target computer enters the configuration environment of the Windows operating system and starts the configuration installation of the Windows operating system.

[0096] Step S206, after the second operating system is configured, it is started from the dual-system boot file and a dual-operating system selection menu is displayed.

[0097] Further, such as Figure 3 As shown, in the present embodiment, after the Windows operating system is configured, the target computer starts from the dual-system boot file UniBootX64.efi file, and displays the dual-system selection menu. That is to say, after the configuration step of the Windows operating system is completed, the target computer will start from the dual-system boot file in the EFI system partition at the next startup. Exemplary, if the dual-system boot file is a UniBootX64.efi file (the UniBootX64.efi file is an EFI application for providing an operating system selection menu at startup), when the UniBootX64.efi file is loaded and executed, all operating systems installed on the target computer are checked, and a boot menu is generated, listing all available operating system options. In this menu, the user can see the installed Windows operating system and the domestic operating system. After the boot menu appears, the user can use the arrow keys on the keyboard to select the operating system to be started, and press the Enter key to start it. After the selection process is completed, the UniBootX64.efi file starts the corresponding operating system.

[0098] In summary, the present invention combines the dual-system installation scenario with the PXE process, so that the dual system can be carried out in a batch deployment environment such as a factory, and incorporates the CGI dynamic script into the dual-system installation process, making the entire dual-system installation process more flexible and convenient. The communication between the target computer and the server is realized through the CGI script, so that the server can automatically switch the currently booted system to a domestic operating system or a Windows operating system. The entire installation process does not require human participation, which improves the efficiency of dual-system installation and reduces the possibility of human errors and labor time costs in factory batch installation. In addition, the server of the present invention can automatically analyze the system that the client machine needs to deploy according to the characteristic information uploaded by the target computer of the client, and no subsequent modification is required, saving maintenance costs.

[0099] In this embodiment, a dual-system automatic installation method is provided, which is applied to Figure 1 In the server in, the target computer is connected to the server, Figure 4 FIG. 1 is a flow chart of another dual-system automatic installation method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0100] Step S401, based on the device information sent by the target computer, modify the PXE boot file, and send the modified PXE boot file to the target computer, so that the target computer is started from the pre-boot execution environment for the second time based on the modified PXE boot file, and enters the pre-installation environment of the second operating system. In the pre-installation environment of the second operating system, the second operating system is installed in the reserved partition, and the dual-system boot file is configured, the device information of the target computer is sent to the server again, and the target computer is restarted to enter the configuration environment of the second operating system.

[0101] Furthermore, the device information is sent to the server in the audit mode after the target computer automatically installs the first operating system through the pre-boot execution environment and creates a reserved partition for the second operating system.

[0102] Step S402: based on the device information sent again by the target computer, restore the modified PXE boot file to a default state.

[0103] In summary, the present invention combines the dual-system installation scenario with the PXE process, so that the dual system can be carried out in a batch deployment environment such as a factory, and incorporates the CGI dynamic script into the dual-system installation process, making the entire dual-system installation process more flexible and convenient. The communication between the target computer and the server is realized through the CGI script, so that the server can automatically switch the currently booted system to a domestic operating system or a Windows operating system. The entire installation process does not require human participation, which improves the efficiency of dual-system installation and reduces the possibility of human errors and labor time costs in factory batch installation. In addition, the server of the present invention can automatically analyze the system that the client machine needs to deploy according to the characteristic information uploaded by the target computer of the client, and no subsequent modification is required, saving maintenance costs.

[0104] In this embodiment, a dual-system automatic installation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0105] This embodiment provides a dual-system automatic installation device, which is applied to Figure 1 The target computer is connected to the server, such as Figure 5 As shown, including:

[0106] A first operating system installation module 501, used to automatically install the first operating system through the pre-boot execution environment and create a reserved partition for the second operating system;

[0107] The device information sending module 502 is used to send the device information of the target computer to the server in the audit mode, so that the server modifies the PXE boot file based on the device information;

[0108] The pre-installation environment startup module 503 is used to obtain the modified PXE boot file, and start from the pre-boot execution environment for the second time based on the modified PXE boot file, and enter the pre-installation environment of the second operating system;

[0109] A dual-system boot file module 504 is used to install the second operating system in the reserved partition in the pre-installation environment of the second operating system and configure a dual-system boot file;

[0110] The second operating system configuration module 505 is used to send the device information of the target computer to the server again, and restart to enter the configuration environment of the second operating system;

[0111] The dual-system selection module 506 is used to start the second operating system from the dual-system boot file after the second operating system is configured, and display a dual-operating system selection menu.

[0112] In some optional implementations, the first operating system is a domestic operating system, and the second operating system is a Windows operating system.

[0113] In some optional implementations, the first operating system installation module 501 is further used to:

[0114] Start through the pre-boot execution environment and install the domestic operating system;

[0115] Use the Kickstart file to automatically deploy the domestic operating system and create a reserved partition for the Windows operating system.

[0116] In some optional implementations, the device information sending module 502 is further used to:

[0117] After the domestic operating system is installed, enter the audit mode;

[0118] In the audit mode, the CGI script is run to send the device information of the target computer to the server, so that the server modifies the PXE boot file based on the device information and boots the target computer into the Windows preinstallation environment for startup; the device information includes the MAC address, BIOS-DMI information and the current operating system name.

[0119] In some optional implementations, the pre-installation environment startup module 503 is further used to:

[0120] Based on the command of the CGI script, determining to start from the pre-start execution environment for the second time;

[0121] During the second boot process, the modified PXE boot file is obtained, and based on the modified PXE boot file, the system is booted from the pre-boot execution environment to the Windows pre-installation environment.

[0122] In some optional implementations, the dual-system boot file module 504 is further used to:

[0123] In the Windows preinstallation environment, the Windows operating system is installed in the reserved partition, and the dual-system boot file is copied to the EFI boot partition to perform dual-system booting.

[0124] In some optional implementations, the second operating system configuration module 505 is further used to:

[0125] In the Windows preinstallation environment, the CGI script is run, and the device information of the target computer is sent to the server again, so that the server restores the modified PXE boot file to a default state;

[0126] Restart to enter the configuration environment of the Windows operating system and configure and install the Windows operating system.

[0127] This embodiment provides another dual-system automatic installation device, which is applied to Figure 1 The target computer is connected to the server, such as Figure 6 As shown, including:

[0128] The PXE boot file modification module 601 is used to modify the PXE boot file based on the device information sent by the target computer, and send the modified PXE boot file to the target computer, so that the target computer is started from the pre-boot execution environment for the second time based on the modified PXE boot file, and enters the pre-installation environment of the second operating system. In the pre-installation environment of the second operating system, the second operating system is installed in the reserved partition, and the dual-system boot file is configured, the device information of the target computer is sent to the server again, and the target computer is restarted to enter the configuration environment of the second operating system.

[0129] The default state restoring module 602 is used to restore the modified PXE boot file to the default state based on the device information sent again by the target computer.

[0130] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0131] In summary, the present invention combines the dual-system installation scenario with the PXE process, so that the dual system can be carried out in a batch deployment environment such as a factory, and incorporates the CGI dynamic script into the dual-system installation process, making the entire dual-system installation process more flexible and convenient. The communication between the target computer and the server is realized through the CGI script, so that the server can automatically switch the currently booted system to a domestic operating system or a Windows operating system. The entire installation process does not require human participation, which improves the efficiency of dual-system installation and reduces the possibility of human errors and labor time costs in factory batch installation. In addition, the server of the present invention can automatically analyze the system that the client machine needs to deploy according to the characteristic information uploaded by the target computer of the client, and no subsequent modification is required, saving maintenance costs.

[0132] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 710, memory 720, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 710 is taken as an example.

[0133] The processor 710 may be a central processing unit, a network processor or a combination thereof. The processor 710 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.

[0134] The memory 720 stores instructions executable by at least one processor 710, so that the at least one processor 710 executes the method shown in the above embodiment.

[0135] The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 720 may optionally include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0136] The memory 720 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 720 may also include a combination of the above types of memory.

[0137] The computer device also includes a communication interface 730, which is used for the computer device to communicate with other devices or a communication network.

[0138] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0139] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0140] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the defined scope.

Claims

1. A dual-system automatic installation method, characterized in that: The method is applied in a target computer, the target computer is connected to a server, and the method comprises: Automatically install the first operating system through the pre-boot execution environment and create a reserved partition for the second operating system; In the audit mode, the device information of the target computer is sent to the server, so that the server modifies the PXE boot file based on the device information; Obtaining the modified PXE boot file, and booting from the pre-boot execution environment for a second time based on the modified PXE boot file, and entering the pre-installation environment of the second operating system; In the pre-installation environment of the second operating system, installing the second operating system in the reserved partition and configuring a dual-system boot file; Sending the device information of the target computer to the server again, and restarting the computer to enter the configuration environment of the second operating system; After the second operating system is configured, it is started from the dual-system boot file and a dual-operating system selection menu is displayed.

2. The method according to claim 1, characterized in that The first operating system is a domestic operating system, and the second operating system is a Windows operating system.

3. The method according to claim 2, characterized in that The method of automatically installing the first operating system through the pre-boot execution environment and creating a reserved partition for the second operating system includes: Start up through the pre-startup execution environment and install the domestic operating system; The domestic operating system is automatically deployed using a Kickstart file, and a reserved partition is created for the Windows operating system.

4. The method according to claim 2, characterized in that: The step of sending the device information of the target computer to the server in the audit mode so that the server modifies the PXE boot file based on the device information includes: After the domestic operating system is installed, entering the audit mode; In the audit mode, a CGI script is run to send the device information of the target computer to the server, so that the server modifies the PXE boot file based on the device information and boots the target computer into the Windows preinstallation environment for startup; the device information includes MAC address, BIOS-DMI information and the current operating system name.

5. The method according to claim 4, characterized in that The step of obtaining the modified PXE boot file, and booting from the pre-boot execution environment for the second time based on the modified PXE boot file, and entering the pre-installation environment of the second operating system includes: Based on the command of the CGI script, determining to start from the pre-start execution environment for the second time; During the second boot process, the modified PXE boot file is obtained, and based on the modified PXE boot file, the system is booted from the pre-boot execution environment to the Windows pre-installation environment.

6. The method according to claim 5, characterized in that The step of installing the second operating system in the reserved partition in the pre-installation environment of the second operating system and configuring a dual-system boot file includes: In the Windows preinstallation environment, the Windows operating system is installed in the reserved partition, and the dual-system boot file is copied to the EFI boot partition to perform dual-system booting.

7. The method according to claim 6, characterized in that The sending the device information of the target computer to the server again and restarting the computer into the configuration environment of the second operating system includes: In the Windows preinstallation environment, running the CGI script, and sending the device information of the target computer to the server again, so that the server restores the modified PXE boot file to a default state; Restart to enter the configuration environment of the Windows operating system and perform configuration and installation of the Windows operating system.

8. A dual-system automatic installation device, characterized in that: The device is applied to a target computer, the target computer is connected to a server, and the device comprises: A first operating system installation module, used to automatically install the first operating system through the pre-start execution environment and create a reserved partition for the second operating system; A device information sending module, used to send the device information of the target computer to the server in the audit mode, so that the server modifies the PXE boot file based on the device information; A pre-installation environment startup module, used to obtain the modified PXE boot file, and start from the pre-boot execution environment for a second time based on the modified PXE boot file, and enter the pre-installation environment of the second operating system; A dual-system boot file module, used to install the second operating system in the reserved partition in a pre-installation environment of the second operating system, and configure a dual-system boot file; A second operating system configuration module, used to send the device information of the target computer to the server again, and restart to enter the configuration environment of the second operating system; The dual-system selection module is used to start from the dual-system boot file after the second operating system is configured and display a dual-operating system selection menu.

9. A dual-system automatic installation system, characterized in that: The system comprises a target computer and a server, wherein the target computer is connected to the server; The target computer is used to automatically install the first operating system through the pre-boot execution environment and create a reserved partition for the second operating system; in the audit mode, the device information of the target computer is sent to the server; The server is used to modify the PXE boot file based on the device information; The target computer is further used to obtain the modified PXE boot file, and boot from the pre-boot execution environment for a second time based on the modified PXE boot file, and enter the pre-installation environment of the second operating system; In the pre-installation environment of the second operating system, installing the second operating system in the reserved partition and configuring a dual-system boot file; Sending the device information of the target computer to the server again, and restarting the computer to enter the configuration environment of the second operating system; The server is further configured to restore the modified PXE boot file to a default state based on the device information sent again by the target computer; The target computer is also used to start from the dual-system boot file and display a dual-operating system selection menu after the second operating system is configured.

10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the dual-system automatic installation method according to any one of claims 1 to 7 by executing the computer instructions.