Qemu virtual machine management method and system in integrated development environment

By using the QEMU virtual machine management method in the integrated development environment, one-click startup and graphical interface management of virtual machines are provided, which solves the problems of complex virtual machine management and cumbersome configuration in existing technologies, realizes efficient and convenient virtual machine operation and status management, and improves development efficiency.

CN120909702APending Publication Date: 2025-11-07GALAXY UNICORN SOFTWARE (CHANGSHA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511043748.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

Existing virtual machine management methods are complex to operate, cumbersome to configure, and have low startup efficiency, making it difficult to meet developers' needs for convenient and efficient virtual machine management. In particular, when frequently debugging and modifying programs, the repetitive configuration and startup process reduces development efficiency.

Method used

This paper provides a method for managing QEMU virtual machines in an integrated development environment. By installing the QEMU virtual machine management plugin, it supports one-click startup and management of virtual machines. It utilizes the globally unique identifier (UUID) of the virtual machine and process information binding to achieve precise status management of the virtual machine. It also provides a graphical interface for creating, modifying, starting, shutting down, and deleting virtual machines.

Benefits of technology

It simplifies the virtual machine management process, improves development efficiency, reduces manual operation steps and time costs, enables flexible configuration and precise control of virtual machines, and enhances the development experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120909702A_ABST
    Figure CN120909702A_ABST
Patent Text Reader

Abstract

The invention discloses a qemu virtual machine management method and system in an integrated development environment. The method comprises the steps that a qemu virtual machine management plug-in is installed in the integrated development environment, and the environment is configured; the method comprises the following steps: responding to a one-key starting operation of a user after an embedded program is compiled, if a virtual machine is not created for the embedded program, loading default or selected virtual machine configuration, and calling a command of a qemu environment to create and start the virtual machine to debug the embedded program. And after the virtual machine is started, the virtual machine global unique number uuid of the virtual machine and the process information of the embedded program are bound and stored in a virtual machine configuration file. According to the method, the virtual machine can be conveniently managed in the integrated development environment, so that developers can more efficiently develop and debug the embedded program, errors and time cost caused by manual operation are reduced, and the efficiency and reliability of the overall development process of the embedded program are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of embedded program running and debugging, and in particular to a qemu virtual machine management method and system in an integrated development environment. BACKGROUND

[0002] In the field of embedded system development, developers often need to use virtual machines to run and debug embedded programs. However, the existing virtual machine management method has many limitations, such as complex operation, tedious configuration, low startup efficiency, etc., which is difficult to meet the needs of developers for convenient and efficient management of virtual machines. The traditional method often requires developers to manually input a large number of commands to compile programs, configure virtual machine parameters, and start virtual machines. This process not only takes time, but also is prone to errors. Especially when the program needs to be frequently debugged and modified, the repeated configuration and startup process greatly reduces the development efficiency. Overall, the traditional virtual machine management method mainly has the following problems: 1) Complex operation. The existing virtual machine management usually needs to input a complex sequence of instructions in the command line to complete the compilation, configuration and startup operations. For developers who are not familiar with command line operations, the learning cost is high, and errors are prone to occur during the operation process. 2) Tedious configuration. Each time a virtual machine is created or started, a large number of parameters need to be manually set, such as CPU type and core number, memory size, network mode, etc. There is no way to quickly generate default configurations and allow users to easily modify them, resulting in a time-consuming and error-prone configuration process. 3) Low startup efficiency. There is no one-key startup function, and developers need to manually execute a series of commands to start the virtual machine, which wastes a lot of time in multiple debugging processes and reduces the development efficiency. 4) Lack of effective management. The existing method is difficult to effectively manage the created virtual machines, such as being unable to conveniently view the running state, process number, etc. of the virtual machine, and being inconvenient for batch operation or quick positioning of specific virtual machines. SUMMARY

[0003] The technical problem to be solved by the present application is to provide a qemu virtual machine management method and system in an integrated development environment, which can conveniently manage virtual machines in an integrated development environment, so that developers can more efficiently develop and debug embedded programs, reduce errors and time costs caused by manual operation, and improve the efficiency and reliability of the overall development process of embedded programs.

