Virtual machine configuration method, device, electronic device and storage medium for multiple operating systems

Through virtual machine management software, a virtual machine and network environment with multiple operating systems is created in the laboratory environment, and the problem of high cost of building a multi-operating system network resource environment is solved, achieving the effect of rapid configuration and resource saving.

CN117492931BActive Publication Date: 2025-02-14NETTRIX INFORMATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311603280.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-02-14
Estimated Expiration
2043-11-28

AI Technical Summary

Technical Problem

Using multiple different physical devices to build network resource environments for multiple different operating systems is relatively expensive.

Method used

Create virtual machines of multiple operating systems through the interface provided by the virtual machine management software, and build their respective network environments in the virtual machine management software, import and install images, and configure the listening interface to achieve rapid configuration of the network environment.

Benefits of technology

There is no need to use physical equipment to build a network environment, reduce hardware costs, save laboratory space, and realize rapid configuration and effective monitoring of multi-operating system network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117492931B_ABST
    Figure CN117492931B_ABST
Patent Text Reader

Abstract

The present invention discloses a virtual machine configuration method, device, electronic device and storage medium for multiple operating systems. A first virtual machine of a first system and a second virtual machine of a second system are created through an interface provided by virtual machine management software; a first network environment of the first system is built through the first virtual machine, and a second network environment of the second system is built through the second virtual machine; an installation image of the first system is imported into the first network environment; an installation image of the second system is imported into the second network environment; a monitoring interface of the first network environment and the second network environment is configured; based on the monitoring interface, a first boot directory of the first system and a second boot directory of the second system are configured in the first network environment. The present invention builds virtual machines of different operating systems and respective network environments of different operating systems in virtual machine management software, without the need to use physical equipment to build the network environment, thereby reducing hardware costs and saving laboratory space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a virtual machine configuration method, device, electronic device and storage medium for multiple operating systems. Background Art

[0002] The lab environment needs to test servers, workstations, etc. Different devices run different operating systems, such as Microsoft or Linux.

[0003] Different physical devices need to be used to build a network resource environment for different operating systems (such as Windows operating system or Linux operating system), and the cost of building the network environment is relatively high. Summary of the invention

[0004] The present invention provides a virtual machine configuration method, device, electronic device and storage medium for multiple operating systems to solve the problem of high cost of using multiple different physical devices to build network resources for multiple different operating systems.

[0005] According to one aspect of the present invention, a method for configuring a virtual machine of multiple operating systems is provided, characterized in that it includes:

[0006] Creating a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software;

[0007] Building a first network environment of the first system through the first virtual machine, and building a second network environment of the second system through the second virtual machine;

[0008] Importing the installation image of the first system in the first network environment; importing the installation image of the second system in the second network environment;

[0009] Configuring the monitoring interfaces of the first network environment and the second network environment;

[0010] Based on the monitoring interface, a first boot directory of the first system and a second boot directory of the second system are configured in the first network environment.

[0011] The technical solution of the embodiment of the present invention is to create a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software, and to respectively construct a first network environment of the first system and a second network environment of the second system in the virtual machine management software. The underlying communication of the virtual machine management software can realize the underlying data interaction between virtual machines. After the installation image of the first system is imported into the first network environment, the first network environment can provide network support for the first system based on the installation image of the first system. After the installation image of the second system is imported into the second network environment, the second network environment can provide network support for the second system based on the installation image of the second system. When the first network environment and the second network environment transmit data packets, they identify the data packets that their respective networks are responsible for processing based on the monitoring interface. By configuring the monitoring interface of the first network environment and the second network environment, repeated monitoring can be avoided. After configuring the monitoring interface, based on the monitoring interface, the first boot directory of the first system and the second boot directory of the second system are configured in the first network environment to enable the monitoring interface. Compared with the current need to build multiple network environments with different operating systems through different physical devices, the present invention builds virtual machines of different operating systems and their respective network environments in the virtual machine management software, without the need to use physical devices to build the network environment, reducing hardware costs and saving laboratory space. By configuring the monitoring interface, different network environments can effectively monitor their respective data packets. By using the underlying communication provided by the virtual machine management software, the first network environment and the application network environment provided by the second network, the first network environment and the second network can monitor their respective data packets, and the network environment of multiple operating systems can be quickly configured.

