08-27-2014 07:05 PM
I'm in the unfortunate situation of possibly having to restore a VM ina Hyper-V host. The VM is currently BSOD'ing and troubleshooting hjas been a problem, so one option I am considering is just restoring the VHD file. However I do not want to overwrite the VM (VHD + vm info) so I want to restore the VHD file to a seperate location, then tell Hyper-V Manager to point to that VHD file just so I can boot it and see if it works. If so I would then shut the virtual machine down, move the newly restored VHD file over to the proper locationi where I store VHD's on this server, and reconfig Hyper-V Manager to now point to that , renaming and moving the old (BSOD'ing) VHD file elsewhere for a bit.
I assume this is straightforward, yet when I click on my backup job (there is just one, and it covers the entire machine, VM's included) and hit the Restore button to start the wizard for that, and then the files & folders selection options, I don't see what I think I should. As I browse the Resources View and drill down into the directory structure where the file should be, I don't see it. I see only folderse at all levels, never a file on the right-side pane. Am I missing something? Is there some kind of limited view? Do restores that relate to even just the raw VHD file itself somehow get masked or something so I can't simply restore just the file and have to do the whole VM or something?
Thanks for your help.
Solved! Go to Solution.
08-28-2014 07:16 AM
Hi again! REspectfully, I had to clear the Mark as Solution status on pkh's post.
I found that it seems I can indeed restore just the VHD file. But I need your advice before trying it. Here's what I've done:
Here's where I get confused. Attached to this post is a screenshot of the scrreen I am at. I am not sure what to fill in for the Server Name, Drive (which oddly has no Browse button), and Server Path.
My goal is just to point the file and restore it to a folder on the server someplace, not to rename it, nor register it with Hyper-V. I'd rather just swap the vhd file manually so I can test between the problem VHD file and the resetored one. There is no Help button on this wizard screen oddly. Also I removed the checkmark from the Register the virtual machine.
It keeps mentioning virtual machien but I think this is just inaccurate text labels on the screen, as all I've done in this restore process is pick the actual VHD file, not the full VM with environment files.
Here's the screenshot:
08-27-2014 07:19 PM
08-27-2014 10:05 PM
If the backup was made to disk or if it is duplicated from tape to disk, an IMG directory on the disk storage containing the .vhd file will be present.
You can try importing this .vhd, however consistency is not guaranteed. Preferred restore method is as suggested above.
08-28-2014 06:03 AM
Thanks guys. Very odd to me that .vhd files aren't simply restorable but I'm glad to know the method preferred. In BE if I highlight the backup job I think in the servers view or something, I hit the Search button at the top. I put in the filename, and it finds 407 instances of the file but only in the BE temp folder, under a subfolder called Deltas I think it was. I didn't do anything with those since instead of x:\TEMP, the actual vhd is found within x:\Hyper-V\VMs or what not.
Anyway, ok so I will look at the full VM restore. Since this is an AD server and there are two AD servers in this domain, does restoring one AD server to itself 2 days old cause problems? Nothing new was done so I'm not worried about data/users, etc being lost, but will the server restore and not cause problems with AD overall?
Thank you guys.
08-28-2014 06:04 AM
No disk-based backups unfortunately, just your everyday LTO tape drive :(
08-28-2014 07:16 AM
Hi again! REspectfully, I had to clear the Mark as Solution status on pkh's post.
I found that it seems I can indeed restore just the VHD file. But I need your advice before trying it. Here's what I've done:
Here's where I get confused. Attached to this post is a screenshot of the scrreen I am at. I am not sure what to fill in for the Server Name, Drive (which oddly has no Browse button), and Server Path.
My goal is just to point the file and restore it to a folder on the server someplace, not to rename it, nor register it with Hyper-V. I'd rather just swap the vhd file manually so I can test between the problem VHD file and the resetored one. There is no Help button on this wizard screen oddly. Also I removed the checkmark from the Register the virtual machine.
It keeps mentioning virtual machien but I think this is just inaccurate text labels on the screen, as all I've done in this restore process is pick the actual VHD file, not the full VM with environment files.
Here's the screenshot:
08-28-2014 11:20 AM
If you select register virtual machine, the process will error out. Just choose a directory to restore your file to and it will restore there.
08-28-2014 01:08 PM
Process completed, file restored. Curious but why would the Register virtual machine feature error out? Is that something Symantec needs to fix?
08-29-2014 12:26 AM
In any case I think you did make a mistake the first time you tryed it. Are you sure that you selected the hyper-v host machine and then clicked restore ? I think you selected the hyper-v guest you wanted to restore and then clicked restore so that would be why it was not showing Hyper-v data first time.
It's like wanting to do a single item restore on a vmware machine but you select the vcenter or esx instead. Doing this it will not show you single files but only entire VMs.
Correct me if I am wrong, I don't have any experience restoring Hyper-v.
08-29-2014 05:18 AM
The VHD file is just a file, there isn't any metadata to register with the server. If you wanted to mount the VHD you would go through disk management in the operating system.
If you used the agent for hyper-v to do the backup, then you would have all the metadata, and thus could register the VM with the hyper-v host.
08-29-2014 05:39 AM
Understood. Yeah I do have the agent licensed. Biut in this case it appears the old VHD file itself was somehow partially corrupt. I need to make a new post on this actually so somebody can get their Mark as Solution bonus.
08-29-2014 05:43 AM
No problem. I know on my first try whatever I did was definitely wrong, but in my post with the screenshot, that's the process to get the VHD file restored. Confirmed it as well by actually doing it successfully.
08-29-2014 06:03 AM
Good that you got it working. Please mark a solution so that other people who have this problem can see the solution easier.