Installation processing method and device of server operating system and related equipment

By automatically creating and running Windows system installation virtual machine scripts on KVM physical machine, the problem of low installation efficiency of Windows operating system in traditional technology is solved, unattended automatic installation is achieved, and operation and maintenance efficiency is improved.

CN119645434AActive Publication Date: 2025-03-18KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411535892.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-03-18
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

In traditional technology, the installation efficiency of the Windows operating system of the server is low, and requires manual monitoring of the installation process, which consumes a lot of human resources.

Method used

Through the automated installation method based on the KVM physical machine, we receive installation tasks, create Windows system installation virtual machine scripts, mount IP configuration image files, and run the initialization scripts after the KVM physical machine is restarted to realize unattended Windows operating system installation.

Benefits of technology

It realizes automatic installation of the server Windows operating system, reduces manual intervention, significantly improves installation efficiency, and can improve operation and maintenance efficiency in applications such as digital medical field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645434A_ABST
    Figure CN119645434A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of digital medical treatment, provides an installation processing method of a server operating system and related equipment, and aims to solve the problem of low installation efficiency of a Windows operating system of a server in the prior art. By determining a KVM physical machine corresponding to the server, receiving an installation task based on the KVM physical machine, and then installing the Windows operating system of the server according to the installation task. The method comprises the following steps: creating a Windows system installation virtual machine script which comprises an IP configuration mirror image file corresponding to IP configuration of a server, then mounting the IP configuration mirror image file to a virtual machine corresponding to the Windows system installation virtual machine script, finally restarting a KVM physical machine, and automatically running the Windows system installation virtual machine script according to the IP configuration mirror image file. The Windows system is installed on the server, automatic one-key installation of the server operating system is achieved, and the installation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital medical technology, and in particular to a method, device, computer equipment and computer-readable storage medium for installing a server operating system. Background Art

[0002] With the development of digital medicine, the online processing of medical services, and the increasing number of medical business applications, the scale of servers required by medical institutions is also increasing. In the process of server operation and maintenance, it is often necessary to install operating systems on the servers. In the case that most online applications of medical services are deployed on Windows servers, in daily operation and maintenance, it is often necessary to install some Windows servers, that is, to install Windows operating systems on the servers. Among them, Windows servers are servers based on Windows operating systems, which are simply referred to as Windows servers.

[0003] In traditional technology, Windows servers are generally installed through Hyper-V software, where Hyper-V is a system management program virtualization technology that can realize desktop virtualization. In this case, it takes nearly two hours to install a server with a Windows operating system, and someone needs to keep an eye on the installation process, which is very labor-intensive.

[0004] Therefore, how to improve the installation efficiency of the Windows operating system of the server becomes a technical problem that needs to be solved. Summary of the invention

[0005] The present application provides a method, apparatus, computer device and computer-readable storage medium for installing a server operating system, which can solve the technical problem of low efficiency of installing a Windows operating system on a server in traditional technologies.

[0006] In a first aspect, the present application provides a method for installing and processing a server operating system, comprising: determining a KVM physical machine corresponding to the server based on a preset operation and maintenance platform corresponding to the server; receiving an installation task corresponding to the installation of a Windows system on the server based on the KVM physical machine; creating a Windows system installation virtual machine script in response to an installation instruction corresponding to the installation task, wherein the Windows system installation virtual machine script includes an IP configuration image file corresponding to a preset target Windows system image and the IP configuration of the server, and the preset target Windows system image includes a preset Windows system base image and a preset initialization Windows system script file; mounting the IP configuration image file to a virtual machine corresponding to the Windows system installation virtual machine script; restarting the KVM physical machine, and when the KVM physical machine is restarted, running the preset initialization Windows system script file according to the IP configuration image file to install the Windows system corresponding to the preset Windows system base image on the server, and obtaining a Windows virtual machine corresponding to the server.

[0007] In the second aspect, the present application provides an installation processing device for a server operating system, comprising: a first determination unit, used to determine the KVM physical machine corresponding to the server based on the preset operation and maintenance platform corresponding to the server; a receiving unit, used to receive the installation task corresponding to the installation of the Windows system on the server based on the KVM physical machine; a creation unit, used to respond to the installation instruction corresponding to the installation task, and create a Windows system installation virtual machine script, wherein the Windows system installation virtual machine script includes an IP configuration image file corresponding to the preset target Windows system image and the IP configuration of the server, and the preset target Windows system image includes a preset Windows system base image and a preset initialization Windows system script file; a mounting unit, used to mount the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script; an installation unit, used to restart the KVM physical machine, and when the KVM physical machine is restarted, run the preset initialization Windows system script file according to the IP configuration image file to install the Windows system corresponding to the preset Windows system base image on the server, and obtain the Windows virtual machine corresponding to the server.

[0008] In a third aspect, the present application provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the installation processing method of the server operating system are implemented.

[0009] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the installation processing method of the server operating system.

[0010] The present application provides a method, apparatus, computer equipment and computer-readable storage medium for installing a server operating system. The method determines the KVM physical machine corresponding to the server, and based on the KVM physical machine, automatically receives the installation task corresponding to the installation of the Windows system on the server, and then automatically creates a Windows system installation virtual machine script according to the installation task, and then automatically mounts the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script, and finally restarts the KVM physical machine, and automatically runs the Windows system installation virtual machine script according to the IP configuration image file to install the Windows system corresponding to the preset target Windows system image on the server, which can realize the automatic installation of the server Windows operating system, and realizes the unattended automatic one-click installation of the server Windows operating system based on KVM, without manual intervention, and greatly improves the installation efficiency of the server operating system. For example, in the process of digital medical implementation, for the server used for the medical business of the medical unit, during the process of server operation and maintenance, when it is necessary to install the Windows operating system on the server, the server operating system installation solution provided in the embodiment of the present application can be used to automatically install the Windows operating system on the server, which can improve the installation efficiency of the server Windows operating system. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 A schematic diagram of a process flow of a method for installing a server operating system provided in an embodiment of the present application;

