Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for virtual machine to execute host machine instruction

A host machine and virtual machine technology, applied in the field of cloud computing, can solve problems such as difficult configuration of virtual machines, and achieve the effect of reliable design principles, wide application prospects, and simple structure

Pending Publication Date: 2022-05-06
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the defect in the prior art that when configuring the virtual machine through the host machine, when configuring the host name or performing multiple configurations, one or even multiple restarts are required, which makes it difficult to perform relevant configurations inside the virtual machine. The present invention provides a virtual A method and a device for executing instructions of a host machine by a computer, so as to solve the above-mentioned technical problems

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
  • Method and device for virtual machine to execute host machine instruction
  • Method and device for virtual machine to execute host machine instruction
  • Method and device for virtual machine to execute host machine instruction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Such as figure 1 As shown, the present invention provides a method for a virtual machine to execute instructions of a host machine, comprising the following steps:

[0077] S1. Set the host machine and the virtual machine to communicate through the serial port device;

[0078] S2. The host machine initiates an instruction task, checks whether the instruction service of the virtual machine is running, and sends the instruction task to the virtual machine when the instruction service is running;

[0079] S3. The virtual machine starts the instruction service, and the instruction service reports the instruction service status to the host computer and monitors the instruction task sent by the host computer, and when the instruction task is monitored, persists the instruction task information into the instruction task file;

[0080] S4. The command service checks the local command task file, executes the command task according to the command task file, updates the command t...

Embodiment 2

[0083] Such as figure 2 As shown, the present invention provides a method for a virtual machine to execute instructions of a host machine, comprising the following steps:

[0084] S1. Set the host machine and the virtual machine to communicate through the serial port device; the specific steps are as follows:

[0085] S11. Obtain the serial port device of the virtual machine, and set the serial port device of the virtual machine as a communication interface;

[0086] S12. Setting the host machine and the virtual machine to communicate through the communication interface;

[0087] S2. The host computer initiates an instruction task, and checks whether the instruction service of the virtual machine is running, and sends the instruction task to the virtual machine when the instruction service is running; the specific steps are as follows:

[0088] S21. The host computer initiates an instruction task, and records the instruction task information into the database;

[0089] S22...

Embodiment 3

[0106] Such as image 3 As shown, the present invention provides a method for a virtual machine to execute instructions of a host machine, comprising the following steps:

[0107] S1. Set the host machine and the virtual machine to communicate through the serial port device; the specific steps are as follows:

[0108] S11. Obtain the serial port device of the virtual machine, and set the serial port device of the virtual machine as a communication interface;

[0109] S12. Setting the host machine and the virtual machine to communicate through the communication interface; the host machine and the virtual machine perform data transmission through the serial port device of the virtual machine;

[0110] S2. The host computer initiates an instruction task, and checks whether the instruction service of the virtual machine is running, and sends the instruction task to the virtual machine when the instruction service is running; the specific steps are as follows:

[0111] S21. The h...

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 provides a method and device for a virtual machine to execute a host machine instruction, and belongs to the technical field of cloud computing. The method comprises the steps that a host machine and the virtual machine are set to communicate through serial port equipment; the host machine initiates an instruction task, checks whether the instruction service of the virtual machine runs or not, and sends the instruction task to the virtual machine when the instruction service runs; the virtual machine starts an instruction service, reports an instruction service state to the host machine, monitors an instruction task sent by the host machine, and persists instruction task information into an instruction task file when the instruction task is monitored; and the instruction service checks and executes the instruction task according to the local instruction task file, updates the instruction task information in the instruction task file, and reports the updated instruction task information to the host machine. According to the method, the host machine initiates the instruction task, the virtual machine creates the instruction service to monitor and execute the instruction task of the host machine, and instruction interaction between the host machine and the virtual machine is achieved.

Description

technical field [0001] The invention belongs to the technical field of cloud computing, and in particular relates to a method and a device for a virtual machine to execute instructions of a host machine. Background technique [0002] In a cloud computing environment, some configuration instructions are often sent to the virtual machine through the host computer. These instructions are used to perform specific configurations in the virtual machine, such as configuring network addresses, configuring host names, and adding users. Sometimes the configuration in the virtual machine is more than one configuration operation, such as configuring the domain name. This operation requires the virtual machine to first configure the network address, host name, and DNS before configuring the domain name. In addition, for the virtual machine of the Windows system, the configuration of the host name needs to restart the system to take effect, and in the process of executing the configuratio...

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 Applications(China)
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45562Y02D10/00
Inventor 翟辉刘为峰
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD