Method for backing up and restoring ESXi virtual machine based on VMware SDKs

A virtual machine and backup technology, applied in the direction of responding to the generation of errors, redundancy in the operation of data error detection, instruments, etc., can solve the problems of non-recovery, data damage, etc., and achieve the effect of data backup.

Pending Publication Date: 2022-03-11
成都傲梅科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method for backing up and restoring an ESXi virtual machine based on VMware SDKs, so as to solve the problem in the prior art proposed in the background technology that when using the virtual host Exsi, the data is destroyed and cannot be restored

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 for backing up and restoring ESXi virtual machine based on VMware SDKs
  • Method for backing up and restoring ESXi virtual machine based on VMware SDKs
  • Method for backing up and restoring ESXi virtual machine based on VMware SDKs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] Such as figure 1 , figure 2 , image 3As shown, a method for backing up an ESXi virtual machine based on VMware SDKs, including backup and restoration, wherein the backup includes a full backup;

[0044] A full backup consists of the following steps:

[0045] Start step S1: start the Exsi management tool;

[0046] Virtual machine step S2: use the Exsi management tool to connect to the host Exsi of the virtual machine to be backed up, and obtain the virtual machine object to be backed up through the virtual machine name;

[0047] Creating a snapshot step S3: using the virtual machine object to create a backup snapshot through the snapshot transaction, and obtaining and saving the virtual machine configuration information VirtualMachineConfigInfo by returning the obtained backup snapshot object;

[0048] Information acquisition step S4: Obtain all disk access addresses of the virtual machine from the acquired VirtualMachineConfigInfo, and notify the disk read and wri...

Embodiment 2

[0064] Such as Figure 4 As shown, a method for restoring an ESXi virtual machine based on VMware SDKs includes the following steps:

[0065] Start step C1: start the Exsi management tool;

[0066] Virtual machine connection step C2: connect to the Exsi host of the virtual machine to be restored through the Esxi management tool, obtain the virtual machine object to be backed up through the virtual machine name; close the virtual machine through the shutdown transaction method PowerOffVM_Task; and then use the virtual machine object Create virtual machine snapshots;

[0067] Information acquisition step C3: Obtain all the configuration information of the virtual machine at this point in time from the VirtualMachineConfigInfo saved at the backup point to be restored, and reconstruct the virtual machine configuration parameter VirtualMachineConfigSpac; after the above operations are completed, the Esxi management tool notifies the disk read and write tools, Restoration work beg...

Embodiment 3

[0075] The present embodiment provides concrete inventive concept of the present invention:

[0076] Since vSphere Management SDK only supports C# and Java, and the development language of VDDK for reading and writing disks is C language, it is necessary to use C# to develop Esxi management tools based on vSphere Management SDK and use C / C++ to develop disk reading and writing tools based on VDDK.

[0077]The Esxi management tool is responsible for the sufficient conditions for creating backups, including connecting to Exsi, accessing and obtaining various status and configuration information of the virtual machine, switching on and off the virtual machine, and creating snapshots. To connect to Exsi, you need to specify the link address of Exsi's vimService - usually https: / / Exsi's IP / sdk / vimService, account name - usually root, password and other information, and bind to generate a ChannelFactory object of vSphere Management SDK , and create a new channel through the method C...

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 backing up an ESXi virtual machine based on VMware SDKs, which comprises the steps of backing up and restoring, and is characterized in that the backing up comprises a complete backing up; the complete backup comprises the following steps of: starting step S1; a virtual machine step S2; a step S3 of creating a snapshot; an information acquisition step S4; a backup step S5; a cleaning step S6; and the step S7 is ended. According to the method and the device, the problem that a large amount of data needs to be backed up when the ESXi virtual machine is used is solved. Meanwhile, the invention further provides an ESXi virtual machine data recovery method, and when the ESXi virtual machine data is damaged, data recovery can be completed in data backup achieved through complete backup, incremental backup and differential backup. The problems of data backup and restoration when the ESXi virtual machine is used are effectively solved.

Description

technical field [0001] The invention belongs to the technical field of computer backup and restoration, in particular to a method for backing up and restoring an ESXi virtual machine based on VMware SDKs. Background technique [0002] With the use of virtual host Exsi, enterprises often face the problem of data recovery after the virtual machine is destroyed. And data recovery just relies on data backup, so the enterprise also increases with each passing day for the backup of virtual host Exsi and restore demand, face this demand, so the present invention provides a kind of method based on the SDK backup that VMware provides restores Exsi virtual machine. Contents of the invention [0003] The purpose of the present invention is to provide a method for backing up and restoring an ESXi virtual machine based on VMware SDKs, so as to solve the problem in the prior art proposed in the background art that when using the virtual host Exsi, the data is destroyed and cannot be res...

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): G06F11/14
CPCG06F11/1446G06F11/1484
Inventor 袁翔
Owner 成都傲梅科技有限公司
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