[0013] Figure 2 A schematic diagram of a process flow of a method for installing a server operating system provided in an embodiment of the present application based on a preset operation and maintenance platform;

[0014] Figure 3 A schematic diagram of a first sub-flow of the server operating system installation processing method provided in an embodiment of the present application;

[0015] Figure 4 A schematic diagram of a second sub-flow of the method for installing a server operating system provided in an embodiment of the present application;

[0016] Figure 5 A schematic block diagram of an installation processing device for a server operating system provided in an embodiment of the present application;

[0017] Figure 6 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0020] The embodiment of the present application provides a method for installing a server operating system, which can be applied to computer devices used as servers, including but not limited to desktop computers and servers, and can be used when installing a Windows operating system on a server in the field of digital medicine, including but not limited to digital medicine.

[0021] In the face of the technical problem of low efficiency of Windows operating system installation on servers in traditional technologies, the inventor proposes an operating system installation processing method of the embodiment of the present application. The core idea of ​​the embodiment of the present application is: based on the KVM physical machine (Kernel-based Virtual Machine, open source system virtualization module, abbreviated as KVM) corresponding to the server, when receiving the installation task of the Windows operating system (referred to as Windows system, the same below), automatically download the Windows operating system image (referred to as Windows system image, the same below), and create a corresponding Windows system installation virtual machine script, and automatically run the Windows system installation virtual machine script to install the Windows operating system based on KVM on the server, and obtain the Windows virtual machine corresponding to the server, which can automatically install the Windows operating system, realize the unattended automatic one-click installation of the Windows operating system based on KVM, realize the fully automatic installation of the Windows virtual machine, without manual intervention, and greatly improve the installation efficiency of the server Windows operating system. For example, in the process of digital medical implementation, for the server used by the medical business of the medical unit, in the process of server operation and maintenance, when the Windows operating system needs to be installed on the server, the server operating system installation scheme provided by the embodiment of the present application can be adopted to automatically install the Windows operating system on the server, which can improve the installation efficiency of the server Windows operating system.

[0022] Some embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0023] See also Figure 1 and Figure 2 , Figure 1 A flowchart of a method for installing a server operating system provided in an embodiment of the present application is provided. Figure 2 The following is a flow chart of the installation processing method of the server operating system provided in the embodiment of the present application based on the preset operation and maintenance platform. Figure 1 and Figure 2 As shown, the method includes but is not limited to the following steps S11-S15:

[0024] S11. Determine a KVM physical machine corresponding to the server based on a preset operation and maintenance platform corresponding to the server.

[0025] Explanatory, see Figure 2 ,like Figure 2As shown, a pre-set operation and maintenance platform, i.e., a preset operation and maintenance platform, refers to a platform for performing operations and maintenance such as configuration and management on a number of servers. The preset operation and maintenance platform includes, but is not limited to, a preset image storage device for storing preset target Windows system images, a preset installation system middle platform, and a preset IP interface middle platform. Among them, the preset image storage device refers to a pre-set storage device for storing several versions of Windows system images, the preset installation system middle platform refers to the "middleware" included in the pre-set operation and maintenance platform for performing pre-operations such as installation settings, and the preset IP interface middle platform refers to the "middleware" corresponding to the pre-set interface for obtaining and generating pre-stored IP configurations corresponding to different servers.

[0026] The server is a physical machine, which is an entity relative to the virtual machine. The physical machine (Physical Machine in English) and the virtual machine (Virtual Machine in English) are two different forms of computing resources. A virtual machine is a computer system simulated by software, which runs in an isolated environment, while a physical machine refers to the physical computer hardware, including CPU, memory, hard disk, etc.

[0027] For large servers or server clusters, virtual machines are generally used to manage servers, and the corresponding server resources are independently managed in units of virtual machines, that is, a virtual machine is used to manage server resources of corresponding size as an independent server module to run in parallel with other server modules to realize independent control and operation of related services. When installing the server operating system, for large servers or server clusters, first determine a piece of physical server resources, that is, a physical machine, and manage and maintain this piece of server resources separately based on virtual machine technology, including installing the operating system. Therefore, when installing the Windows operating system on the server, based on the preset operation and maintenance platform, first determine the server resources on which the operating system is to be installed, which can be referred to as the server, that is, the KVM physical machine, wherein the KVM physical machine represents the physical computer hardware resources based on the KVM technology (Kernel-based Virtual Machine, abbreviated as KVM in English). The physical computer hardware resources based on the KVM technology can be called the KVM physical machine before the operating system is installed, which is the initial state of the KVM virtual machine.

[0028] For example, for the servers used for the medical business of a medical unit, when it is necessary to install the Windows operating system on the server during the operation and maintenance of the server, the preset operation and maintenance platform of the medical unit is first set up. The preset operation and maintenance platform includes but is not limited to a preset image storage device for storing the preset target Windows system image, a preset installation system middle platform, and a preset IP interface middle platform. Then, based on the preset operation and maintenance platform corresponding to the server, the physical server is virtualized and managed based on KVM to determine the KVM physical machine corresponding to the server, and then the Windows system is installed based on the KVM physical machine.

[0029] S12: Based on the KVM physical machine, receiving an installation task corresponding to installing the Windows system on the server.

[0030] Explanatory note, when installing the Windows system (i.e., the Windows operating system) on a server, an installation task is first generated. In an embodiment of the present application, the installation is configured accordingly through a preset installation system platform included in a preset operation and maintenance platform, and an installation task is generated based on the above configuration, wherein installation means installing a Windows operating system on a server, and the installation task includes but is not limited to determining the number of Windows virtual machines to be created, selecting the operating system to be installed on the server as the Windows system, and determining the version of the Windows system to be installed from several versions of the Windows system. The installation task may also include selecting the configuration version corresponding to the configuration of the server, and other related information such as installing the Windows system on the server based on KVM to create a Windows virtual machine. The Windows virtual machine means a virtual machine whose operating system is the Windows system.

[0031] S13. In response to the installation instruction corresponding to the installation task, create a Windows system installation virtual machine script, wherein the Windows system installation virtual machine script includes a preset target Windows system image and an IP configuration image file corresponding to the IP configuration of the server, and the preset target Windows system image includes a preset Windows system base image and a preset initialization Windows system script file.

[0032] Explanatoryly, a Windows system initialization script file is pre-set, i.e., a preset Windows system initialization script file. The preset Windows system initialization script file represents an automatically executed installation process and describes the information or resources required for it. This is an automatic installation process of a Windows system composed of computer programs developed by relevant personnel. Initialization (Initialization in English) refers to the process of setting the system, variables, objects or other available components to their initial state or initial value during the automatic installation of the Windows system. This is configured by relevant personnel. The preset Windows system initialization script file is a script, which can be represented by init_win.ps1. The preset Windows system initialization script file is configured by relevant personnel in a preset Windows system base image, thereby obtaining a preset target Windows system image, and pre-stores the preset target Windows system image to a preset operation and maintenance platform including a preset image storage device, so as to obtain the preset target Windows system image later. The preset Windows system base image represents the original installation version of the preset Windows system.

[0033] The IP configuration image file is a file in an image format corresponding to the server's gateway, DNS (English: Domain Name System, abbreviation: DNS, domain name system), IP address, network, firewall and other IP-related configuration information.

[0034] In response to the installation instruction corresponding to the installation task, the preset target Windows system image is stored in a specified file directory by means including but not limited to downloading, etc., to obtain the preset target Windows system image, and the IP-related configuration information is obtained through but not limited to the preset IP interface middle platform provided in the embodiment of the present application, and the IP-related configuration information is generated into an ISO image file to obtain an IP configuration image file, and a script for installing the Windows system is composed of but not limited to the preset target Windows system image and the IP configuration image file to create a Windows system installation virtual machine script, the Windows system installation virtual machine script represents a script for automatically installing the Windows system to obtain the Windows virtual machine corresponding to the server, because the Windows system installation virtual machine script needs to be created and run in a virtual environment simulated on a KVM physical machine, therefore, the Windows system installation virtual machine script corresponds to the corresponding virtual machine, and because the server is virtualized based on KVM, accordingly, the above-mentioned virtual machine can also be called a KVM virtual machine, the KVM physical machine and the KVM virtual machine are in a corresponding relationship, the KVM physical machine describes from an entity perspective a server based on KVM virtualization technology but which has not successfully installed the Windows system, the KVM virtual machine describes from a virtual perspective a server in the form of a virtual machine divided based on KVM virtualization technology and having an operating environment, and the KVM physical machine and the KVM virtual machine are the same entity object described from different perspectives.

[0035] S14, mounting the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script.

[0036] Explanatory, the IP configuration image is mounted to the virtual machine corresponding to the Windows system installation virtual machine script by including but not limited to converting the IP configuration image into a file format suitable for access by a preset initialization Windows system script file, so that during the installation process of the Windows system, the preset initialization Windows system script file contained in the Windows system installation virtual machine script can access the IP configuration image and use the IP information therein to install the Windows system, wherein mounting refers to connecting the IP configuration image to the virtual machine corresponding to the Windows system installation virtual machine script, so that the data of the IP configuration image can be accessed by the preset initialization Windows system script file, and this process is similar to connecting a physical storage device to a computer, but in the KVM virtual environment, this is achieved through software.

[0037] S15. Restart the KVM physical machine, and when the KVM physical machine is restarted, run the preset initialization Windows system script file according to the IP configuration image file to install the Windows system corresponding to the preset Windows system base image on the server, and obtain the Windows virtual machine corresponding to the server.

[0038] Explanatoryly, a preset boot-up self-starting task corresponding to a preset initialization Windows system script file is pre-set to automatically start upon boot-up, and a server restart task is pre-set. When the server is shut down and restarted, that is, when the KVM physical machine is shut down and restarted, the above preset boot-up self-starting task is automatically executed to automatically start and run the preset initialization Windows system script file, and based on the running of the preset initialization Windows system script file, the server is automatically configured with the corresponding IP and the Windows system is installed, thereby installing the Windows system corresponding to the preset Windows system base image on the server. Since the server is a physical machine based on KVM, after the Windows system is automatically installed successfully, the server is a virtual machine with the Windows system installed, that is, a Windows virtual machine, thereby achieving successful automatic installation of the Windows virtual machine corresponding to the server.

[0039] For example, in the process of digital medical implementation, for the servers used for the medical services of medical institutions, when it is necessary to install the Windows operating system on the server during the server operation and maintenance, the above-mentioned server operating system installation solution is used to automatically install the Windows operating system on the server, which can improve the installation efficiency of the server Windows operating system.