[0012] On the basis of the above implementation mode, building the first network service environment of the first system by using the first virtual machine includes:

[0013] Build a remote boot technology (Preboot Execution Environment, PXE) server through a Linux virtual machine;

[0014] Correspondingly, establishing the second network environment of the second system through the second virtual machine includes:

[0015] Build a WDS server using a Windows virtual machine.

[0016] The above technical solution can build a first network environment consisting of a remote boot technology server for the Linux operating system, and a second network environment consisting of a WDS server for Microsoft's Windows operating system. The first network environment provides network services for the first virtual machine, and the second network environment provides network services for the second virtual machine, thereby realizing the construction of network services for the Linux operating system and the Windows operating system in the virtual machine management software.

[0017] Based on the above implementation, importing the installation image of the first system into the first network environment includes:

[0018] The remote boot technology server includes: a Dynamic Host Configuration Protocol (DHCP) server, a Trivial File Transfer Protocol (TFTP) server and a Hypertext Transfer Protocol (HTTP) server;

[0019] Compile iPXE on the Linux virtual machine and configure it to the TFTP server;

[0020] Import the Linux installation image to the HTTP server of the Linux virtual machine;

[0021] Accordingly, importing the installation image of the second system in the second network environment includes:

[0022] Import the Windows installation image to the WDS server of the Windows virtual machine.

[0023] In the above technical solution, the PXE server is composed of a DHCP server, a TFTP server and an HTTP server. The Linux virtual machine compiles iPXE and configures it to the TFTP server, and imports the Linux category installation image to the HTTP server of the Linux virtual machine, so that the TFTP server and the HTTP server can process the data packets in an orderly manner and realize the network service of the Linux operating system. The Windows category installation image is imported into the WDS server of the Windows virtual machine, so that the network service of the Windows operating system can be executed by the WDS server.

[0024] On the basis of the above implementation, configuring the monitoring interfaces of the first network environment and the second network environment includes:

[0025] Adjust the TFTP network listening interface of the WDS server to avoid conflict with the TFTP server network listening interface of the Linux virtual machine.

[0026] The above technical solution realizes interface adjustment by configuring the TFTP interface of the WDS server, avoids conflicts between the Windows operating system and the Linux operating system on the monitoring interface, and improves the reliability of interface monitoring.

[0027] On the basis of the above implementation, configuring the first boot directory of the first system and the second boot directory of the second system in the first network environment includes:

[0028] iPXE of the Linux virtual machine configures the Linux image installation directory and sets the WDS jump interface.

[0029] In the above technical solution, after importing the first boot directory and the second boot directory, the iPXE of the Linux virtual machine configures the Linux image installation directory and sets the WDS jump interface to implement the interface configuration between the Linux operating system and the Windows operating system, avoid conflicts between the Windows operating system and the Linux operating system on the monitoring interface, and improve the reliability of interface monitoring.

[0030] On the basis of the above implementation, after configuring the first boot directory of the first system and the second boot directory of the second system in the first network environment, the method further includes:

[0031] The client performs network installation and debugging on the first network environment and the second network environment.

[0032] The client of the above technical solution can perform network installation and debugging on the first network environment and the second network environment based on the network environment built by the virtual machine management software, thereby improving the efficiency of network installation and debugging.

[0033] On the basis of the above implementation, after the installation image of the first system is imported into the first network environment; and the installation image of the second system is imported into the second network environment, the method further includes:

[0034] Incrementally adjusting the installation image of the first system; and / or,

[0035] An incremental adjustment is performed on the installation image of the second system.

[0036] In the above technical solution, the first system or the second system can be incrementally adjusted by installing the image, thereby realizing quick adjustment of the first system or the second system.

[0037] According to another aspect of the present invention, a virtual machine configuration device for multiple operating systems is provided, characterized in that it includes:

[0038] A virtual machine creation module, used to create a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software;

[0039] A network environment configuration module, used to build a first network environment of the first system through the first virtual machine, and to build a second network environment of the second system through the second virtual machine;

[0040] An image import module, used to import the installation image of the first system in the first network environment; import the installation image of the second system in the second network environment;

[0041] A monitoring configuration module, used to configure the monitoring interfaces of the first network environment and the second network environment;

[0042] A boot directory configuration module is used to configure a first boot directory of the first system and a second boot directory of the second system in the first network environment based on the monitoring interface.

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

[0044] at least one processor; and

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

