Restoring Thin-Provisioned VHD Exports to Microsoft Hyper-V

This article describes the process for attaching a VHD export to a Windows host as a mounted volume and exporting its data to a thin-provisioned Microsoft Hyper-V virtual drive.

To restore a VHD to Microsoft Hyper-V with thick provisioning, see Restoring Thick-Provisioned VHD Exports to Hyper-V.

Environment

  • Datto SIRIS
  • Datto ALTO
  • Microsoft Hyper-V
    • Windows Server 2008
    • Windows Server 2008 R2
    • Windows Server 2012
    • Windows Server 2012 R2
    • Windows Server 2016
    • Windows Server 2019
    • Windows Server 2022
    • Windows Server 2025

Description

This article provides two methods for restoring thin-provisioned VHD exports. The Alternate method listed second is not compatible with Microsoft Windows 2019 & 2022, but we have included it as an alternative that you can use with other Windows versions if desired.

During this process, you will mount a restore, create a new, dynamically-allocated virtual volume in Hyper-V, and then copy the contents of the exported VHD to the new volume.

This article uses screenshots that may vary depending on the platforms and versions being used. Follow the steps outlined below.

  1. Mount an image export on your Datto device by following the steps in the Exporting to a Network Share section of the Export Image article. Make a note of the CIFS/Samba VHD Share path your appliance provides once the restore is mounted.

  2. Launch Hyper-V Manager from Start > Administrative Tools > Hyper-V Manager.

  3. From Hyper-V Manager, click Action > New > Hard Disk.

  1. If you see a Before You Begin dialog, click Next.

  2. Select the destination disk format and then click Next.

    If you are unsure whether you should create a VHD or VHDX Image Export, refer to this Microsoft article(external link) for OS compatibility.

  1. Choose the destination Disk Type, and then click Next.

  1. Specify a name for the virtual disk and the location to save it to, and then click Next.

  1. Select the disk or disks to copy by clicking Copy the contents of the specified virtual hard disk and browsing to the CIFS/Samba VHD Share path your appliance provided in step 1, then select the image file. Repeat these steps for all volumes that you need to restore.

NOTE   If you recieve an error when attempting to access the share path, it may be due to Windows security policy settings for SMB. You may need to adjust group policy settings. See Guest access in SMB2 and SMB3 disabled by default in Windows (external link)

  1. Review the summary to ensure that the virtual hard disk is configured correctly. When you are ready to proceed with disk creation, click Finish.

  1. A progress bar showing the status of the transfer will appear.

Alternate method

NOTE  This alternate method will not work on Server 2019 & 2022 hosts and could result in Incorrect function (0xc8007001) errors on Windows 2019 & 2022 systems.

Troubleshooting

Additional Resources