[0040] In an embodiment of the present application, the KVM physical machine corresponding to the server is determined based on the preset operation and maintenance platform corresponding to the server, and based on the KVM physical machine, the installation task corresponding to the installation of the Windows system on the server is received, and then the installation instruction corresponding to the installation task is responded to, and a Windows system installation virtual machine script is created. The Windows system installation virtual machine script includes an IP configuration image file corresponding to the preset target Windows system image and the IP configuration of the server, and then the IP configuration image file is mounted to the virtual machine corresponding to the Windows system installation virtual machine script, and finally the KVM physical machine is restarted, and according to the IP configuration image file, the preset initialization Windows system script file is run to install the Windows system corresponding to the preset target Windows system image on the server, so as to realize the automatic installation of the server's Windows operating system, and realize the unattended automatic one-click installation of the server's Windows operating system based on KVM, without manual intervention, and greatly improve the installation efficiency of the server operating system.

[0041] In one embodiment, after obtaining the Windows virtual machine corresponding to the server, the method further includes:

[0042] Clear the Windows system installation virtual machine script and restart the server.

[0043] Explanatory note, after the Windows operating system corresponding to the preset target Windows system image is successfully installed on the server, the files used for installing the Windows operating system but no longer used, including but not limited to the Windows system installation virtual machine script, are cleared, that is, the IP configuration image file corresponding to the preset target Windows system image and the IP configuration of the server is deleted and cleared, that is, the preset initialization Windows system script file, the preset Windows system basic image, and the IP configuration image file are cleared, and the server is restarted to complete the fully automatic installation of the Windows system.

[0044] For example, in the process of digital medical implementation, for the servers used for the medical business of medical institutions, during the process of server operation and maintenance, when it is necessary to install the Windows operating system on the server, the above-mentioned server operating system installation solution is adopted. After the Windows operating system is automatically installed on the server, the data generated during the Windows operating system installation process is cleaned up, and the server is restarted to complete the Windows operating system installation, which can save the server's storage space and improve the subsequent use of the server's storage space.

[0045] The embodiment of the present application clears the Windows system installation virtual machine script and restarts the server, thereby deleting the installation files no longer needed for installing the Windows system, which can save the server's storage space, improve the storage space usage of subsequent servers, and further achieve fully automatic installation of the Windows system.

[0046] In one embodiment, see Figure 3 , Figure 3 This is a schematic diagram of the first sub-flow of the installation processing method of the server operating system provided in the embodiment of the present application. Figure 3 As shown, based on the KVM physical machine, receiving the installation task corresponding to the installation of the Windows system on the server includes:

[0047] S31, based on the preset installation system platform included in the preset operation and maintenance platform, determining the target Windows system identifier corresponding to the target Windows system, and obtaining the preset target Windows system identifier corresponding to the preset target Windows system;

[0048] S32, constructing an installation task corresponding to the installation of the Windows system on the server according to the preset target Windows system identifier, and sending the installation task to the KVM physical machine;

[0049] S33. Based on the KVM physical machine, receive the installation task and obtain the installation task corresponding to the installation of the Windows system on the server.

[0050] Explanatory, as described above, the preset operation and maintenance platform includes a preset installation system middle platform. Based on the preset installation system middle platform, relevant personnel perform relevant configurations for creating a Windows virtual machine, including but not limited to selecting the system version corresponding to the installed Windows system. The system version is generally distinguished by a Windows system identifier. The relevant personnel select the system version corresponding to the Windows system based on the preset installation system middle platform, and use the Windows system corresponding to the selected system version as the target Windows system, and the system version identifier corresponding to the target Windows system as the target Windows system identifier, thereby determining the target Windows system identifier corresponding to the target Windows system, and obtaining the preset target Windows system identifier corresponding to the preset target Windows system, wherein the preset target Windows system is the Windows system to be installed on the server set in advance by the relevant personnel, and then according to the preset target Windows system identifier, an installation task is constructed, the installation task includes but is not limited to the preset target Windows system identifier, so as to subsequently download the Windows system installation file corresponding to the preset target Windows system identifier, the Windows system installation file is generally a corresponding image file, and then the installation task is sent to the KVM physical machine, and the KVM physical machine receives the installation task corresponding to the server installing the Windows system.

[0051] In the embodiment of the present application, the installation tasks are pre-set accordingly through the preset installation system platform included in the preset operation and maintenance platform. Not only can the installation tasks be flexibly configured according to needs, but the installation tasks are also the prerequisite for the KVM-based unattended automatic one-click installation of the Windows operating system on the server provided in the embodiment of the present application, which can improve the efficiency and effect of automatic installation of the server operating system.

[0052] In one embodiment, see Figure 4 , Figure 4 This is a second sub-flow diagram of the installation processing method of the server operating system provided in the embodiment of the present application. Figure 4 As shown, in this embodiment, creating a Windows system installation virtual machine script includes:

[0053] S41, based on the preset image storage included in the preset operation and maintenance platform and according to the preset target Windows system identifier, downloading the preset target Windows system image corresponding to the preset target Windows system;

[0054] S42, determining the IP configuration information corresponding to the server, and generating an IP configuration mirror file corresponding to the IP configuration information;

[0055] S43. Based on the preset target Windows system image and the IP configuration image file, construct a Windows system installation virtual machine script.

[0056] Explanatory, please continue to see Figure 2 , and as described above, presetting the preset operation and maintenance platform includes a preset image storage, and then based on the preset image storage and according to the preset target Windows system identifier, downloading the preset target Windows system image corresponding to the preset target Windows system from the preset image storage, corresponding to Figure 2 The download image process in the embodiment includes but is not limited to obtaining the IP address corresponding to the server to determine the IP configuration information corresponding to the server, and generating the IP configuration image file corresponding to the IP configuration information, corresponding to Figure 2 Then, based on the preset target Windows system image and IP configuration image file, build a Windows system installation virtual machine script.