[0004] To solve the above technical problems, the technical scheme adopted by the present application is as follows: A qemu virtual machine management method in an integrated development environment, comprising the following steps: S101, in response to a user installation operation, installing a qemu virtual machine management plug-in in an integrated development environment and configuring a qemu environment required by the qemu virtual machine management plug-in; S102, after an embedded program in the integrated development environment is compiled, in response to a one-key start operation of a user on the qemu virtual machine management plug-in, reading a virtual machine configuration file to determine whether a virtual machine has been created for the embedded program, if not, jumping to step S103; otherwise, jumping to step S104; S103, loading a virtual machine configuration given in a default virtual machine configuration file or selected by a user on a graphical interface of the qemu virtual machine management plug-in, creating and starting a virtual machine for the embedded program by calling a command of the qemu environment to realize debugging of the embedded program, and after the virtual machine is started, binding a virtual machine globally unique number uuid of the virtual machine and process information of the embedded program and saving them in the virtual machine configuration file; ending; S104, reading a virtual machine globally unique number uuid corresponding to process information of the embedded program recorded in a virtual machine configuration file, judging the virtual machine globally unique number uuid to determine whether a virtual machine bound by the embedded program has been started, if not, starting the virtual machine bound by the embedded program by calling a command of the qemu environment to realize debugging of the embedded program, otherwise, directly utilizing the virtual machine bound by the embedded program to realize debugging of the embedded program.

[0005] Optionally, after the embedded program in the integrated development environment is closed, the virtual machine globally unique number uuid corresponding to the process information of the embedded program recorded in the virtual machine configuration file is read to determine whether the virtual machine bound by the embedded program has been closed, if not, the virtual machine bound by the embedded program is closed by calling a command of the qemu environment.

[0006] Optionally, in addition to the virtual machine globally unique number uuid corresponding to the process information of the embedded program recorded in the virtual machine configuration file, the virtual machine configuration file further includes configuration information of the virtual machine and path information of the qemu environment, the configuration information of the virtual machine includes part or all of CPU configuration, memory size, network mode, disk size and debugging port mode, and the CPU configuration includes CPU type and CPU core number.

[0007] Optionally, the graphical interface of the qemu virtual machine management plug-in also monitors the user's virtual machine management operations, including the creation, modification, start, stop, and deletion of virtual machines, and after the virtual machine is created, the virtual machine globally unique identifier (uuid) of the virtual machine and the process information of the specified embedded program are bound and saved in the virtual machine configuration file.

[0008] Optionally, the process information of the embedded program refers to the process number or process name of the embedded program.

[0009] Optionally, the integrated development environment is a VSCode integrated development environment.

[0010] Optionally, the graphical interface of the qemu virtual machine management plug-in is also entered in response to the user's operation on the integrated development environment, and the graphical interface of the qemu virtual machine management plug-in includes a virtual machine list of all virtual machines recorded in the virtual machine configuration file, and the virtual machine list lists the name, state, and optional management operations of the virtual machine, including start, stop, and delete; the virtual machine information display control is bound in the virtual machine list to respond to the user's selection operation on the virtual machine in the virtual machine list to display part or all of the CPU configuration, memory size, network mode, disk size, debugging port mode, and execution record of the command calling the qemu environment in the terminal.

[0011] Optionally, the step S103 of creating and starting a virtual machine for the embedded program to call the command of the qemu environment to implement the debugging of the embedded program includes: S201, determining whether the qemu environment has been configured, if the qemu environment has been configured, jumping to step S202, otherwise guiding the user to configure the qemu environment through the graphical interface of the qemu virtual machine management plug-in, and jumping to step S201; S202, obtaining the path of the executable program of the embedded program; S203, obtaining the given debugging port and network interface information, generating the default configuration of the virtual machine corresponding to the embedded program, and generating the virtual machine corresponding to the embedded program according to the default configuration; S204, generating the virtual machine globally unique identifier (uuid) for the virtual machine corresponding to the embedded program and updating it to the configuration file to declare that the virtual machine globally unique identifier (uuid) has been used; S205, generating the start command of the virtual machine corresponding to the embedded program in combination with the qemu environment; S206, executing the start command, updating the state of the virtual machine corresponding to the embedded program, and after the virtual machine is started, binding and saving the virtual machine globally unique number uuid of the virtual machine and the process information of the embedded program in the virtual machine configuration file, creating and configuring the network interface and debugging port of the virtual machine to debug the embedded program through the created virtual machine.

