CN114840312A - Virtual machine management method and device and computing equipment - Google Patents

Virtual machine management method and device and computing equipment Download PDF

Info

Publication number
CN114840312A
CN114840312A CN202210644056.5A CN202210644056A CN114840312A CN 114840312 A CN114840312 A CN 114840312A CN 202210644056 A CN202210644056 A CN 202210644056A CN 114840312 A CN114840312 A CN 114840312A
Authority
CN
China
Prior art keywords
virtual machine
module
interaction
interactive
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210644056.5A
Other languages
Chinese (zh)
Inventor
孔兴龙
吴勇
覃芝锛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202210644056.5A priority Critical patent/CN114840312A/en
Publication of CN114840312A publication Critical patent/CN114840312A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a virtual machine management method, a virtual machine management device and a computing device, wherein the method is executed in the computing device, the computing device comprises an interaction module, a program processing module and a command execution module, the interaction module is suitable for displaying one or more interaction units corresponding to one or more commands, and the method comprises the following steps: the program processing module receives interactive operation on the virtual machine generated based on one or more interactive units, converts the interactive operation on the virtual machine into a corresponding target command, and sends the target command to the command execution module; the command execution module executes the target command to generate a corresponding virtual machine execution result and sends the virtual machine execution result to the interaction module; and the interaction module displays the execution result of the virtual machine. According to the technical scheme of the invention, the management operation steps of the virtual machine are simplified, and the interaction mode is more friendly.

Description

