Share via

root\virtualization\v2 ExportSystemDefinition AVHDX

richealnull 41 Reputation points
2021-07-16T09:27:22.587+00:00

I use root\virtualization\v2 ExportSystemDefinition , I only want to export the disk configuration file, if I do not choose to export the disk, it will generate AVHDX files, I cannot delete them
https://learn.microsoft.com/zh-cn/windows/win32/hyperv_v2/exporting-the-configuration-of-a-virtual-machine
That's my choice
exportSettingData["CopySnapshotConfiguration"] = 1;
exportSettingData["CopyVmRuntimeInformation"] = false;
exportSettingData["CopyVmStorage"] = false;
exportSettingData["CreateVmExportSubdirectory"] = true;
exportSettingData["CaptureLiveState"] = 0;
I can get the configuration file for it, but it will have an AVHDX file in the disk directory

i need help,What should I do

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

Answer accepted by question author

Anonymous
2021-07-19T02:07:07.08+00:00

Hi Richeal,
Generally speaking,to export the vmcx file is like to take a snapshot of the vm at the moment you took the action. The vmcx file you get would be the configuration information at that certain point. Thus,there would be data difference,so that the avhdx file would be created in case you want to restore the vm to that certain point.

Thanks for your understanding.
Best Regards,
Danny

-----------------------------

If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Anonymous
    2021-07-19T02:18:21.13+00:00

    Hi Richeal,
    To merge the avhdx files manually you can refer to this article:
    https://www.nakivo.com/hyper-v-backup/merge-hyper-v-snapshots-step-step-guide/
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Thanks for your time,
    Best regards,
    Danny

    Was this answer helpful?


Your answer

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