[0046] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the virtual machine configuration method for multiple operating systems described in any embodiment of the present invention.

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

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

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

[0050] Figure 1 It is a flowchart of a method for configuring a virtual machine of multiple operating systems provided in Embodiment 1 of the present invention;

[0051] Figure 2 A schematic diagram of a flow chart of a method for configuring a virtual machine of a multi-operating system provided in a second embodiment of the present invention;

[0052] Figure 3 It is a structural diagram of a multi-operating system virtual machine configuration device provided in Embodiment 3 of the present invention;

[0053] Figure 4 It is a structural schematic diagram of an electronic device for implementing the multi-operating system virtual machine configuration method according to an embodiment of the present invention. DETAILED DESCRIPTION

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

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

[0056] Embodiment 1

[0057] Figure 1This is a flowchart of a method for configuring a virtual machine of a multi-operating system provided by the first embodiment of the present invention. This embodiment is applicable to the case where a laboratory environment is used to construct a network environment for different operating systems. The method can be executed by a virtual machine configuration device for a multi-operating system. The virtual machine configuration device for a multi-operating system can be implemented in the form of hardware and / or software. The virtual machine configuration device for a multi-operating system can be configured in an electronic device. Figure 1 As shown, the method includes:

[0058] S110: Create a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by virtual machine management software.

[0059] Install virtual machine management software. Optionally, the virtual machine management software can be EXsi. EXsi is an enterprise-level virtualization product for running virtual machines. It is installed in bare metal or bare-metal mode. EXsi can directly access and control the underlying resources and distinguish the hardware.

[0060] Optionally, the first system may be a Windows operating system of Microsoft system, and the second system may be a Linux operating system.

[0061] S120: Building a first network environment of the first system through the first virtual machine, and building a second network environment of the second system through the second virtual machine.

[0062] Optionally, a remote boot technology (Preboot Execution Environment, PXE) server is established through the first virtual machine.

[0063] The first virtual machine may be a Linux virtual machine, and the remote boot technology server includes: a DHCP server, a TFTP server, and an HTTP server.

[0064] Optionally, establishing the second network environment of the second system through the second virtual machine may be implemented as: establishing a Wireless Distribution System (WDS) server through a Windows virtual machine.

[0065] The WDS server provides a network access environment and interface for the first virtual machine.

[0066] The above technical solution can build a first network environment composed of a PXE server for the Linux operating system, and a second network environment composed of a WDS server for Microsoft's Windows operating system. The first network environment provides network services for the first virtual machine, and the second network environment provides network services for the second virtual machine, thereby realizing the construction of network services for the Linux operating system and the Windows operating system in the virtual machine management software.

[0067] S130: Importing an installation image of a first system into the first network environment; and importing an installation image of a second system into the second network environment.

[0068] Optionally, importing the installation image of the first system in the first network environment can be implemented as follows: the remote boot technology server includes: a DHCP server, a TFTP service and an HTTP server; the Linux virtual machine compiles iPXE and configures it to the TFTP server; and imports the Linux installation image to the HTTP server of the Linux virtual machine.

[0069] After the Linux installation image is imported into the HTTP server of the Linux virtual machine, the Linux virtual machine can load the image of the Linux operating system by accessing the HTTP server, and then provide subsequent network services.

[0070] Specifically, building a remote boot technology server through the first virtual machine can be implemented as: building a DHCP server, a TFTP server and an HTTP server through a Linux virtual machine.

[0071] The HTTP server may be replaced by a File Transfer Protocol (FTP) server, a Network File System (NFS) server, or a Server All-Mode Basic (SAMBA) server.

[0072] Optionally, when the installation image stored in the HTTP server needs to be executed, the DHCP server provides the client with the IP address of the boot file in the TFTP server, and the boot file stores the directory file used by the HTTP server to start the installation image. The installation image stored in the HTTP server can be started according to the directory file.

[0073] Starting the installation image of the first system through the first network environment can quickly and stably start the installation image on the basis of maintaining the original network structure.

[0074] Optionally, the boot file and the directory file can also be stored in the WDS server, and the WDS server provides the directory file. After determining the directory file, the installation image in the HTTP server is executed. At this time, the remote boot technology server can configure the HTTP server and import the Linux category installation image in the HTTP server.

