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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com