[0012] Optionally, further comprising creating the virtual machine in response to the operation of the user on the graphical interface of the qemu virtual machine management plug-in. S301, creating a default configuration for the virtual machine; S302, after receiving the operation of the user on the graphical interface of the qemu virtual machine management plug-in, reading the default configuration created for the virtual machine, obtaining the debugging port and network interface information given in the default configuration, generating the default configuration of the virtual machine corresponding to the specified embedded program, and generating the virtual machine corresponding to the specified embedded program according to the default configuration; S303, in response to the one-key start operation of the user on the qemu virtual machine management plug-in, judging whether the qemu environment has been configured, if the qemu environment has been configured, jumping to step S304, otherwise guiding the user to configure the qemu environment through the graphical interface of the qemu virtual machine management plug-in, and jumping to step S303; S304, generating the virtual machine globally unique number uuid for the virtual machine corresponding to the specified embedded program and updating to the configuration file to declare that the virtual machine globally unique number uuid has been used; S305, generating the start command of the virtual machine corresponding to the specified embedded program in combination with the qemu environment; S306, executing the start command, updating the state of the virtual machine corresponding to the specified embedded program, and after the virtual machine is started, binding and saving the virtual machine globally unique number uuid of the virtual machine and the process information of the specified embedded program in the virtual machine configuration file, creating and configuring the network interface and debugging port of the virtual machine to debug the specified embedded program through the created virtual machine.

[0013] In addition, the present application also provides a qemu virtual machine management system in an integrated development environment, comprising a microprocessor and a memory connected with each other, the microprocessor being programmed or configured to execute the qemu virtual machine management method in the integrated development environment.

[0014] In addition, the present application also provides a computer readable storage medium, the computer readable storage medium storing a computer program or instructions, the computer program or instructions being programmed or configured to execute the qemu virtual machine management method in the integrated development environment through the processor.

[0015] In addition, the application also provides a computer program product comprising a computer program or instructions programmed or configured to execute the qemu virtual machine management method in the integrated development environment by a processor.

[0016] Compared with the prior art, the application mainly has the following beneficial effects: 1. The application provides a method for conveniently managing qemu virtual machines in an integrated development environment such as VSCode, which can simplify the development and virtual machine management process of embedded programs, realize the function of one-key compilation of embedded programs and starting of virtual machines, improve the development efficiency, and reduce manual operation steps. Therefore, the embedded program developer does not need to switch between different tools, reduces manual operation and command input, saves time and effort, and makes the development process more efficient. One-key compilation and starting function and flexible configuration management enable the developer to quickly create, start and manage virtual machines, adapt to different project requirements, and improve the development experience.

[0017] 2. The application can provide flexible virtual machine configuration management, including operations such as creation, configuration, start, shutdown, and deletion, and simultaneously generates a default configuration for user modification to meet different project requirements. By creating a virtual machine configuration, the virtual machine can be conveniently created and managed, avoiding complex command line operations, realizing visualization of embedded virtual machine management, and saving stateless command lines as virtual machine configuration instances.

[0018] 3. The application can realize precise state management of virtual machines, identify the running state of virtual machines through virtual machine globally unique number uuid and process number binding, facilitate the management and control of qemu virtual machines, realize precise control of virtual machines, avoid virtual machine state confusion, and facilitate developers to better organize and manage multiple virtual machine instances. BRIEF DESCRIPTION OF DRAWINGS

[0019] Figure 1 The figure is a basic flowchart of the method of the embodiment of the application.

[0020] Figure 2 The figure is a response flowchart of one-key start operation in the embodiment of the application.

[0021] Figure 3 The figure is a flowchart of active creation of virtual machines in the embodiment of the application. DETAILED DESCRIPTION

[0022] In order to enable personnel in the technical field to better understand the technical solutions of the application, the technical solutions of the application will be further described in detail below in combination with the drawings in the embodiment of the application.

