Restore Using a VHD Export into Hyper-V: Windows 7, Server 2008r2 and newer

Follow

Background

This article discusses how to attach VHD Export into Disk Management for Windows 7 , Server 2008r2 and newer. The VHD copy functions require Hyper-V manager. Follow the steps in the article Export Image to obtain the machine's recovery point in the VHD file format before you proceed.

When restoring to Hyper-V, you must use a VHD image. Hyper-V does not support VHDX.

Procedure

  1. Mount the image export in the remote web interface.


  2. Run Disk Management on the destination machine.


  3. Select Action, Attach VHD


  4. Select Browse


  5. Paste the path of the CIFS/Samba VHD Share from the image export, and click Open.


  6. Select the Hard Disk Image, and click Open.

    If boot.vhd and C.vhd are both present, select boot.vhd as the first drive, and attach C.vhd as the secondary drive. If only C.vhd is present, use C.vhd as the first drive.

    There are two reasons to add a boot and a C volume:
    • Devices do not support UEFI, so if the os volume is GPT, this is necessary.

    • It fixes virtualization failures for some MBR/BIOS agents. if the NTFS bootstrap code (used for booting) for the C:\ filesystem is corrupted, The production agents do not notice because windows uses a 'system reserved' partition for booting by default.


    boot1.jpg

  7. Select Read-only and click OK to mount the image.
    boot2.jpg

  8. When this is done successfully, Windows will mount the VHD image as a volume.


  9. The VHD is now mounted and ready to use.

    If you need to quickly recover files with filesystem permissions, use Robocopy or Richcopy. This will be a faster restore process than transferring the entire image.

    If you need a full disk image imported into Hyper-V, this process must be done on a machine with Hyper-V Manager.

Installing Hyper-V Manager

Hyper-V Manager Installation under Windows 7

Windows 7 Hyper-V Manager can only be installed on Windows 7 Enterprise, Professional, or Ultimate editions. You must first install RSAT tools for Windows 7

https://www.microsoft.com/en-us/download/details.aspx?id=7887

After this is installed go to Start – Control Panel and click on Programs.

Turn Window features on or off.

Under Remote Server Administration Tools – Role Administration Tools, find the option for Hyper-V Tools, check the checkbox and click OK.

Hyper-V Manager Installation under Windows 8 , 8.1 and 10

Go to Start – Control Panel and click on Programs and Features.

Turn Window features on or off.

Under the option for Hyper-V check the checkbox for Hyper-V Management Tools and click OK.

Importing the mounted VHD into Hyper-V

  1. To open Hyper-V Manager, click Start, point to Administrative Tools, and then click Hyper-V Manager.
  2. Click Action, New Hard Disk
  3. If you see the "Before you begin" Dialog click next

  4. Select your Destination Disk format and Click Next.
  5. Choose the Destination Disk type then click next
  6. Specify the Name and Location where to save the new disk then click Next.


  7. Select the disk or disks to copy by clicking "Copy the contents of the specified physical disk" and selecting the PhysicalDrive# that is the same Disk # as the VHD that is mounted. Then click Next. Repeat this step for all disks involved in the restore.



  8. Review the summary to make sure you selected the correct copy drive
    boot3.jpg

  9. Click finish and then a progress bar will appear for the transfer.
  10. After the transfer has completed detach the VHD from Disk Management.

 

Additional Resources


Was this article helpful?

1 out of 4 found this helpful

You must sign in before voting on this article.

Want to talk about it? Head on over to our Community Forum!