[0075] The WDS server belongs to the second network environment. By starting the installation image in the HTTP server in the first network environment through the WDS server in the second network environment, the WDS server can be shared in multiple network environments.

[0076] Optionally, importing the installation image of the second system in the second network environment may be implemented as follows: importing the installation image of the Windows category into a WDS server of the Windows virtual machine.

[0077] After the Windows installation image is imported into the WDS server of the Windows virtual machine, the Windows virtual machine can access the WDS server to load the Windows operating system image and then provide subsequent network services.

[0078] The above technical solution compiles iPXE in the Linux virtual machine and configures it to the TFTP server, and imports the Linux installation image to the HTTP server of the Linux virtual machine, so that the TFTP server and the HTTP server can process the data packets in an orderly manner and realize the network service of the Linux operating system. Importing the Windows installation image to the WDS server of the Windows virtual machine can realize the network service of the Windows operating system executed by the WDS server.

[0079] S140. Configure monitoring interfaces of the first network environment and the second network environment.

[0080] Optionally, configuring the monitoring interfaces of the first network environment and the second network environment may be implemented as follows: adjusting the TFTP network monitoring interface of the WDS server to avoid conflict with the TFTP server network monitoring interface of the Linux virtual machine.

[0081] In order to avoid monitoring conflicts between the first network (such as the network of the Linux operating system) and the second network (such as the network of the Windows operating system), the monitoring interfaces of the two are configured. After the interfaces are configured, the changed network monitoring interface is implemented through step S150.

[0082] The above technical solution realizes interface adjustment by configuring the TFTP interface of the WDS server, avoids conflicts between the Windows operating system and the Linux operating system on the monitoring interface, and improves the reliability of interface monitoring.

[0083] S150. Based on the monitoring interface, configure a first boot directory of the first system and a second boot directory of the second system in the first network environment.

[0084] Optionally, configuring the first boot directory of the first system and the second boot directory of the second system in the first network environment may be implemented as follows: iPXE of the Linux virtual machine configures a Linux image installation directory and sets a WDS jump interface.

[0085] In the above technical solution, after importing the first boot directory and the second boot directory, the iPXE of the Linux virtual machine configures the Linux image installation directory and sets the WDS jump interface to implement the interface configuration between the Linux operating system and the Windows operating system, avoid conflicts between the Windows operating system and the Linux operating system on the monitoring interface, and improve the reliability of interface monitoring.

[0086] Further, after configuring the first boot directory of the first system and the second boot directory of the second system in the first network environment, the method further includes:

[0087] The client performs network installation and debugging on the first network environment and the second network environment.

[0088] The client of the above technical solution can perform network installation and debugging on the first network environment and the second network environment based on the network environment built by the virtual machine management software, thereby improving the efficiency of network installation and debugging.

[0089] Furthermore, after the installation image of the first system is imported into the first network environment and the installation image of the second system is imported into the second network environment, the method further includes:

[0090] Incrementally adjusting the installation image of the first system; and / or,

[0091] An incremental adjustment is performed on the installation image of the second system.

[0092] The installation image can be adjusted according to usage requirements and problems found during use.

[0093] In the above technical solution, the first system or the second system can be incrementally adjusted by installing the image, thereby realizing quick adjustment of the first system or the second system.

[0094] The technical solution of the embodiment of the present invention is to create a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software, and to respectively construct a first network environment of the first system and a second network environment of the second system in the virtual machine management software. The underlying communication of the virtual machine management software can realize the underlying data interaction between virtual machines. After the installation image of the first system is imported into the first network environment, the first network environment can provide network support for the first system based on the installation image of the first system. After the installation image of the second system is imported into the second network environment, the second network environment can provide network support for the second system based on the installation image of the second system. When the first network environment and the second network environment transmit data packets, they identify the data packets that their respective networks are responsible for processing based on the monitoring interface. By configuring the monitoring interface of the first network environment and the second network environment, repeated monitoring can be avoided. After configuring the monitoring interface, based on the monitoring interface, the first boot directory of the first system and the second boot directory of the second system are configured in the first network environment to enable the monitoring interface. Compared with the current need to build multiple network environments with different operating systems through different physical devices, the present invention builds virtual machines of different operating systems and their respective network environments in the virtual machine management software, without the need to use physical devices to build the network environment, reducing hardware costs and saving laboratory space. By configuring the monitoring interface, different network environments can effectively monitor their respective data packets. By using the underlying communication provided by the virtual machine management software, the first network environment and the application network environment provided by the second network, the first network environment and the second network can monitor their respective data packets, and the network environment of multiple operating systems can be quickly configured.

