File-based method for communication between virtual machine and host machine

A communication method and virtual machine technology, which are applied in the field of file-based virtual machine and host communication, can solve the problems of a large number of virtual machines, difficulty in ensuring the consistency of internal files, and errors in human operation, so as to improve user experience. , the effect of maintaining integrity and data consistency

Inactive Publication Date: 2017-02-22
G CLOUD TECH
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] First, the virtual machine client environment is kept secret, and it is almost impossible for operation and maintenance personnel to manually update files to the virtual machine, which brings difficulties to system upgrades
[0004] Second, human operations are prone to errors, causing certain risks to customer business data
[0005] The third is that the number of virtual machines is large, which brings a lot of workload to the operation and maintenance upgrade
[0006] Fourth, the number of virtual machines is large, and the consistency of internal files is difficult to guarantee

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
  • File-based method for communication between virtual machine and host machine
  • File-based method for communication between virtual machine and host machine
  • File-based method for communication between virtual machine and host machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] See figure 1 Shown, be the basic process of the present invention; Mainly comprise the following steps:

[0030] Step 1: Create a virtual machine for the qemu communication channel, and configure the channel binding path through libvirt;

[0031] Step 2: Install the qemu serial proxy service to the virtual machine and start it;

[0032] Step 3: Read the content of the file, and then perform Base64 encryption on the content;

[0033] Step 4: Open the specified path file in the virtual machine through the serial agent;

[0034] Step 5: Transfer the content to the virtual machine, and decrypt the ciphertext through Base64;

[0035] Step 5: Write to the specified path file in the virtual machine;

[0036] Step 6: Close the file stream;

[0037] Step 7: The file upload is complete.

[0038] Encryption and decryption code:

[0039]

[0040]

[0041] Read file command:

[0042] virsh qemu-agent-command i-xxxxx'{"execute":"guest-file-open",

[0043] "arguments": ...

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 relates to the field of cloud computing and network technologies, especially to a file-based method for communication between a virtual machine and a host machine. Serial channel communication between a virtual machine and a physical machine is kept by using a qemu-guest-agent tool and a file content is encrypted to prevent coding during the communication process; a writable file path in the virtual machine is opened by using the qemu-guest-agent tool; and then the encrypted content is decrypted and then the decrypted content is written into the file, thereby realizing communication between the physical machine and the virtual machine in a file manner. According to the method provided by the invention, a cloud platform can update the file inside the virtual machine, thereby keeping function completeness and data consistency of the virtual machine; and thus the internal environment of the virtual machine owned by the client can be updated without the need to transfer any service, thereby enhancing the user experience.

Description

technical field [0001] The invention relates to the field of cloud computing and network technology, in particular to a file-based communication method between a virtual machine and a host computer. Background technique [0002] With the increasing development of the cloud computing industry, there are more and more virtual machines on the cloud platform, and the technology is constantly updated. It is a big difficulty for the existing virtual machine update, which will bring the following problems: [0003] First, the virtual machine client environment is kept secret, and it is almost impossible for operation and maintenance personnel to manually update files to the virtual machine, which brings difficulties to system upgrades. [0004] The second is that human operations are prone to errors, causing certain risks to customer business data. [0005] The third is that the number of virtual machines is large, which brings a lot of workload to the operation and maintenance up...

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): H04L29/08G06F9/455G06F9/445
CPCH04L67/06G06F8/65G06F9/45558H04L67/5681
Inventor 张志江杨松季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products