?
Solved

Recover from VHD File - VM - Hyper-V

Posted on 2014-04-28
6
Medium Priority
?
450 Views
Last Modified: 2014-11-12
Hi,

Here is the scenario:

VM had driver issues
restored back to older version via previous snapshot
VM working and put required content back into server

After doing the above, we realised that there was a folder that we needed, now that the restore has happened via snapshot we cannot retrieve these files.

I have noticed that when I open the VHD file there is a folder called [DELETED] I was getting really happy thinking the files were in here but it was not the case. The file was opened using 7zip. This folder is not visable when attaching it.

I have another file with the extension .AVHD which is currently in use (which I believe is the differential file that looks at the parent VHD file). When I try to open the file via 7zip there is another file within called the .mbr file. I cannot seem to open this file and view its contents.

Do you guys suggest what can be done to retrieve the content that would have been within: C:\Program Files (x86)\

Any help will be appreciated.

Regards

introlux
0
Comment
Question by:introlux
  • 3
  • 3
6 Comments
 
LVL 124
ID: 40027844
When you reverted the Snapshot, you "went back in time" and hence all files that have been created since the snapshot was created "have been lost".

Those missing files and folders are located in the AVHD file.

It's possible you could get them back by merging the AVHD with the current parent disk but all changes would be lost in the current VM.

I would recommend making an entire copy of the current VM, with it's AVHD, and Merging this content with parent, and then open the VM, and recover the files you require.

You will not be able to extract the files from within the AVHD files.
0
 

Author Comment

by:introlux
ID: 40027890
So to get an understanding here, even though I didn't take a snapshot of the current state, I reverted back in time as you call it. You are now saying those files are still there?

I have copied the parent and AVHD file onto my desktop. Will I be able merge these two files and retrieve those lost files? If so, how will I be able merge the files together.

Thanks in advance for the help on this.

Introlux
0
 
LVL 124
ID: 40027991
You will need to use Hyper-V to complete the merge.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:introlux
ID: 40028327
I have just merged the files and there is no sign of the old files. I can see the new files on the parent file now.

So that means the files are lost then?
0
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 40028891
Yes, they are lost.
0
 

Author Closing Comment

by:introlux
ID: 40196429
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
In this article will go through how to backup a vPostgres DB from a broken vCenter Appliance and restore to a new vCenter Appliance.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question