none
How do i restore a windows backup VHD?

    Question

  • I made a backup of a virtual machine running on Hyper-V. It's Windows Server 2008. The backup is a VHD. How do I do a full system restore on this?

    I've tried booting to a windows installation disc and doing a restore from a share, but that's resulting in an error message: "The selected system image cannot be restored in this recovery environment"

    Any ideas?


    Makolyte, Software Developer + System/Network Admin

    Wednesday, August 29, 2012 6:46 PM

Answers

  • Hi,

    Base on my research, I’m afraid that you cannot restore system from the VHD files created by Windows Server Backup, It doesn't have a boot loader.

    Please look over here for further troubleshooting.

    Can I use the VHD file created by Windows Backup with Hyper-V

    http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/fcf18723-fd53-47c8-9e9e-e501446c5e66/

    Create Hyper-V VM from .vhd file created by wbadmin.exe (Windows Backup) - Boot Failure

    http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/5b407046-2001-412f-b602-ef15e4a7067e

    If you have any additional questions, please let me know.

    Best regards,


    Friday, August 31, 2012 6:03 AM
  • Hi Makolyte,

    Like what Jeff has said, you can't restore directly from a VHD.

    What you can do is:

    1. Create a Virtual machine (VM) using Hyper-V.

    2. Connect the VHD to the VM

    3. Boot the VM.

    If you are trying to restore the data from a VM to a physical disk, please read this link. However, do it at your own risk. Make sure you have a backup of the VHD file before you attempt this.


    Jabez Gan [MVP] - http://www.msblog.org Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643

    Saturday, September 01, 2012 11:51 AM
  • Hi,

    Sorry for the confusion. It is not possible to boot the VHD directly as it does not have a boot loader.

    You can attach the VHD to disk management to recover the data - that's the farthest you can go.

    To access the Attach VHD option, single click on Disk Management (inside Computer Management), and once it has loaded up the other disks, right click on Disk Management and you should have the option to Attach VHD.


    Jabez Gan [MVP] - http://www.msblog.org Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643

    Saturday, September 01, 2012 3:37 PM
  • On checking, you are on Windows Server 2008 and not Windows Server 2008 R2.

    The Attach VHD is only avail in 2008 R2.

    For Windows Server 2008, you can use Virtual PC 2007. Or, install 7Zip and use that to open the VHD. For me, I prefer to use 7Zip.


    Jabez Gan [MVP] - http://www.msblog.org Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643

    • Proposed as answer by Jabez Gan Saturday, September 01, 2012 11:56 PM
    • Marked as answer by Jeff RenModerator Sunday, September 02, 2012 2:06 PM
    Saturday, September 01, 2012 3:46 PM

