I run 3 Windows Server 2022 virtual machines (VMs) on a HCI cluster as a Hyper-V guest cluster.
I now want to add another VHD set hard disk (.vhds) to the guest cluster, so I create Test.vhds in for example C:\ClusterStorage\Datastore01\VHDSets on the host cluster. The 3 guest cluster VMs can see this file, and in the Failover Cluster Manager GUI, I have no problems attaching this disk to a guest cluster VM.
When I try the same in PowerShell with:
add-VMHardDiskDrive -ComputerName '<HCI cluster node name running the guest cluster VM>' -VMName '<name of guest cluster VM>' -Path 'C:\ClusterStorage\Datastore01\VHDSet\Test.vhds'
I get the error:
Add-VMHardDiskDrive: Failed to add device 'Virtual Hard Disk'.
Failed to configure 'C:\ClusterStorage\Datastore02\vms\ATNDFHVCL01-LAB\Test.vhds': Virtual hard disk sharing must be enabled on VHD Set files.
I found no way so far to enable that 'Virtual hard disk sharing' feature if it ever exists (to my knowledge, VHD sets have this automatically), and in the Failover Cluster Manager GUI there's no option to do this, too.
Anyone knows how to successfully attach a .vhds file to a guest cluster VM?