Archives

turquoiseowl

Using New-VHD to create differencing disk based on AVHDX parent disk

Hi, I am trying to create a differencing VHDX disk based on a snapshot AVHDX disk.

The PowerShell command I am using is as follows:

New-VHD -Path abc.vhdx -ParentPath d:vmfs00fs00_6ccd6d16-98d2-498f-94eb-1335ab0b1558.avhdx -Differencing

which unfortunately fails saying the AVHDX extension on the parent disk is not allowed:

The file extension for 'd:vmfs00fs00_6ccd6d16-98d2-498f-94eb-1335ab0b1558.avhdx' is invalid.
Virtual hard disk for this operation must have a .vhd or .vhdx 
extension.
    + CategoryInfo          : InvalidArgument: (:) [New-VHD], VirtualizationException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.Vhd.PowerShell.Cmdlets.NewVhd
 

Preliminary research indicates that differencing disk can be based on other differencing disk, and also that AVHDX files are indeed differencing disks. Indeed, repeating the command after renaming the extension of the parent disk file from .AVHDX to .VHDX
works!

Is this a bug in the New-VHD cmdlet? Or is using an AVHDX file as the parent of a differencing disk not supported for some reason?

Also would you have any suggestion for how I can workaround the bug? Renaming the AVHDX would be problematic.

Thanks for any help.

Read full post . . . .


Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 581055 bytes) in /home/content/36/8658336/html/goquecom/wp-content/themes/WPGoqueV52/library/misc.php on line 25