[0057] For example, in the process of digital medical implementation, for the servers used for the medical business of the medical unit, during the process of server operation and maintenance, when it is necessary to install the Windows operating system on the server, based on the pre-set preset operation and maintenance platform including the preset image storage, and according to the preset target Windows system identifier, the preset target Windows system image corresponding to the preset target Windows system is downloaded from the preset image storage, and then the Windows system is automatically installed according to the preset target Windows system image.

[0058] The embodiment of the present application automatically downloads a preset target Windows system image and automatically generates an IP configuration image file, thereby automatically building a Windows system installation virtual machine script, thereby realizing automatic installation of the server Windows operating system, and realizing unattended, automated, one-click installation of the server's Windows operating system based on KVM, without the need for human intervention, thereby greatly improving the installation efficiency of the server operating system.

[0059] In one embodiment, determining the IP configuration information corresponding to the server and generating an IP configuration mirror file corresponding to the IP configuration information includes:

[0060] Based on the preset IP interface middle platform included in the preset operation and maintenance platform, obtain IP configuration information corresponding to the IP configuration of the server;

[0061] Generate an IP configuration file corresponding to the IP configuration information;

[0062] The IP configuration file is converted into an ISO image file format to obtain an IP configuration image file.

[0063] Explanatory, please continue to see Figure 2 As mentioned above, based on the preset IP interface middle platform included in the preset operation and maintenance platform, the IP configuration information corresponding to the IP configuration of the server is obtained. The IP configuration information is automatically generated by the preset operation and maintenance platform according to the relevant configuration corresponding to the server, and then the IP configuration file corresponding to the IP configuration information is generated. The IP configuration file represents the file corresponding to the IP configuration information generated based on the management virtualization platform, and then the IP configuration file is converted into the ISO image file format to obtain the IP configuration image file.

[0064] Exemplarily, in the process of digital medical implementation, for the servers used for the medical business of the medical unit, during the process of server operation and maintenance, when it is necessary to install the Windows operating system on the server, the interface of the preset IP interface middle station is called to obtain the IP configuration information corresponding to the IP configuration of the server, and generate the IP configuration file ipconfig.xml, and at the same time convert the xml format of the IP configuration file into the iso image file format ipconfig.iso, and the converted image format file is used to mount to the preset initialization Windows system script file, wherein the generation command of the IP configuration file ipconfig.xml includes but is not limited to the following command: genisoimage-input-charset utf-8-oipconfig.iso ipconfig.xml.

[0065] The embodiment of the present application automatically obtains the IP configuration information corresponding to the IP configuration of the server and automatically generates an IP configuration image file, and then automatically installs the server's Windows operating system based on the IP configuration image file, thereby realizing unattended, automated, one-click installation of the server's Windows operating system based on KVM without the need for human intervention, thereby greatly improving the installation efficiency of the server operating system.

[0066] In one embodiment, before downloading the preset target Windows system image corresponding to the preset target Windows system, the method further includes:

[0067] Configure the preset boot-up auto-start task corresponding to the preset initialization Windows system script file;

[0068] When the KVM physical machine is restarted, the preset initialization Windows system script file is run according to the IP configuration image file, including:

[0069] When the KVM physical machine is restarted, the preset initialization Windows system script file is automatically started according to the preset boot-up self-starting task;

[0070] According to the IP configuration image file, the preset initialization Windows system script file is run.

[0071] Explanatoryly, a preset power-on self-start task corresponding to a preset initialization Windows system script file is pre-configured. The preset power-on self-start task indicates a task of automatically starting the preset initialization Windows system script file when the server is started. Generally, relevant personnel configure the preset initialization Windows system script file in a preset Windows system base image. When the preset target Windows system image is obtained, the relevant personnel set the preset power-on self-start task and pre-set the server restart task, that is, the preset shutdown and restart task. The preset shutdown and restart task indicates a task of first shutting down the KVM physical machine (that is, the server) and then starting it up to restart.

[0072] Based on the above settings, when installing the Windows system, first shut down the KVM physical machine based on the preset shutdown and restart task, and restart the KVM physical machine after the KVM physical machine is shut down. When the KVM physical machine is restarted, the preset initialization Windows system script file is automatically started according to the preset startup self-start task, and the preset initialization Windows system script file is run according to the IP configuration image file. Exemplarily, the PowerShell script corresponding to the preset startup self-start task is pre-configured to control the preset initialization Windows system script file to start automatically when the server restarts, wherein the PowerShell script is used to automatically execute management tasks in Windows.

[0073] In the embodiment of the present application, a preset startup self-starting task corresponding to a preset initialization Windows system script file is configured, and when the KVM physical machine is restarted, the preset initialization Windows system script file is automatically started according to the preset startup self-starting task, thereby realizing automatic installation of the server's Windows operating system, and realizing unattended and automated one-click installation of the server's Windows operating system based on KVM, without the need for human intervention, thereby greatly improving the installation efficiency of the server operating system.

[0074] In one embodiment, mounting the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script includes:

[0075] Based on the preset virtualization management software corresponding to the KVM physical machine, create an XML configuration file based on the XML format corresponding to the IP configuration image file;

[0076] Based on the XML configuration file, the IP configuration image file is mapped to the virtual machine corresponding to the Windows system installation virtual machine script.

[0077] Explanatoryly, pre-set virtualization management software, i.e. preset virtualization management software, refers to a series of software tools and platforms for managing and optimizing virtualized environments. Pre-set virtualization management software includes but is not limited to Libvirt, VMware vSphere / ESXi, and Microsoft Hyper-V, wherein Libvirt supports multiple virtualization technologies, including but not limited to KVM, Xen, and VMware ESX. Virtualization technology is a resource management technology that can abstract physical resources (such as servers, storage devices, networks, etc.) to form virtual resources. Through virtualization, multiple virtual machines can be run on a physical server. These virtual machines share the CPU, memory, IO and other resources of the physical machine, but are logically isolated from each other. The main purpose of virtualization technology is to improve resource utilization, reduce costs, simplify management, and enhance system flexibility and reliability. Virtualization management software is an application for managing and optimizing virtualized environments. It is responsible for creating, configuring, monitoring and maintaining virtual machines to ensure the normal operation and efficient use of virtual machines. Therefore, on the basis of virtualizing physical machines, the preset virtualization management software is generally used to manage and optimize the virtualized environment.

[0078] Based on the above description, based on the preset virtualization management software corresponding to the KVM physical machine, an XML configuration file based on the XML format corresponding to the IP configuration image file is created, wherein the "XML" involved in the XML configuration file is only used to distinguish the configuration file, and is not used to limit the configuration file, and then based on the XML configuration file, the IP configuration image file is mapped to the virtual machine corresponding to the Windows system installation virtual machine script, so that during the Windows system installation process, the preset initialization Windows system script file contained in the Windows system installation virtual machine script can access the data contained in the IP configuration image file and use the IP information therein to install the Windows system, thereby mounting the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script. Exemplarily, in the case of managing the KVM virtual machine based on the Libvirt virtualization management software, a libvirt.xml configuration file based on the XML format corresponding to the IP configuration image file is created, and based on the libvirt.xml configuration file, the IP configuration image file ipconfig.iso is mapped into the corresponding virtual machine, thereby mounting the IP configuration image ipconfig.iso into the corresponding virtual machine, and then in the process of automatically installing the Windows system, the IP configuration image ipconfig.iso can be accessed, and the IP information therein is used to install the Windows system.

[0079] In the embodiment of the present application, an XML configuration file based on the XML format corresponding to the IP configuration image file is automatically created, and based on the XML configuration file, the IP configuration image file is mapped to the virtual machine corresponding to the Windows system installation virtual machine script, so as to mount the IP configuration image to the virtual machine corresponding to the Windows system installation virtual machine script, and then the automatic installation of the server Windows operating system is realized according to the IP configuration file, and the unattended automatic one-click installation of the server Windows operating system based on KVM is realized without human intervention, which greatly improves the installation efficiency of the server operating system.

[0080] It should be noted that the installation and processing methods of the server operating system described in the above embodiments can recombine the technical features contained in different embodiments as needed to obtain a combined implementation plan, but they are all within the scope of protection required by this application.

[0081] See also Figure 5 , Figure 5 A schematic block diagram of a server operating system installation processing device provided in an embodiment of the present application. Corresponding to the above-mentioned server operating system installation processing method, an embodiment of the present application also provides a server operating system installation processing device. Figure 5 As shown, the server operating system installation processing device includes a unit for executing the above-mentioned server operating system installation processing method, and the server operating system installation processing device can be configured in a computer device. Specifically, please refer to Figure 5 The server operating system installation processing device 50 includes a first determining unit 51, a receiving unit 52, a creating unit 53, a mounting unit 54 and an installing unit 55.

[0082] The first determining unit 51 is used to determine the KVM physical machine corresponding to the server based on the preset operation and maintenance platform corresponding to the server;

[0083] A receiving unit 52 is used to receive, based on the KVM physical machine, an installation task corresponding to the installation of the Windows system on the server;

[0084] A creation unit 53 is used to respond to the installation instruction corresponding to the installation task and create a Windows system installation virtual machine script, wherein the Windows system installation virtual machine script includes a preset target Windows system image and an IP configuration image file corresponding to the IP configuration of the server, and the preset target Windows system image includes a preset Windows system base image and a preset initialization Windows system script file;

[0085] The mounting unit 54 is used to mount the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script;

[0086] The installation unit 55 is used to restart the KVM physical machine, and when the KVM physical machine is restarted, run the preset initialization Windows system script file according to the IP configuration image file to install the Windows system corresponding to the preset Windows system base image on the server to obtain the Windows virtual machine corresponding to the server.

[0087] In one embodiment, the server operating system installation processing device 50 further includes:

[0088] The clearing unit is used to clear the Windows system installation virtual machine script and restart the server.

[0089] In one embodiment, the receiving unit 52 includes:

[0090] A first determining subunit is used to determine a target Windows system identifier corresponding to a target Windows system based on a preset installation system platform included in the preset operation and maintenance platform, and obtain a preset target Windows system identifier corresponding to the preset target Windows system;

[0091] A first construction subunit is used to construct an installation task corresponding to the installation of the Windows system on the server according to the preset target Windows system identifier, and send the installation task to the KVM physical machine;

[0092] The first receiving subunit is used to receive the installation task based on the KVM physical machine, and obtain the installation task corresponding to the installation of the Windows system on the server.

[0093] In one embodiment, the creation unit 53 includes:

[0094] A download subunit, configured to download a preset target Windows system image corresponding to the preset target Windows system based on a preset image storage device included in the preset operation and maintenance platform and according to the preset target Windows system identifier;

[0095] A first generating subunit, used to determine the IP configuration information corresponding to the server, and generate an IP configuration mirror file corresponding to the IP configuration information;

[0096] The second construction subunit is used to construct a Windows system installation virtual machine script based on the preset target Windows system image and the IP configuration image file.

[0097] In one embodiment, the first generating subunit includes:

[0098] A first acquisition subunit is used to acquire IP configuration information corresponding to the IP configuration of the server based on a preset IP interface middle platform included in the preset operation and maintenance platform;