[0095] Embodiment 2

[0096] Figure 2 1 is a flow chart of a method for configuring a virtual machine of a multi-operating system provided by Embodiment 2 of the present invention, and this embodiment is used as a further explanation of the above embodiment. Figure 2 As shown, the method adds a specific driver image (driver) to the corresponding initial root file system (initrd) based on computer virtualization software (VMware), specifically including:

[0097] 1. Install EXsi;

[0098] 2. Create a Windows operating system virtual machine and a Linux operating system virtual machine respectively.

[0099] 3. Linux virtual machine builds DHCP server, TFTP server, and HTTP server.

[0100] 4. The Linux virtual machine compiles iPXE according to requirements and configures it to the TFTP server environment.

[0101] 5. Import the Linux installation image to the Linux virtual machine HTTP server.

[0102] 6. Build a WDS server on a Windows virtual machine.

[0103] 7. Import the Windows installation image to the WDS server of the Windows virtual machine.

[0104] 8. Adjust the network monitoring interface of the WDS server TFTP server (to avoid conflict with the network monitoring interface of the Linux virtual machine TFTP server).

[0105] 9. Linux virtual machine DHCP server configuration is started from Linux TFTP server.

[0106] 10. Linux virtual machine iPXE configures the Linux image installation directory and sets the WDS jump interface.

[0107] 11. Network installation environment debugging.

[0108] The client can perform network installation and debugging on the Linux operating system and Windows operating system to ensure that the network installation can run normally. When an abnormality occurs in the Linux operating system, you can complete the debugging by modifying the image, driver and other files in the HTTP server. When an abnormality occurs in the Windows operating system, you can complete the debugging by modifying the image, driver and other files in the WDS server.

[0109] 12. Post-operation and maintenance.

[0110] Operations and maintenance include incremental adjustments to installed images.

[0111] Embodiment 3

[0112] Figure 3 Schematic diagram of a multi-operating system virtual machine configuration device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:

[0113] A virtual machine creation module 31, used to create a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software;

[0114] A network environment configuration module 32, configured to build a first network environment of the first system through the first virtual machine, and to build a second network environment of the second system through the second virtual machine;

[0115] An image import module 33, used to import the installation image of the first system in the first network environment; and import the installation image of the second system in the second network environment;

[0116] A monitoring configuration module 34, used to configure the monitoring interfaces of the first network environment and the second network environment;

[0117] The boot directory configuration module 35 is used to configure the first boot directory of the first system and the second boot directory of the second system in the first network environment based on the monitoring interface.

[0118] The technical solution of the embodiment of the present invention is to create a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software, and to respectively construct a first network environment of the first system and a second network environment of the second system in the virtual machine management software. The underlying communication of the virtual machine management software can realize the underlying data interaction between virtual machines. After the installation image of the first system is imported into the first network environment, the first network environment can provide network support for the first system based on the installation image of the first system. After the installation image of the second system is imported into the second network environment, the second network environment can provide network support for the second system based on the installation image of the second system. When the first network environment and the second network environment transmit data packets, they identify the data packets that their respective networks are responsible for processing based on the monitoring interface. By configuring the monitoring interface of the first network environment and the second network environment, repeated monitoring can be avoided. After configuring the monitoring interface, based on the monitoring interface, the first boot directory of the first system and the second boot directory of the second system are configured in the first network environment to enable the monitoring interface. Compared with the current need to build multiple network environments with different operating systems through different physical devices, the present invention builds virtual machines of different operating systems and their respective network environments in the virtual machine management software, without the need to use physical devices to build the network environment, reducing hardware costs and saving laboratory space. By configuring the monitoring interface, different network environments can effectively monitor their respective data packets. By using the underlying communication provided by the virtual machine management software, the first network environment and the application network environment provided by the second network, the first network environment and the second network can monitor their respective data packets, and the network environment of multiple operating systems can be quickly configured.

[0119] Based on the above implementation, the network environment configuration module 32 is used to:

[0120] Build a remote boot technology server through Linux virtual machine;

[0121] Build a WDS server using a Windows virtual machine.