All replies

  • Hi,

    Did you export the VM’s or have any snapshots?

    If you stored the VHD files in a location not on the system disk and then you can simply create a new virtual machine configurations and point to the existing VHD's.

    Best regards,

    Jeff Ren




    Thursday, August 30, 2012 2:18 AM
  • The VHD file is from a Windows Backup, it's not a virtual machine's VHD.

    Makolyte, Software Developer + System/Network Admin

    Thursday, August 30, 2012 2:08 PM
  • Hi,

    Base on my research, I’m afraid that you cannot restore system from the VHD files created by Windows Server Backup, It doesn't have a boot loader.

    Please look over here for further troubleshooting.

    Can I use the VHD file created by Windows Backup with Hyper-V

    http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/fcf18723-fd53-47c8-9e9e-e501446c5e66/

    Create Hyper-V VM from .vhd file created by wbadmin.exe (Windows Backup) - Boot Failure

    http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/5b407046-2001-412f-b602-ef15e4a7067e

    If you have any additional questions, please let me know.

    Best regards,


    Friday, August 31, 2012 6:03 AM
  • Ok so i have the backup, now how do i restore it?

    I've tried restoring from Windows Recovery on bootup, but it says it's not able to restore. Am I possibly trying to restore using the wrong OS disc or something?


    Makolyte, Software Developer + System/Network Admin

    Friday, August 31, 2012 12:12 PM
  • Hi Makolyte,

    Like what Jeff has said, you can't restore directly from a VHD.

    What you can do is:

    1. Create a Virtual machine (VM) using Hyper-V.

    2. Connect the VHD to the VM

    3. Boot the VM.

    If you are trying to restore the data from a VM to a physical disk, please read this link. However, do it at your own risk. Make sure you have a backup of the VHD file before you attempt this.


    Jabez Gan [MVP] - http://www.msblog.org Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643

    Saturday, September 01, 2012 11:51 AM
  • Do you mean attach the VHD to the VM during creation? I tried that, but said the VHD was corrupt / unable to read.

    [Edit] What about attaching the VHD to disk management and doing a CHKDSK or the VHD repair tool?

    -The problem is in the host i see no "Attach VHD" option in Disk Management, and haven't figured out how to do that.

    -Secondly, if i can actually attach it, i can probably pull off the data i need (exchange database) and do an Exchange 2007 rebuild on an isolated server/network.


    Makolyte, Software Developer + System/Network Admin


    • Edited by Makolyte Saturday, September 01, 2012 2:40 PM clarify
    Saturday, September 01, 2012 2:36 PM
  • Hi,

    Sorry for the confusion. It is not possible to boot the VHD directly as it does not have a boot loader.

    You can attach the VHD to disk management to recover the data - that's the farthest you can go.

    To access the Attach VHD option, single click on Disk Management (inside Computer Management), and once it has loaded up the other disks, right click on Disk Management and you should have the option to Attach VHD.


    Jabez Gan [MVP] - http://www.msblog.org Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643

    Saturday, September 01, 2012 3:37 PM
  • No problem, i forgot to include that detail in my original post :)

    In Disk Management, under Actions, i'm not seeing an option to "Attach VHD". I see this on other servers, and even my own computer (Win7). Is there some setting that will allow me to enable this option?

    Note: i just thought, if i can't do it from the local server, i could simply share the VHD, and attach it to a server that has the "Attach VHD" option. That would be VERY slow, so hopefully i can do it from the local server somehow.


    Makolyte, Software Developer + System/Network Admin


    • Edited by Makolyte Saturday, September 01, 2012 3:41 PM
    Saturday, September 01, 2012 3:41 PM
  • On checking, you are on Windows Server 2008 and not Windows Server 2008 R2.

    The Attach VHD is only avail in 2008 R2.

    For Windows Server 2008, you can use Virtual PC 2007. Or, install 7Zip and use that to open the VHD. For me, I prefer to use 7Zip.


    Jabez Gan [MVP] - http://www.msblog.org Contributing Author for: (Sybex) MCTS: Windows Server 2008 Applications Infrastructure Configuration Study Guide: Exam 70-643

    • Proposed as answer by Jabez Gan Saturday, September 01, 2012 11:56 PM
    • Marked as answer by Jeff RenModerator Sunday, September 02, 2012 2:06 PM
    Saturday, September 01, 2012 3:46 PM
  • Thanks, i will try that. Thanks again for all your help.

    Makolyte, Software Developer + System/Network Admin

    Saturday, September 01, 2012 3:49 PM
  • Hi,

    As You  use System restore and get nothing ,i suggest you to try to use any third party application to restore data of VHD.The main reason of this  is not possible to boot the VHD directly as it does not have a boot loader.

    You can get more Information from here http://www.virtualdiskrecovery.com/

    Wednesday, December 19, 2012 10:12 AM
  • I would like to suggest you external IT recommended application. It completely helped me to do 100% safe and secure restoring process of VHD file from Virtual disk without any data harm. Get more information: http://www.vhddatarecovery.net/windows-hyperv-recovery/
    Saturday, April 12, 2014 5:54 AM

  • Amazing VHD recovery software, you can easily recover your corrupted as well as deleted, lost and formatted VHD file data in working form.

    For more information visit here :- http://www.filesrecoverytools.com/vhd-data-recovery.html

    Wednesday, August 27, 2014 7:41 AM