Virtual machine management method and device and computing equipment
Technical Field
The present invention relates to the field of virtual machine technologies, and in particular, to a virtual machine management method, a virtual machine management apparatus, and a computing device.
Background
Currently, the main management tools of a KVM (keyboard Video mouse) virtual machine include kimchi (KVM management software developed based on Html5 language), virsh (management tool of KVM, supporting command line), and virt-manager (KVM graphic management tool), which essentially use libvirtual, and the underlying implementation is consistent. Different tools may be selected for different application scenarios.
In the management tool of the KVM virtual machine, the management scheme of the virsh based on the command line is too old, lacks updating, and is too complex to operate, the coordination between the command line and the parameters is too much, the learning cost is too high, the use flexibility is low, the interaction experience is poor, and the switching between the virtual machines is not smooth.
For this reason, a virtual machine management method is needed to solve the problems in the above-mentioned schemes.
Disclosure of Invention
To this end, the present invention provides a virtual machine management method to solve or at least alleviate the above existing problems.
According to an aspect of the present invention, there is provided a virtual machine management method, executed in a computing device, the computing device including an interaction module, a program processing module, and a command execution module, the interaction module being adapted to display one or more interaction units corresponding to one or more commands, the method including the steps of: the program processing module receives interactive operation on the virtual machine generated based on one or more interactive units, converts the interactive operation on the virtual machine into a corresponding target command, and sends the target command to the command execution module; the command execution module executes the target command to generate a corresponding virtual machine execution result and sends the virtual machine execution result to the interaction module; and the interaction module displays the execution result of the virtual machine.
Optionally, in the virtual machine management method according to the present invention, further comprising: and the program processing module generates display content in a corresponding format according to the interactive operation on the virtual machine and sends the display content to the interactive module for display.
Optionally, in the virtual machine management method according to the present invention, the step of sending the virtual machine execution result to the interaction module includes: screening the virtual machine execution result to delete invalid information to obtain the virtual machine information to be fed back; and sending the information of the virtual machine to be fed back to the interaction module.
Optionally, in the virtual machine management method according to the present invention, the information of the virtual machine to be fed back includes a key log and/or error information; the step of displaying the information of the virtual machine to be fed back by the interaction module comprises the following steps: and the interaction module generates a popup based on the information of the virtual machine to be fed back and displays the popup.
Optionally, in the virtual machine management method according to the present invention, the interaction module is adapted to display a graphical user interface, and is adapted to display one or more interaction units corresponding to one or more commands and the virtual machine execution result in the graphical user interface.
Optionally, in the virtual machine management method according to the present invention, the interaction unit includes one or more of a button, an option, an input unit, and an output unit.
Optionally, in the virtual machine management method according to the present invention, the receiving, by the program processing module, the interactive operation on the virtual machine generated based on the one or more interactive units includes: and the program processing module receives interactive operation on the virtual machine generated by the operation of a user on one or more interactive units through a mouse or a key.
Optionally, in the virtual machine management method according to the present invention, the interoperation with the virtual machine includes: creating virtual machine operation, checking virtual machine operation, performing snapshot operation on the virtual machine, starting the virtual machine operation, stopping running the virtual machine operation, suspending the virtual machine operation, deleting the virtual machine operation, performing hot plug operation on the virtual machine, and performing switching operation between the virtual machines.
Optionally, in the virtual machine management method according to the present invention, the interaction module is adapted to be implemented by an ncurs library.
According to an aspect of the present invention, there is provided a virtual machine management apparatus, residing in a computing device, comprising: an interaction module adapted to display one or more interaction units corresponding to one or more commands; the program processing module is suitable for receiving the interactive operation on the virtual machine generated based on one or more interactive units and converting the interactive operation on the virtual machine into a corresponding target command; and the command execution module is suitable for receiving the target command sent by the program processing module, executing the target command to generate a corresponding virtual machine execution result, and sending the virtual machine execution result to the interaction module so as to display the virtual machine execution result through the interaction module.
According to an aspect of the invention, there is provided a computing device comprising: at least one processor; a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the virtual machine management method as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the virtual machine management method as described above.
According to the technical scheme of the invention, the virtual machine management method is provided, the virtual machine management operation realized based on the command line under the character environment is packaged into one or more commands, and the interaction unit matched with each command is established on the interaction module and displayed on the interface, so that the visual management of the virtual machine is realized, a user can realize the interaction operation of the virtual machine only by operating the interaction unit on the interface, and the program processing module can convert the interaction operation of the virtual machine into the corresponding command and send the command to the command execution module for execution. Therefore, according to the implementation scheme of the invention, the interaction mode is more friendly, the operation steps of the virtual machine are simplified, the management operation efficiency of the virtual machine is improved, and the user can easily perform interaction operation on the virtual machine, so that the learning cost of the user is reduced.
Further, according to the technical scheme of the invention, the virtual machine information to be fed back related to the running state of the virtual machine is sent to the interaction module for displaying by screening the virtual machine execution result. Therefore, the output data of the virtual machine is simplified, and the running state of the virtual machine can be monitored.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a virtual machine management method 200 according to one embodiment of the invention;
FIG. 3 shows a schematic diagram of a virtual machine management apparatus 150 according to one embodiment of the invention;
FIG. 4 shows a schematic diagram of a graphical user interface of a virtual machine management apparatus according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The invention provides a visual virtual machine management method suitable for being implemented in computing equipment, which encapsulates the management operation of a virtual machine implemented based on a command line under a character environment into a command and is matched with an interaction unit displayed on an interface, so that a user can implement the interaction operation of the virtual machine and execute the corresponding command only by operating the interaction unit on the interface, thereby simplifying the operation steps of the virtual machine and ensuring that the interaction mode is more friendly.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention. As shown in FIG. 1, in a basic configuration, computing device 100 includes at least one processing unit 102 and system memory 104. According to one aspect, the processing unit 102 may be implemented as a processor depending on the configuration and type of computing device. The system memory 104 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. In accordance with one aspect, an operating system 105 is included in system memory 104.
According to one aspect, the operating system 105 is, for example, adapted to control the operation of the computing device 100. Further, the examples are practiced in conjunction with a graphics library, other operating systems, or any other application program, and are not limited to any particular application or system. This basic configuration is illustrated in fig. 1 by those components within the dashed line. According to one aspect, the computing device 100 has additional features or functionality. For example, according to one aspect, computing device 100 includes additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 1 by removable storage device 109 and non-removable storage device 110.
As stated hereinabove, according to one aspect, program modules are stored in the system memory 104. According to one aspect, the program modules may include one or more applications, the invention not being limited to the type of application, for example, the applications may include: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided applications, web browser applications, and the like. In an embodiment according to the present invention, the application program in the program module includes the virtual machine management apparatus 150, and the virtual machine management apparatus 150 is configured to execute the virtual machine management method 200 of the present invention.
According to one aspect, examples may be practiced in a circuit comprising discrete electronic elements, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, an example may be practiced via a system on a chip (SOC) in which each or many of the components shown in fig. 1 may be integrated on a single integrated circuit. According to one aspect, such SOC devices may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functions described herein may be operated via application-specific logic integrated with other components of the computing device 100 on a single integrated circuit (chip). Embodiments of the invention may also be practiced using other technologies capable of performing logical operations (e.g., AND, OR, AND NOT), including but NOT limited to mechanical, optical, fluidic, AND quantum technologies. In addition, embodiments of the invention may be practiced within a general purpose computer or in any other circuit or system.
According to one aspect, computing device 100 may also have one or more input devices 112, such as a keyboard, mouse, pen, voice input device, touch input device, or the like. Output device(s) 114 such as a display, speakers, printer, etc. may also be included. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections 116 that allow communication with other computing devices 118. Examples of suitable communication connections 116 include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel, and/or serial ports.
The term computer readable media as used herein includes computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, or program modules. System memory 104, removable storage 109, and non-removable storage 110 are all examples of computer storage media (i.e., memory storage). Computer storage media may include Random Access Memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture that can be used to store information and that can be accessed by the computer device 100. In accordance with one aspect, any such computer storage media may be part of computing device 100. Computer storage media does not include a carrier wave or other propagated data signal.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more feature sets or that has been altered in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, Radio Frequency (RF), infrared, and other wireless media.
In an embodiment in accordance with the invention, the computing device 100 is configured to perform a virtual machine management method 200 in accordance with the invention. The computing device 100 includes one or more processors, and one or more readable storage media storing program instructions that, when configured to be executed by the one or more processors, cause the computing device to perform a virtual machine management method 200 in an embodiment of the invention.
According to one embodiment of the invention, the virtual machine management apparatus 150 of the computing device 100 includes a plurality of program instructions for performing the virtual machine management method 200 of the present invention, which may instruct a processor to perform the virtual machine management method 200 according to the present invention.
FIG. 2 illustrates a flow diagram of a virtual machine management method 200 according to one embodiment of the invention. The method 200 is suitable for execution in a computing device (the aforementioned computing device 100).
In an embodiment according to the invention, the computing device 100 has a virtual machine management apparatus 150 resident therein, and the method 200 is adapted to be executed in the virtual machine management apparatus 150.
Fig. 3 shows a schematic diagram of a virtual machine management apparatus 300 according to an embodiment of the invention. As shown in fig. 3, the vm managing apparatus 150 includes an interaction module 151, a program processing module 152, and a command execution module 153, which are coupled in sequence.
It should be noted that the interaction module 151 is used for displaying information and providing one or more ways for a user to interact with the virtual machine. Among them, the interactive module 151 displays one or more interactive units corresponding to one or more commands. Specifically, the interaction module 151 may display a graphic user interface of the virtual machine management apparatus and display one or more interaction units corresponding to one or more commands in the graphic user interface.
As shown in fig. 2, the method 200 begins at step S210.
In step S210, the program processing module 152 receives the interactive operation to the virtual machine generated by the user based on one or more interactive units in the interactive module 151, converts the interactive operation to the virtual machine into a corresponding target command, and sends the target command to the command execution module 153.
Here, the generated interactive operation on the virtual machine may specifically include creating a virtual machine operation, viewing the virtual machine operation, performing a snapshot operation on the virtual machine, starting the virtual machine operation, stopping running the virtual machine operation, suspending the virtual machine operation, deleting the virtual machine operation, performing a hot plug operation on the virtual machine, performing a fast switching operation between the virtual machines, and the like.
In one embodiment, the interaction unit in the interaction module 151 may include one or more of a button, an option, an input unit, and an output unit. Here, the input means is, for example, an input box, and the output means is, for example, an output box. It should be noted that the present invention is not limited to the number, specific use, and specific implementation of each interactive unit.
In a specific implementation manner, a user can operate on one or more interaction units through a mouse or keys (including shortcut keys) to generate corresponding interaction operation on the virtual machine. That is, the program processing module 152 may receive an interactive operation on the virtual machine generated by a user operating on one or more interactive units through a mouse or a key (including a shortcut key).
Here, to further simplify the user's interaction operation, the user's operation of the interaction unit may be accomplished by a click operation as much as possible, for example, by clicking a button or an option with a mouse, or by pressing a shortcut key. In this way, the user can conveniently realize the interactive operation on the virtual machine only by clicking the operation button or option or by the shortcut key. It should be noted that, according to the aspect of the present invention, even if a switching operation is performed between a plurality of virtual machines, a user can perform the switching operation based on a simple operation (e.g., a click operation) on an interaction unit, thereby improving the switching efficiency of the virtual machines.
Subsequently, in step S220, the command execution module 153, after receiving the target command sent by the program processing module 152, generates a virtual machine execution result by executing the target command, and sends the virtual machine execution result to the interaction module 151.
Finally, in step S230, after the interaction module 151 obtains the virtual machine execution result sent by the command execution module 153, the virtual machine execution result is displayed. The interaction module 151 may display the execution result at an output unit.
FIG. 4 shows a schematic diagram of a graphical user interface of a virtual machine management apparatus according to one embodiment of the invention. The interactive module 151 displays one or more interactive units corresponding to one or more commands by displaying a graphic user interface. The interaction module 151 may display the virtual machine execution result information in an output unit in the graphic user interface.
In the embodiment of the present invention, one or more commands corresponding to one or more interactive units may be generated by encapsulating management operations of a virtual machine implemented based on a command line in a character environment. Here, the management operation of the virtual machine implemented based on the command line in the character environment may be implemented based on the virsh program. That is, according to an embodiment of the present invention, one or more commands may be generated by encapsulating the management operation of the virtual machine implemented in the virsh program based on the command line, and one or more interactive units corresponding to the one or more commands generated by encapsulating may be created at the interactive module 151. Here, virsh is a management tool for a virtualization technology KVM, and supports full-life management of the KVM by providing rich functional operations through a command line.
Accordingly, the command execution module 153 may be implemented as a virsh program. Specifically, when the command execution module 153 acquires the target command from the program processing module 152, the target command is executed essentially based on virsh, and the executed target command is the virsh command.
It should be noted that, in the present invention, the management operation of the virtual machine implemented based on the command line in the character environment is encapsulated into one or more commands, and an interaction unit matched with each command is created in the interaction module and presented on the graphical user interface, so that the user can implement the interaction operation of the virtual machine by operating the interaction unit on the graphical user interface, and the program processing module 152 may convert the interaction operation of the virtual machine into a corresponding command and deliver the command to the command execution module 153 for execution. Therefore, according to the implementation scheme of the invention, the user can carry out interactive operation on the virtual machine more easily, and the interactive mode is more friendly.
In one embodiment of the present invention, the interaction module 151 may be implemented by an ncurs library (character terminal processing library). It should be noted that ncurs is a C language development library that provides GUI application programs running in a cli environment, and may provide a character terminal processing library.
In one embodiment of the present invention, as shown in fig. 3, the program processing module 152 may execute step S225 after receiving the interactive operation generated by the user based on the one or more interactive units to the virtual machine. In step S225, the program processing module 152 generates display content in a corresponding format according to the interaction operation on the virtual machine (for example, highlights the selected content), and then transmits the display content in the corresponding format to the interaction module 151, so that the display content in the corresponding format is displayed in the graphical user interface by the interaction module 151.
In an embodiment of the present invention, after the command execution module 153 executes the target command to generate a corresponding virtual machine execution result, the virtual machine execution result may be further filtered to delete the invalid information, so as to obtain the virtual machine information to be fed back, which is valid for the user. Subsequently, the virtual machine information to be fed back is sent to the interaction module 151, so that the virtual machine information to be fed back is displayed by the interaction module 151. In this way, the output data of the virtual machine can be displayed in a simplified manner.
Specifically, the virtual machine information to be fed back may include, for example, a key log related to the running state of the virtual machine and/or error information. The interaction module 151 may display the virtual machine information to be fed back in the form of a popup. In other words, after acquiring the to-be-fed back virtual machine information (the key log and/or the error information) sent by the command execution module 153, the interaction module 151 may generate a popup window based on the to-be-fed back virtual machine information, and superimpose the popup window on the graphical user interface for display. Therefore, the user can be reminded to check the key logs and/or the error information related to the running state of the virtual machine, so that the running state of the virtual machine can be monitored.
According to the virtual machine management method 200 of the present invention, the management operation of the virtual machine implemented based on the command line in the character environment is encapsulated into one or more commands, and the interaction unit matched with each command is created in the interaction module and displayed on the interface, so that the visual management of the virtual machine is implemented, the user can implement the interaction operation of the virtual machine by operating the interaction unit on the interface, the program processing module can convert the interaction operation of the virtual machine into the corresponding command, and the command is delivered to the command execution module for execution. Therefore, according to the implementation scheme of the invention, the interaction mode is more friendly, the operation steps of the virtual machine are simplified, the management operation efficiency of the virtual machine is improved, and the user can easily perform interaction operation on the virtual machine, so that the learning cost of the user is reduced.
Further, according to the technical scheme of the invention, the virtual machine information to be fed back related to the running state of the virtual machine is sent to the interaction module for displaying by screening the virtual machine execution result. Therefore, the output data of the virtual machine is simplified, and the running state of the virtual machine can be monitored.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the mobile terminal generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the virtual machine management method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Moreover, those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense with respect to the scope of the invention, as defined in the appended claims.