[0023] As Figure 1As shown, the qemu virtual machine management method in the integrated development environment of the embodiment includes the following steps: S101, in response to the installation operation of a user, installing a qemu virtual machine management plug-in in an integrated development environment and configuring a qemu environment required by the qemu virtual machine management plug-in; as an optional implementation manner, the integrated development environment in the embodiment is a VSCode integrated development environment, and in addition, the method of the embodiment can also be applicable to other integrated development environments that can support graphical plug-ins; it should be noted that a graphical interface of the graphical plug-in can adopt a required implementation manner as needed, including a separate window interface or being embedded on an interface of the integrated development environment; a developer installs the plug-in in the VSCode, and sets an installation path of qemu, a tool chain and other basic parameters in a plug-in configuration file; these parameters can be configured in a front-end page; S102, after an embedded program in the integrated development environment is compiled, in response to a one-key starting operation of a user on the qemu virtual machine management plug-in, reading a virtual machine configuration file to judge whether a virtual machine has been created for the embedded program; if not, jumping to step S103; otherwise, jumping to step S104; a developer writes embedded program code in the VSCode, can set parameters such as compilation and linking through plug-in configuration, generates a corresponding compilation command during compilation, and the plug-in calls a cross-compilation tool chain to compile the program to generate an executable file (ELF file). After the compilation is completed, a one-key starting button on the plug-in interface is clicked, the plug-in generates a qemu starting command according to the default configuration, creates and starts a virtual machine. When the virtual machine is started, the plug-in generates a uuid of the virtual machine and binds a process number thereof, and saves them to the configuration; S103, loading a virtual machine configuration given in a default virtual machine configuration file or selected by a user on a graphical interface of the qemu virtual machine management plug-in, creating and starting a virtual machine for the embedded program to implement debugging of the embedded program by calling a command of a qemu environment, and binding and saving a virtual machine globally unique number uuid of the virtual machine and process information of the embedded program in the virtual machine configuration file after the virtual machine is started; and the end; S104, reading a virtual machine globally unique number uuid corresponding to process information of the embedded program recorded in a virtual machine configuration file, judging the virtual machine globally unique number uuid to judge whether a virtual machine bound by the embedded program has been started; if not, starting the virtual machine bound by the embedded program to implement debugging of the embedded program by calling a command of a qemu environment; otherwise, directly using the virtual machine bound by the embedded program to implement debugging of the embedded program.

[0024] Further, the method of the embodiment further comprises, after the embedded program in the integrated development environment is closed, judging the virtual machine globally unique number uuid corresponding to the process information of the embedded program recorded in the virtual machine configuration file, judging whether the virtual machine to which the embedded program is bound has been closed according to the virtual machine globally unique number uuid, and if not, calling a command of the qemu environment to close the virtual machine to which the embedded program is bound.

[0025] In the virtual machine configuration file of the embodiment, in addition to the process information of the embedded program corresponding to the virtual machine globally unique number uuid, the virtual machine configuration file further comprises configuration information of the virtual machine and path information of the qemu environment, the configuration information of the virtual machine comprises part or all of CPU configuration, memory size, network mode, disk size and debugging port mode, and the CPU configuration comprises CPU type and CPU core number.

[0026] The embodiment further comprises monitoring virtual machine management operations of a user in a graphical interface environment of the qemu virtual machine management plug-in, including creation, modification, start, close and deletion of the virtual machine, and binding the virtual machine globally unique number uuid of the virtual machine and the process information of the specified embedded program after the virtual machine is created and saving them in the virtual machine configuration file. If a new virtual machine needs to be created or the configuration of an existing virtual machine needs to be modified, the developer selects the corresponding operation in the plug-in interface, the plug-in provides a configuration interface for the user to set parameters such as CPU type and core number, memory size, serial port mode, network mode, and generates a corresponding virtual machine configuration file. The plug-in monitors the process number of the virtual machine in real time, if the process number exists, the virtual machine is in a running state, the developer can execute a close command, and the plug-in closes the virtual machine by killing the process number; if the process number does not exist, the virtual machine is in a closed state. Each virtual machine corresponds to a configuration file, and the configuration file saves parameters such as virtual machine uuid, process number, CPU, memory, network, serial port, qemu path and the like.

[0027] As an optional implementation, the process information of the embedded program in the embodiment refers to the process number of the embedded program, in addition, the process name or the path and the like can also be used to represent the process information.

