In some scenarios, a virtual machine (VM) may have multiple snapshots, and there is a requirement to access data from a specific intermediate snapshot without reverting the VM to that state.
This article provides a method to safely extract data from a snapshot by cloning the corresponding snapshot disk and attaching it to a separate VM.
VMware vSphere ESXi (All Versions).
Standard snapshot "Revert" operation is destructive to the current data state of the virtual machine and require downtime or state changes that may not be acceptable for data recovery tasks.
This procedure can be performed while the virtual machine is powered on. No downtime is required.
Step 1: Identify the Snapshot Disk File
Step 2: Clone the Snapshot Disk
Example command (run on ESXi shell) (-d thin means thin provision):
vmkfstools -i /vmfs/volume/<datastore_name>/<VM_name>/<VM_name>-000002.vmdk /vmfs/volume/<datastore_name>/<VM_name>/cloned_disk.vmdk -d thin
Step 3: Create a New Virtual Machine
Step 6: Power On and Access Data
If it is necessary to copy data out over the network:
* Modify the IP address inside the guest OS to avoid conflicts
* If required, change the network adapter’s port group to an appropriate network
* Then return to vCenter and edit the VM settings
* Enable the network adapter by checking Connected