Claims (12)

1. A virtual machine management method, executed in a computing device comprising an interaction module, a program processing module, and a command execution module, the interaction module being adapted to display one or more interaction units corresponding to one or more commands, the method comprising the steps of:
the program processing module receives interactive operation on the virtual machine generated based on one or more interactive units, converts the interactive operation on the virtual machine into a corresponding target command, and sends the target command to the command execution module;
the command execution module executes the target command to generate a corresponding virtual machine execution result and sends the virtual machine execution result to the interaction module;
and the interaction module displays the execution result of the virtual machine.
2. The method of claim 1, further comprising the steps of:
and the program processing module generates display content in a corresponding format according to the interactive operation on the virtual machine and sends the display content to the interactive module for display.
3. The method of claim 1 or 2, wherein sending the virtual machine execution results to the interaction module comprises:
screening the virtual machine execution result to delete invalid information to obtain the virtual machine information to be fed back;
and sending the information of the virtual machine to be fed back to the interaction module.
4. The method according to claim 3, wherein the virtual machine information to be fed back comprises a key log and/or error information; the step of displaying the information of the virtual machine to be fed back by the interaction module comprises the following steps:
and the interaction module generates a popup based on the information of the virtual machine to be fed back and displays the popup.
5. The method of any one of claims 1-4, wherein the interaction module is adapted to display a graphical user interface and to display one or more interaction units corresponding to one or more commands and the virtual machine execution results in the graphical user interface.
6. The method of any one of claims 1-5,
the interaction unit comprises one or more of a button, an option, an input unit and an output unit.
7. The method of any one of claims 1-6, wherein the program processing module receiving the interactive operations generated on the virtual machine based on the one or more interactive units comprises:
and the program processing module receives interactive operation on the virtual machine generated by the operation of a user on one or more interactive units through a mouse or a key.
8. The method of any one of claims 1-7,
the interactive operation on the virtual machine comprises the following steps: creating virtual machine operation, checking virtual machine operation, performing snapshot operation on the virtual machine, starting the virtual machine operation, stopping running the virtual machine operation, suspending the virtual machine operation, deleting the virtual machine operation, performing hot plug operation on the virtual machine, and performing switching operation between the virtual machines.
9. The method of any one of claims 1-8,
the interaction module is adapted to be implemented by a library of ncurs.
10. A virtual machine management apparatus, residing in a computing device, comprising:
an interaction module adapted to display one or more interaction units corresponding to one or more commands;
the program processing module is suitable for receiving the interactive operation on the virtual machine generated based on one or more interactive units and converting the interactive operation on the virtual machine into a corresponding target command;
and the command execution module is suitable for receiving the target command sent by the program processing module, executing the target command to generate a corresponding virtual machine execution result, and sending the virtual machine execution result to the interaction module so as to display the virtual machine execution result through the interaction module.
11. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-9.
12. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-9.
CN202210644056.5A 2022-06-08 2022-06-08 Virtual machine management method and device and computing equipment Pending CN114840312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210644056.5A CN114840312A (en) 2022-06-08 2022-06-08 Virtual machine management method and device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210644056.5A CN114840312A (en) 2022-06-08 2022-06-08 Virtual machine management method and device and computing equipment