[0028] Further, the embodiment also includes entering the graphical interface of the qemu virtual machine management plug-in in response to the user's operation on the integrated development environment, the graphical interface of the qemu virtual machine management plug-in including a virtual machine list of all virtual machines recorded in a virtual machine configuration file, and the virtual machine list listing the names, states and optional management operations of the virtual machines, the optional management operations including starting, stopping and deleting; the virtual machine list being bound with information display controls of the virtual machines to respond to the user's selection operation on the virtual machines in the virtual machine list to display part or all of the execution records of the commands for invoking the qemu environment in the terminal.

[0029] As shown in Figure 2 the embodiment, the step S103 of creating and starting the virtual machine for the embedded program to invoke the command of the qemu environment to implement the debugging of the embedded program includes: S201, judging whether the qemu environment has been configured, if the qemu environment has been configured, jumping to step S202, otherwise guiding the user to configure the qemu environment through the graphical interface of the qemu virtual machine management plug-in, and jumping to step S201; S202, obtaining the path of the executable program of the embedded program; S203, obtaining the given debugging port and network interface information, generating the default configuration of the virtual machine corresponding to the embedded program, and generating the virtual machine corresponding to the embedded program according to the default configuration; S204, generating the globally unique number uuid of the virtual machine corresponding to the embedded program and updating the globally unique number uuid to the configuration file to declare that the globally unique number uuid of the virtual machine has been used; S205, generating the start command of the virtual machine corresponding to the embedded program in combination with the qemu environment; S206, executing the start command, updating the state of the virtual machine corresponding to the embedded program, and binding and saving the globally unique number uuid of the virtual machine and the process information of the embedded program in the virtual machine configuration file after the virtual machine is started, and creating and configuring the network interface and the debugging port of the virtual machine to debug the embedded program through the created virtual machine.

[0030] As shown in Figure 3 the embodiment, the embodiment also includes creating the virtual machine in response to the user's operation of creating the virtual machine on the graphical interface of the qemu virtual machine management plug-in: S301, creating the default configuration for the virtual machine; S302, after receiving the operation of the user to create a new virtual machine on the graphical interface of the qemu virtual machine management plug-in, read the default configuration created for the virtual machine, obtain the debugging port and network interface information given in the default configuration, generate the default configuration of the virtual machine corresponding to the specified embedded program, and generate the virtual machine corresponding to the specified embedded program according to the default configuration; S303, in response to the one-key start operation of the user on the qemu virtual machine management plug-in, it is judged whether the qemu environment has been configured, if the qemu environment has been configured, jump to step S304, otherwise guide the user to configure the qemu environment through the graphical interface of the qemu virtual machine management plug-in, and jump to step S303; S304, generate a virtual machine globally unique number uuid for the virtual machine corresponding to the specified embedded program and update it to the configuration file to declare that the virtual machine globally unique number uuid has been used; S305, generate the start command of the virtual machine corresponding to the specified embedded program in combination with the qemu environment; S306, execute the start command, update the state of the virtual machine corresponding to the specified embedded program, and after the virtual machine is started, bind and save the virtual machine globally unique number uuid of the virtual machine and the process information of the specified embedded program in the virtual machine configuration file, create and configure the network interface and debugging port of the virtual machine to debug the specified embedded program through the created virtual machine.

[0031] In summary, the qemu virtual machine management method in the integrated development environment of the embodiment integrates a plug-in in VSCode, which is used to realize the compilation of embedded programs and the integration of virtual machines, and provides a graphical interface to facilitate users to perform a series of virtual machine management tasks. The plug-in creates and controls the virtual machine by calling the qemu command, and manages the virtual machine state by using the generated virtual machine globally unique number uuid and process number. The core idea is to integrate complex virtual machine management operations into the graphical interface of VSCode, and realize the automation and convenience process through the plug-in. Specifically, the plug-in provides one-key compilation and start function, uses the default configuration to quickly create and start the virtual machine to reduce the manual operation steps, provides flexible virtual machine configuration management, allows users to customize multiple parameter settings, and generates the corresponding configuration file to meet different project requirements, allows users to customize virtual machine configuration parameters such as CPU, memory, network, etc. In the aspect of virtual machine management, the plug-in generates the virtual machine globally unique number uuid of each virtual machine and binds its process number, detects the process number to judge the running state of the virtual machine, realizes the precise control of the start, close and other operations of the virtual machine, and facilitates the user to operate and manage the virtual machine.

