Cant create a checkpoint when using Shared Disks (VHDS) in Hyper-V

Alberto Medina 6 Reputation points
2022-08-10T22:46:15.39+00:00

Hi all,

when I try to create a checkpoint for a VM that use shared disks (vhds) on Hyper-V, I get the following error:

230165-error-hyper-v.png

The error says that "because one or more shareable VHXD are attached", but the VM does not have any VHDX disk, other that the VHDS share disk. When I remove this shared disk, the checkpoint is done without errors.

I'm using Windows Server 2019. Isn't Hyper-V Checkpoint compatible with VHDS disks?

Regards,

Alberto Medina

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Server | User experience | Other
{count} vote

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,931 Reputation points
    2022-08-11T15:34:46.343+00:00

    Hi,

    VHD shared disks are not compatible with snapshots. You have to remove them in order to complete a snapshot.

    I hope this answers your question.

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

    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.

  2. Chidanand H S 6 Reputation points
    2023-02-22T09:13:57.23+00:00

    The way to create checkpoint when VM has shared disk is different.

    1.Create VM Group

    New-VMGroup -Name "Group1" -GroupType VMCollectionType

    2.Add VM to above created VM group

    $VM1=Get-VM -Name "MyVM1"

    Add-VMGroupMember -Name "Group1" -VM $VM1

    NOTE: With these commands, just have one VM group in system

    3.Create checkpoint:

    $collectionSnapshotService = Get-WmiObject -Namespace Root\Virtualization\v2 Msvm_CollectionSnapshotService

    $Collection = Get-WmiObject -Namespace Root\Virtualization\v2 Msvm_VirtualSystemCollection

    $collectionSnapshotService.CreateSnapshot($Collection , $null, 32768) 

    4.Apply checkpoint (try when VM is off, faced some issues when VM is ON):

    $collectionSnapshotService = Get-WmiObject -Namespace Root\Virtualization\v2 Msvm_CollectionSnapshotService

    $Collection = Get-WmiObject -Namespace Root\Virtualization\v2 Msvm_VirtualSystemCollection

    $collectionSnapshotService.ApplySnapshot($Collection) 

    5.Delete the checkpoint:

    $collectionSnapshotService = Get-WmiObject -Namespace Root\Virtualization\v2 Msvm_CollectionSnapshotService

    $Collection = Get-WmiObject -Namespace Root\Virtualization\v2 Msvm_SnapshotCollection|? "CollectionID" -eq "9aafffbe-4645-4247-99e9-95caf81796b2"

    $collectionSnapshotService .DestroySnapshot($Collection) 

    1. Remove vm from vmgroup

    $VM1=Get-VM -Name "MyVM1"

    Remove-VMGroupMember -Name "Group1" -VM $VM1

    7.Delete VM Group

    Remove-VMGroup -Name "Group1"

    I hope it is helpful for you.

    0 comments No comments

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.