Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and storage medium for enabling qemu-kvm virtual machine to execute arbitrary commands

A technology for executing commands and virtual machines, applied in the computer field, can solve problems such as inability to execute arbitrary commands, lack of convenience, and strong skills, and achieve strong operability and practicality, wide application range, and strong skills

Active Publication Date: 2020-11-13
SF TECH
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The existing qemu-kvm virtual machine injection method either cannot directly execute arbitrary commands in the virtual machine, or can execute arbitrary commands, but is highly skilled, cumbersome and lacks convenience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and storage medium for enabling qemu-kvm virtual machine to execute arbitrary commands
  • A method and storage medium for enabling qemu-kvm virtual machine to execute arbitrary commands
  • A method and storage medium for enabling qemu-kvm virtual machine to execute arbitrary commands

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for ease of description, only parts related to the invention are shown in the drawings.

[0037] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0038] Such as figure 1 As shown, this embodiment provides a method for injecting arbitrary commands into a qemu-kvm virtual machine, including:

[0039] S1: Add the qemu-guest-agent format interface in the system that can compile the source code;

[0040] S2: The host calls the qemu-guest-agent...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for enabling a qemu-kvm virtual machine to execute any command, and a storage medium. The method comprises the steps of adding an interface in a qemu-guest-agent format to a system capable of compiling a source code; calling the interface in the qemu-guest-agent format by a host machine, and inputting a to-be-executed command and command parameters; transmitting the command and the command parameters into the virtual machine through a qemu-guest-agent communication mechanism in the virtual machine; obtaining the command and the command parameters by a qemu-geust-agent daemon process in the virtual machine; executing the command in the virtual machine; and judging whether the command is returned successfully or not. According to the technical scheme, complete control of the host machine to the virtual machine and personalized customization of the virtual machine are realized; the virtual machine is enabled to execute any internal command; and convenienceand quickness are achieved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and a storage medium for enabling a qemu-kvm virtual machine to execute arbitrary commands. Background technique [0002] Among the qemu-guest-agent injection methods implemented by the current qemu-kvm virtual machine, there are only a few injection methods. When using any of the injection methods on the host machine, the qemu-guest-agent daemon process inside the virtual machine can only implement a corresponding function, which is equivalent to only executing a corresponding fixed command inside the virtual machine. That is, an injection method corresponds to a fixed command, and the host machine cannot directly allow the virtual machine to complete any command, and it is impossible to realize complete control of the virtual machine and personalized customization of the virtual machine conveniently and quickly. [0003] Among the current injection methods, the more...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455
CPCG06F9/4552G06F9/45558
Inventor 邸卫
Owner SF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products