[0032] In addition, the embodiment further provides a qemu virtual machine management system in an integrated development environment, comprising a microprocessor and a memory connected to each other, the microprocessor being programmed or configured to execute the qemu virtual machine management method in the integrated development environment. The embodiment further provides a computer readable storage medium, in which a computer program or instructions are stored, the computer program or instructions being programmed or configured to execute the qemu virtual machine management method in the integrated development environment by a processor. The embodiment further provides a computer program product, comprising a computer program or instructions, the computer program or instructions being programmed or configured to execute the qemu virtual machine management method in the integrated development environment by a processor.

[0033] Those skilled in the art should understand that the technical solutions provided by the present application can be in the form of a method, a system or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer usable program code. The present application is described with reference to flowcharts and / or block diagrams of the methods, apparatus (systems) and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing apparatus to produce a machine, so that the instructions that are executed by the processor of the computer or other programmable data processing apparatus generate a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus with a means for performing the functions specified in the flowcharts and / or block diagrams. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction apparatus that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus with a means for performing the functions specified in the flowcharts and / or block diagrams. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction apparatus that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus with a means for performing the functions specified in the flowcharts and / or block diagrams. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction apparatus that implements the functions specified in the flowcharts and / or block diagrams.

[0034] The above merely describes the preferred embodiments of the present application, and the protection scope of the present application is not limited to the above-described embodiments. Any technical solution falling within the concept of the present application shall fall within the protection scope of the present application. It should be noted that, for ordinary skilled persons in the art, some improvements and refinements without departing from the principles of the present application shall also be considered as falling within the protection scope of the present application.

Claims

1. A method for managing a qemu virtual machine in an integrated development environment, the method comprising: The method comprises the following steps: S101, in response to a user installation operation, installing a qemu virtual machine management plug-in in an integrated development environment and configuring a qemu environment required by the qemu virtual machine management plug-in; S102, after an embedded program in the integrated development environment is compiled, in response to a one-key starting operation of the user on the qemu virtual machine management plug-in, reading a virtual machine configuration file to determine whether a virtual machine has been created for the embedded program, and if not, jumping to step S103; Otherwise, jumping to step S104; S103, loading a virtual machine configuration given in a default virtual machine configuration file or selected by the user on a graphical interface of the qemu virtual machine management plug-in, creating and starting a virtual machine for the embedded program by calling a command of the qemu environment to realize debugging of the embedded program, and after the virtual machine is started, binding and saving a virtual machine globally unique number uuid of the virtual machine and process information of the embedded program in the virtual machine configuration file; and ending; S104, reading the virtual machine globally unique number uuid corresponding to the process information of the embedded program recorded in the virtual machine configuration file, judging the virtual machine globally unique number uuid to determine whether the virtual machine bound by the embedded program has been started, and if not, starting the virtual machine bound by the embedded program by calling a command of the qemu environment to realize debugging of the embedded program, otherwise, directly utilizing the virtual machine bound by the embedded program to realize debugging of the embedded program.

2. The method according to claim 1, wherein, Further comprising, after the embedded program in the integrated development environment is closed, utilizing the virtual machine globally unique number uuid corresponding to the process information of the embedded program recorded in the virtual machine configuration file to judge the virtual machine globally unique number uuid to determine whether the virtual machine bound by the embedded program has been closed, and if not, closing the virtual machine bound by the embedded program by calling a command of the qemu environment.

3. The method according to claim 2, wherein, In the virtual machine configuration file, in addition to the virtual machine globally unique number uuid corresponding to the process information of the embedded program, the virtual machine configuration file further comprises configuration information of the virtual machine and path information of the qemu environment, the configuration information of the virtual machine comprises part or all of CPU configuration, memory size, network mode, disk size and debugging port mode, and the CPU configuration comprises CPU type and CPU core number.

4. The method of claim 1, wherein, Further comprising monitoring a virtual machine management operation of the user in a graphical interface environment of the qemu virtual machine management plug-in, the virtual machine management operation comprising creation, modification, starting, closing and deletion of the virtual machine, and after the virtual machine is created, binding and saving the virtual machine globally unique number uuid of the virtual machine and process information of a specified embedded program in the virtual machine configuration file.

5. The method of claim 1, wherein, Also included is entering a graphical interface of a qemu virtual machine management plug-in in response to a user's operation on an integrated development environment, the graphical interface of the qemu virtual machine management plug-in including a virtual machine list of all virtual machines recorded in a virtual machine configuration file, and listing a name, a state and optional management operations of the virtual machines in the virtual machine list, the optional management operations including starting, stopping and deleting; the virtual machine list being bound with information display controls of the virtual machines, to respond to a user's selection operation on the virtual machines in the virtual machine list to display part or all of CPU configuration, memory size, network mode, disk size, debugging port mode and execution records of commands invoking a qemu environment in a terminal of the virtual machines.

6. The method of claim 1, wherein, The step S103 of creating and starting a virtual machine for the command of invoking the qemu environment for the embedded program to realize debugging of the embedded program includes: S201, judging whether the qemu environment has been configured, if the qemu environment has been configured, jumping to step S202, otherwise guiding a user to configure the qemu environment through the graphical interface of the qemu virtual machine management plug-in, and jumping to step S201; S202, obtaining a path of an executable program of the embedded program; S203, obtaining given debugging port and network interface information, generating a default configuration of a virtual machine corresponding to the embedded program, and generating the virtual machine corresponding to the embedded program according to the default configuration; S204, generating a virtual machine globally unique number uuid for the virtual machine corresponding to the embedded program and updating the virtual machine globally unique number uuid to a configuration file to declare that the virtual machine globally unique number uuid has been used; S205, generating a start command of the virtual machine corresponding to the embedded program in combination with the qemu environment; S206, executing the start command, updating a state of the virtual machine corresponding to the embedded program, and binding and saving the virtual machine globally unique number uuid of the virtual machine and process information of the embedded program in the virtual machine configuration file after starting the virtual machine, to create and configure a network interface and a debugging port of the virtual machine to debug the embedded program through the created virtual machine.

7. The method of claim 1, wherein, Also included is creating a virtual machine in response to a user's operation of creating a virtual machine on the graphical interface of the qemu virtual machine management plug-in: S301, creating a default configuration for the virtual machine; S302, reading the default configuration created for the virtual machine after receiving the user's operation of creating a virtual machine on the graphical interface of the qemu virtual machine management plug-in, obtaining given debugging port and network interface information in the default configuration, generating a default configuration of a virtual machine corresponding to a specified embedded program, and generating the virtual machine corresponding to the specified embedded program according to the default configuration; S303, responding to a one-key start operation of the user on the qemu virtual machine management plug-in, judging whether the qemu environment has been configured, if the qemu environment has been configured, jumping to step S304, otherwise guiding the user to configure the qemu environment through the graphical interface of the qemu virtual machine management plug-in, and jumping to step S303; S304, generating a virtual machine globally unique number uuid corresponding to the specified embedded program and updating to the configuration file to declare that the virtual machine globally unique number uuid has been used; S305, generating a start command of the virtual machine corresponding to the specified embedded program in combination with the qemu environment; S306, executing the start command, updating the state of the virtual machine corresponding to the specified embedded program, and after the virtual machine is started, binding and saving the virtual machine globally unique number uuid of the virtual machine and the process information of the specified embedded program in the virtual machine configuration file, creating and configuring the network interface and debugging port of the virtual machine to debug the specified embedded program through the created virtual machine.

8. A qemu virtual machine management system in an integrated development environment, comprising a microprocessor and a memory interconnected, characterized in that, The microprocessor is programmed or configured to execute the qemu virtual machine management method in the integrated development environment of any one of claims 1-7.

9. A computer-readable storage medium having stored therein a computer program or instructions, characterized in that, The computer program or instruction is programmed or configured to execute the qemu virtual machine management method in the integrated development environment of any one of claims 1-7 by the processor.

10. A computer program product comprising computer programs or instructions, characterized in that, The computer program or instruction is programmed or configured to execute the qemu virtual machine management method in the integrated development environment of any one of claims 1-7 by the processor.