How to restore data from Hyper-v AVHD checkpoint

Mohamed Soliman Sharaf Gaber 0 Reputation points
2023-04-29T01:30:38.8366667+00:00

i'm facing challenge to restore data from Hyper-v VM checkpoint AVHD, i've tried the PowerShell merge and even the console merge, both ways are succeeded but unfurtunatly the data not restored to parent disk, is there any way to export the data from AVHD by any tool,

i've tried windows disk management to attach the AVHD after change the file type to VHD, but i couldn't set volume and latter using DiskPart, that AVHD is linux OS and i beleive there is a way to convert the disk or any other solution

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-04-29T03:11:13.4233333+00:00

    If you have already tried merging the AVHD checkpoint and still cannot restore the data to the parent disk, there are a few other options you can try.

    One option is to export the data from the AVHD file to a new virtual hard disk (VHD) file. You can do this using the Disk2VHD tool from Sysinternals. This tool allows you to create a VHD file from an existing disk, including an AVHD checkpoint.

    To use Disk2VHD, follow these steps:

    1. Download and install the Disk2VHD tool from the Sysinternals website.
    2. Open Disk2VHD and select the AVHD file as the source disk.
    3. Choose a destination folder and filename for the new VHD file.
    4. Select the volumes you want to include in the VHD file. Make sure to select the Linux OS volume.
    5. Click "Create" to start the export process.

    Once the export process is complete, you should have a new VHD file containing the data from the AVHD checkpoint. You can then attach the VHD to a new virtual machine and access the data.


  2. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-04-29T03:11:50.64+00:00

    Another option is to convert the AVHD file to a VHD file and then try to attach and restore the data from the VHD file. To do this, you can use the Convert-VHD PowerShell cmdlet. Here's an example command:

    Convert-VHD -Path C:\path\to\AVHD\file.avhd -DestinationPath C:\path\to\VHD\file.vhd

    Once the conversion is complete, you can try attaching the VHD file to a new virtual machine and accessing the data.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.