[0099] A second generating subunit is used to generate an IP configuration file corresponding to the IP configuration information;

[0100] The first conversion subunit is used to convert the IP configuration file into an ISO image file format to obtain an IP configuration image file.

[0101] In one embodiment, the creation unit 53 further includes:

[0102] A configuration subunit, used to configure a preset boot-up auto-start task corresponding to the preset initialization Windows system script file;

[0103] The installation unit 55 comprises:

[0104] A self-starting subunit, configured to self-start the preset initialization Windows system script file according to the preset startup self-starting task when the KVM physical machine is restarted;

[0105] The running subunit is used to run the preset initialization Windows system script file according to the IP configuration image file.

[0106] In one embodiment, the mounting unit 54 includes:

[0107] A creation subunit is used to create an XML configuration file based on the XML format corresponding to the IP configuration image file based on the preset virtualization management software corresponding to the KVM physical machine;

[0108] A mapping subunit is used to map the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script based on the XML configuration file.

[0109] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the installation processing device and each unit of the above-mentioned server operating system can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.

[0110] At the same time, the division and connection method of each unit in the installation processing device of the above-mentioned server operating system is only for illustrative purposes. In other embodiments, the installation processing device of the server operating system can be divided into different units as needed, and the units in the installation processing device of the server operating system can also adopt different connection sequences and methods to complete all or part of the functions of the installation processing device of the above-mentioned server operating system.

[0111] The installation processing device of the server operating system can be implemented in the form of a computer program. Figure 6 Runs on the computer device shown.

[0112] See also Figure 6 , Figure 6 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a computer device such as a desktop computer or a server, or may be a component or part in other devices.

[0113] See also Figure 6The computer device 500 includes a processor 502, a memory and a network interface 505 connected via a system bus 501, wherein the memory may include a non-volatile storage medium 503 and an internal memory 504, and the memory may also be a volatile storage medium.

[0114] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the above-mentioned server operating system installation processing method.

[0115] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0116] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute an installation processing method of the above-mentioned server operating system.

[0117] The network interface 505 is used to communicate with other devices over the network. Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the computer device 500 to which the present application scheme is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and the processor are the same as those of the present application scheme. Figure 6 The embodiments shown are consistent and will not be described again here.

[0118] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps: based on the preset operation and maintenance platform corresponding to the server, determine the KVM physical machine corresponding to the server; based on the KVM physical machine, receive the installation task corresponding to the installation of the Windows system on the server; in response to the installation instruction corresponding to the installation task, create a Windows system installation virtual machine script, wherein the Windows system installation virtual machine script contains an IP configuration image file corresponding to the preset target Windows system image and the IP configuration of the server, and the preset target Windows system image contains a preset Windows system base image and a preset initialization Windows system script file; mount the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script; restart the KVM physical machine, and when the KVM physical machine is restarted, run the preset initialization Windows system script file according to the IP configuration image file to install the Windows system corresponding to the preset Windows system base image on the server to obtain the Windows virtual machine corresponding to the server.

[0119] In one embodiment, after obtaining the Windows virtual machine corresponding to the server, the processor 502 further implements the following steps:

[0120] Clear the Windows system installation virtual machine script and restart the server.

[0121] In one embodiment, when the processor 502 receives the installation task corresponding to the installation of the Windows system on the server based on the KVM physical machine, the processor 502 specifically implements the following steps:

[0122] Based on the preset installation system platform included in the preset operation and maintenance platform, determine the target Windows system identifier corresponding to the target Windows system, and obtain the preset target Windows system identifier corresponding to the preset target Windows system;

[0123] According to the preset target Windows system identifier, construct an installation task corresponding to the installation of the Windows system on the server, and send the installation task to the KVM physical machine;

[0124] Based on the KVM physical machine, the installation task is received, and the installation task corresponding to the installation of the Windows system on the server is obtained.

[0125] In one embodiment, the processor 502 implements the following steps when implementing the creation of a Windows system installation virtual machine script:

[0126] Based on the preset image storage included in the preset operation and maintenance platform and according to the preset target Windows system identifier, downloading the preset target Windows system image corresponding to the preset target Windows system;

[0127] Determine the IP configuration information corresponding to the server, and generate an IP configuration image file corresponding to the IP configuration information;

[0128] Based on the preset target Windows system image and the IP configuration image file, a Windows system installation virtual machine script is constructed.

[0129] In one embodiment, when the processor 502 determines the IP configuration information corresponding to the server and generates an IP configuration image file corresponding to the IP configuration information, the processor 502 specifically implements the following steps:

[0130] Based on the preset IP interface middle platform included in the preset operation and maintenance platform, obtain IP configuration information corresponding to the IP configuration of the server;

[0131] Generate an IP configuration file corresponding to the IP configuration information;

[0132] The IP configuration file is converted into an ISO image file format to obtain an IP configuration image file.

[0133] In one embodiment, the processor 502 further implements the following steps before downloading the preset target Windows system image corresponding to the preset target Windows system:

[0134] Configure the preset boot-up auto-start task corresponding to the preset initialization Windows system script file;

[0135] When the KVM physical machine is restarted, the preset initialization Windows system script file is run according to the IP configuration image file, including:

[0136] When the KVM physical machine is restarted, the preset initialization Windows system script file is automatically started according to the preset boot-up self-starting task;

[0137] According to the IP configuration image file, the preset initialization Windows system script file is run.

[0138] In one embodiment, when the processor 502 mounts the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script, the processor 502 specifically implements the following steps:

[0139] Based on the preset virtualization management software corresponding to the KVM physical machine, create an XML configuration file based on the XML format corresponding to the IP configuration image file;

[0140] Based on the XML configuration file, the IP configuration image file is mapped to the virtual machine corresponding to the Windows system installation virtual machine script.

[0141] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0142] Those skilled in the art will appreciate that all or part of the processes in the method for implementing the above embodiment can be completed by a computer program, which can be stored in a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0143] Therefore, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, and the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the following steps:

[0144] A computer program product, when running on a computer, enables the computer to execute the steps of the server operating system installation processing method described in the above embodiments.

[0145] The computer-readable storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or memory of the device. The computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device.

[0146] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0147] The storage medium is a physical, non-transient storage medium, for example, it can be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, etc., which can store computer programs.

[0148] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0149] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0150] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for an electronic device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0152] The software tools or components not provided by our company that appear in the embodiments of this application are merely examples and do not represent actual use.

[0153] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for installing a server operating system, characterized in that: include: Determine the KVM physical machine corresponding to the server based on the preset operation and maintenance platform corresponding to the server; Based on the KVM physical machine, receiving an installation task corresponding to installing the Windows system on the server; In response to the installation instruction corresponding to the installation task, create a Windows system installation virtual machine script, wherein the Windows system installation virtual machine script includes a preset target Windows system image and an IP configuration image file corresponding to the IP configuration of the server, and the preset target Windows system image includes a preset Windows system base image and a preset initialization Windows system script file; Mounting the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script; Restart the KVM physical machine, and when the KVM physical machine is restarted, run the preset initialization Windows system script file according to the IP configuration image file to install the Windows system corresponding to the preset Windows system base image on the server, and obtain the Windows virtual machine corresponding to the server.

2. The method for installing a server operating system according to claim 1, characterized in that: After obtaining the Windows virtual machine corresponding to the server, the method further includes: Clear the Windows system installation virtual machine script and restart the server.

3. The method for installing a server operating system according to claim 1 or 2, characterized in that: Based on the KVM physical machine, receiving an installation task corresponding to the installation of the Windows system on the server, including: Based on the preset installation system platform included in the preset operation and maintenance platform, determine the target Windows system identifier corresponding to the target Windows system, and obtain the preset target Windows system identifier corresponding to the preset target Windows system; According to the preset target Windows system identifier, construct an installation task corresponding to the installation of the Windows system on the server, and send the installation task to the KVM physical machine; Based on the KVM physical machine, the installation task is received, and the installation task corresponding to the installation of the Windows system on the server is obtained.

4. The method for installing a server operating system according to claim 3, characterized in that: Create a Windows system installation virtual machine script, including: Based on the preset image storage included in the preset operation and maintenance platform and according to the preset target Windows system identifier, downloading the preset target Windows system image corresponding to the preset target Windows system; Determine the IP configuration information corresponding to the server, and generate an IP configuration image file corresponding to the IP configuration information; Based on the preset target Windows system image and the IP configuration image file, a Windows system installation virtual machine script is constructed.

5. The method for installing a server operating system according to claim 4, characterized in that: Determining the IP configuration information corresponding to the server and generating an IP configuration image file corresponding to the IP configuration information includes: Based on the preset IP interface middle platform included in the preset operation and maintenance platform, obtain IP configuration information corresponding to the IP configuration of the server; Generate an IP configuration file corresponding to the IP configuration information; The IP configuration file is converted into an ISO image file format to obtain an IP configuration image file.

6. The method for installing a server operating system according to claim 4, characterized in that: Before downloading the preset target Windows system image corresponding to the preset target Windows system, the method further includes: Configure the preset boot-up auto-start task corresponding to the preset initialization Windows system script file; When the KVM physical machine is restarted, the preset initialization Windows system script file is run according to the IP configuration image file, including: When the KVM physical machine is restarted, the preset initialization Windows system script file is automatically started according to the preset boot-up self-starting task; According to the IP configuration image file, the preset initialization Windows system script file is run.

7. The method for installing a server operating system according to claim 1 or 2, characterized in that: Mounting the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script includes: Based on the preset virtualization management software corresponding to the KVM physical machine, create an XML configuration file based on the XML format corresponding to the IP configuration image file; Based on the XML configuration file, the IP configuration image file is mapped to the virtual machine corresponding to the Windows system installation virtual machine script.

8. A server operating system installation processing device, characterized in that: include: A first determining unit, configured to determine a KVM physical machine corresponding to the server based on a preset operation and maintenance platform corresponding to the server; A receiving unit, configured to receive, based on the KVM physical machine, an installation task corresponding to the installation of the Windows system on the server; a creation unit, configured to respond to the installation instruction corresponding to the installation task and create a Windows system installation virtual machine script, wherein the Windows system installation virtual machine script includes a preset target Windows system image and an IP configuration image file corresponding to the IP configuration of the server, and the preset target Windows system image includes a preset Windows system base image and a preset initialization Windows system script file; A mounting unit, used for mounting the IP configuration image file to the virtual machine corresponding to the Windows system installation virtual machine script; The installation unit is used to restart the KVM physical machine, and when the KVM physical machine is restarted, run the preset initialization Windows system script file according to the IP configuration image file to install the Windows system corresponding to the preset Windows system base image on the server to obtain the Windows virtual machine corresponding to the server.

9. A computer device, characterized in that: The computer device comprises a memory and a processor connected to the memory; the memory is used to store a computer program; the processor is used to run the computer program to execute the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Patent Citations

  • Operating system mounting method and device

    CN104850442A

  • Server management method and device

    CN110098952A

  • Automatic deployment method, system and device for operating system and readable storage medium

    CN116737182A

  • Systems and methods for update propagation between nodes in a distributed system

    US20190349428A1