[0122] The above technical solution can build a first network environment composed of a PXE server for the Linux operating system, and a second network environment composed of a WDS server for Microsoft's Windows operating system. The first network environment provides network services for the first virtual machine, and the second network environment provides network services for the second virtual machine, thereby realizing the construction of network services for the Linux operating system and the Windows operating system in the virtual machine management software.

[0123] Based on the above implementation, the image import module 33 is used to:

[0124] The remote boot technology server includes: a DHCP server, a TFTP service and an HTTP server; the Linux virtual machine compiles iPXE and configures it to the TFTP server;

[0125] Import the Linux installation image to the HTTP server of the Linux virtual machine;

[0126] Import the Windows installation image to the WDS server of the Windows virtual machine.

[0127] The above technical solution compiles iPXE in the Linux virtual machine and configures it to the TFTP server, and imports the Linux installation image to the HTTP server of the Linux virtual machine, so that the TFTP server and the HTTP server can process the data packets in an orderly manner and realize the network service of the Linux operating system. Importing the Windows installation image to the WDS server of the Windows virtual machine can realize the network service of the Windows operating system executed by the WDS server.

[0128] Based on the above implementation, the monitoring configuration module 34 is used to:

[0129] Adjust the TFTP network listening interface of the WDS server to avoid conflict with the TFTP server network listening interface of the Linux virtual machine.

[0130] The above technical solution realizes interface adjustment by configuring the TFTP interface of the WDS server, avoids conflicts between the Windows operating system and the Linux operating system on the network monitoring interface, and improves the monitoring reliability.

[0131] Based on the above implementation, the boot directory configuration module 35 is used to:

[0132] iPXE of the Linux virtual machine configures the Linux image installation directory and sets the WDS jump interface.

[0133] In the above technical solution, after importing the first boot directory and the second boot directory, the iPXE of the Linux virtual machine configures the Linux image installation directory and sets the WDS jump interface to implement the interface configuration between the Linux operating system and the Windows operating system, avoid conflicts between the Windows operating system and the Linux operating system on the monitoring interface, and improve the reliability of interface monitoring.

[0134] Based on the above implementation, a debugging module is further included, which is used to:

[0135] The client performs network installation and debugging on the first network environment and the second network environment.

[0136] The client of the above technical solution can perform network installation and debugging on the first network environment and the second network environment based on the network environment built by the virtual machine management software, thereby improving the efficiency of network installation and debugging.

[0137] Based on the above implementation, an incremental module is also included, which is used for:

[0138] Incrementally adjusting the installation image of the first system; and / or,

[0139] An incremental adjustment is performed on the installation image of the second system.

[0140] In the above technical solution, the first system or the second system can be incrementally adjusted by installing the image, thereby realizing quick adjustment of the first system or the second system.

[0141] The multi-operating system virtual machine configuration device provided in the embodiment of the present invention can execute the multi-operating system virtual machine configuration method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0142] Embodiment 4

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

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

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

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

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

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

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

[0150] Embodiment 5

[0151] Embodiment 5 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a virtual machine configuration method for multiple operating systems, the method comprising:

[0152] Creating a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software;

[0153] Building a first network environment of the first system through the first virtual machine, and building a second network environment of the second system through the second virtual machine;

[0154] Importing the installation image of the first system in the first network environment; importing the installation image of the second system in the second network environment;

[0155] Configuring the monitoring interfaces of the first network environment and the second network environment;

[0156] Based on the monitoring interface, a first boot directory of the first system and a second boot directory of the second system are configured in the first network environment.

[0157] On the basis of the above implementation mode, building the first network service environment of the first system by using the first virtual machine includes:

[0158] Build a remote boot technology server through Linux virtual machine;

[0159] Correspondingly, establishing the second network environment of the second system through the second virtual machine includes:

[0160] Build a WDS server using a Windows virtual machine.

[0161] Based on the above implementation, importing the installation image of the first system into the first network environment includes:

[0162] The remote boot technology server includes: a DHCP server, a TFTP service and an HTTP server;

[0163] Compile iPXE on the Linux virtual machine and configure it to the TFTP server;

[0164] Import the Linux installation image to the HTTP server of the Linux virtual machine;

[0165] Accordingly, importing the installation image of the second system in the second network environment includes:

[0166] Import the Windows installation image to the WDS server of the Windows virtual machine.

[0167] On the basis of the above implementation, configuring the monitoring interfaces of the first network environment and the second network environment includes:

[0168] Adjust the TFTP network listening interface of the WDS server to avoid conflict with the TFTP server network listening interface of the Linux virtual machine.

[0169] On the basis of the above implementation, configuring the first boot directory of the first system and the second boot directory of the second system in the first network environment includes:

[0170] iPXE of the Linux virtual machine configures the Linux image installation directory and sets the WDS jump interface.

[0171] On the basis of the above implementation, after configuring the first boot directory of the first system and the second boot directory of the second system in the first network environment, the method further includes:

[0172] The client performs network installation and debugging on the first network environment and the second network environment.

[0173] On the basis of the above implementation, after the installation image of the first system is imported into the first network environment; and the installation image of the second system is imported into the second network environment, the method further includes:

[0174] Incrementally adjusting the installation image of the first system; and / or,

[0175] An incremental adjustment is performed on the installation image of the second system.

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

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

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

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

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

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

Claims

1. A method for configuring a virtual machine of a multi-operating system, characterized in that: include: Creating a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software; Building a first network environment of the first system through the first virtual machine, and building a second network environment of the second system through the second virtual machine; Importing the installation image of the first system in the first network environment; importing the installation image of the second system in the second network environment; Configuring the monitoring interfaces of the first network environment and the second network environment; Based on the monitoring interface, configuring a first boot directory of the first system and a second boot directory of the second system in the first network environment; Building a first network environment of the first system through the first virtual machine includes: building a remote boot technology server through a Linux virtual machine, wherein the remote boot technology server is an HTTP server; Establishing the second network environment of the second system by using the second virtual machine includes: Build a WDS server through a Windows virtual machine; Importing the installation image of the first system in the first network environment includes: the WDS server provides a Linux directory file, and the boot file and the directory file are stored in the WDS server; after determining the directory file, importing the Linux category installation image in the HTTP server, and executing the installation image in the HTTP server.

2. The method according to claim 1, characterized in that: Importing the installation image of the first system in the first network environment also includes: The remote boot technology server includes: a DHCP server, a TFTP service and an HTTP server; Compile iPXE on the Linux virtual machine and configure it to the TFTP server; Accordingly, importing the installation image of the second system in the second network environment includes: Import the Windows installation image to the WDS server of the Windows virtual machine.

3. The method according to claim 1, characterized in that Configuring the monitoring interfaces of the first network environment and the second network environment includes: Adjust the TFTP network listening interface of the WDS server to avoid conflict with the TFTP server network listening interface of the Linux virtual machine.

4. The method according to claim 3, characterized in that Configuring a first boot directory of the first system and a second boot directory of the second system in the first network environment includes: iPXE of the Linux virtual machine configures the Linux image installation directory and sets the WDS jump interface.

5. The method according to claim 1, characterized in that After configuring the first boot directory of the first system and the second boot directory of the second system in the first network environment, the method further includes: The client performs network installation and debugging on the first network environment and the second network environment.

6. The method according to claim 1, characterized in that After the installation image of the first system is imported into the first network environment; and the installation image of the second system is imported into the second network environment, the method further includes: Incrementally adjusting the installation image of the first system; and / or, An incremental adjustment is performed on the installation image of the second system.

7. A virtual machine configuration device for multiple operating systems, characterized in that: include: A virtual machine creation module, used to create a first virtual machine of the first system and a second virtual machine of the second system through an interface provided by the virtual machine management software; A network environment configuration module, used to build a first network environment of the first system through the first virtual machine, and to build a second network environment of the second system through the second virtual machine; An image import module, used to import the installation image of the first system in the first network environment; import the installation image of the second system in the second network environment; A monitoring configuration module, used to configure the monitoring interfaces of the first network environment and the second network environment; a boot directory configuration module, configured to configure a first boot directory of the first system and a second boot directory of the second system in the first network environment based on the monitoring interface; A network environment configuration module is used to build a remote boot technology server through a Linux virtual machine, wherein the remote boot technology server is an HTTP server; Network environment configuration module, used to build a WDS server through a Windows virtual machine; An image import module, used for the WDS server to provide a Linux directory file, wherein the boot file and the directory file are stored in the WDS server; After the catalog file is determined, the installation image of the Linux category is imported into the HTTP server, and the installation image in the HTTP server is executed.

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

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