Publications (1)

Publication Number Publication Date
CN114840312A true CN114840312A (en) 2022-08-02

Family

ID=82574554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210644056.5A Pending CN114840312A (en) 2022-06-08 2022-06-08 Virtual machine management method and device and computing equipment

Country Status (1)

Country Link
CN (1) CN114840312A (en)

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
US20130152038A1 (en) Project management workflows
CN110688145B (en) Android MVP code automatic generation method and device, medium and electronic equipment
CN110968305A (en) Applet visualization generation method, device, equipment and storage medium
US20230035104A1 (en) Verification method, apparatus and device, and storage medium
CN114461223A (en) Code generation method and device and terminal equipment
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
US20190196794A1 (en) Visual programming method, system and terminal device
CN111399818B (en) Recommendation engine design method, recommendation engine design device, server and storage medium
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CN117075894A (en) List display method and device, computing equipment and readable storage medium
CN114840312A (en) Virtual machine management method and device and computing equipment
CN114706657A (en) Multi-platform virtual machine management interface, management method, terminal and storage medium
CN111562958A (en) Page data display management method and device
EP3992795A1 (en) Computer system executing multiple operating systems
CN110659097B (en) Language file processing method, device, equipment and storage medium
CN114756291B (en) Hardware self-adaption method and device
CN115586853B (en) Window display method, computing device and storage medium
CN112445790B (en) Report data storage method, device, equipment and medium
CN113778434A (en) Multilingual document management method, device, electronic equipment and storage medium
CN118295905A (en) Debugging method and device of closed source software package, computing equipment and storage medium
CN115185634A (en) Subsystem implementation method and computing device
CN112463214A (en) Data processing method and device, computer readable storage medium and electronic device
CN118055064A (en) Route information synchronization method, device, computing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination