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

A method and device for implementing a stateless virtual machine

An implementation method and virtual machine technology, applied in the field of stateless virtual machine implementation methods and devices, can solve problems such as resource occupation, data leakage, and data retention, and achieve the effects of reducing operating costs, improving effective utilization, and fast and efficient processes

Active Publication Date: 2021-08-06
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Some users now need to quickly restore the content and status of the operating system to support specific application environments, such as school teaching computer rooms, test environments in software development, and system application environments in public places. Most of these application scenarios are for temporary use. There is no need to save personal data. The existing technology generally uses a physical recovery card, uses physical hardware to restore the contents of the operating system, or uses software to backup and restore a certain disk partition in the operating system, but the cost of physical hardware in the existing technology Too high, each machine needs to be equipped with a corresponding physical recovery card, and the software can only back up and restore the contents of a certain partition, and it also takes up a lot of resources, causing the operating system to run slowly. Leakage, bad for data security

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 device for implementing a stateless virtual machine
  • A method and device for implementing a stateless virtual machine
  • A method and device for implementing a stateless virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Such as figure 1 As shown, the present invention provides a method for realizing a stateless virtual machine, comprising the following steps:

[0039] S1. Create a virtual disk, create several first snapshots according to the virtual disk, and mark each of the first snapshots as a first restore point;

[0040] S2. Obtain user information, the virtual disk information, and first restore point information, and create a second snapshot;

[0041] S3. Create a virtual machine configuration file according to the second snapshot, and create and run a virtual machine according to the virtual machine configuration file;

[0042] S4, delete the first snapshot created based on the virtual disk to be restored, create a third snapshot based on the virtual disk, mark the third snapshot as a second restore point, and point the second restore point to the pre-running snapshot to be restored first restore point.

[0043] In step S2, the acquisition of user information, virtual disk i...

Embodiment 2

[0049] Such as figure 2 As shown, step S1 in a method for implementing a stateless virtual machine in the technical solution of the present invention specifically includes:

[0050] S11, use the qemu-img command provided by qemu-kvm to create a virtual disk of type qcow2;

[0051] S12, mount the virtual disk created under the virtual machine, allocate memory and CPU for the virtual machine, and mount the operating system iso image file to be installed;

[0052] S13, using the operating system iso image file to install the operating system on the created virtual disk, and run the virtual machine;

[0053] S14. Create several first snapshots by using the snapshot function of qemu-img, and mark each of the first snapshots as a first restore point.

[0054] In step S13, use the operating system iso image file to install the operating system on the virtual disk created. After the operating system is installed, you can install the required application software and make correspond...

Embodiment 3

[0059] Such as image 3 As shown, the technical solution of the present invention also provides a device for implementing a stateless virtual machine, including:

[0060] The first creation module 101, creates a virtual disk, creates several first snapshots according to the virtual disk, and marks each of the first snapshots as a first restore point;

[0061] The obtaining module 102 obtains user information, the virtual disk information and first restore point information, and creates a second snapshot;

[0062] The second creation module 103 creates a configuration file of the virtual machine according to the second snapshot, and creates and runs a virtual machine according to the configuration file of the virtual machine;

[0063] The delete and restore module 104 deletes the first snapshot created according to the virtual disk to be restored, creates a third snapshot according to the virtual disk, marks the third snapshot as a second restore point, and sets the second res...

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

For the problems existing in the prior art, the present invention innovatively proposes an implementation method of a stateless virtual machine, utilizes the existing kvm virtualization function, uses qemu’s chained snapshot function of the disk, quickly creates a virtual machine, and After the virtual machine is used, delete the first snapshot of the existing virtual machine, and point the restore point to the new third snapshot file, so as to achieve the function of fast restoration of the operating system and realize a stateless virtual machine in the cloud platform , also proposed a stateless virtual machine implementation device, which does not rely on the software restoration in the virtual machine operating system, the whole process is fast and efficient, does not leave data, can be configured, and better protects the security of data, and at the same time the invention does not use The physical recovery card also greatly reduces operating costs and improves the effective utilization of resources in the cloud environment.

Description

technical field [0001] The invention relates to the field of virtual machines, in particular to a method and device for realizing a stateless virtual machine. Background technique [0002] With the popularization of information technology, information systems have been deployed and applied in most governments, the military, and enterprises and institutions. With the development of cloud computing, the concept of cloud and the development of virtualization technology have been deeply rooted in the hearts of the people. Some enterprises Traditional servers have been migrated to the cloud environment and delivered as virtual machines in the form of Infrastructure as a Service (IaaS). [0003] A virtual machine refers to a complete computer system that is simulated by software and has complete hardware functions and runs in a completely isolated environment. At the virtual machine level, the hardware implementation of the virtual machine is transparent to the user. The user can...

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/45558G06F2009/45562G06F2009/45575
Inventor 韩春超
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD