Hi there,
I have an Ubuntu running about 15 months on Hyper-V when suddenly its stops working, saying "The storage where the virtual hard disk is located does not support virtual hard disk sharing.".
So, I deleted the VM and VHDs, removed Hyper-V, added again. Removed all config files under ""C:\ProgramData\Microsoft\Windows\Hyper-V". But the problems stills. I don't use clustered servers and have nothing related installed.
Tried to create just a simple VM, but the error persists.
PS C:\Users\Administrator> NEW-VM –Name “VM” –MemoryStartupBytes 2048MB –Path F:\VHD\ Name State CPUUsage(%) MemoryAssigned(M) Uptime Status ---- ----- ----------- ----------------- ------ ------ VM Off 0 0 00:00:00 Operating normally PS C:\Users\Administrator> New-VHD -Path F:\VHD\HardDrive\Testmachine.vhdx -SizeBytes 10GB -Dynamic New-VHD : Failed to get the disk information. The storage where the virtual hard disk is located does not support virtual hard disk sharing. At line:1 char:1 + New-VHD -Path F:\VHD\HardDrive\Testmachine.vhdx -SizeBytes 10GB -Dynamic+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (Microsoft.Hyper...l.VMStorageTask:VMStorageTask) [New-VHD], Virtualizatio nOperationFailedException+ FullyQualifiedErrorId : OperationFailed,Microsoft.Vhd.PowerShell.NewVhdCommand PS C:\Users\Administrator> Add-VMHardDiskDrive -VMName VM -path "F:\VHD\HardDrive\Testmachine.vhdx" Add-VMHardDiskDrive : 'VM' failed to add device 'Virtual Hard Disk'. (Virtual machine ID A452F062-C8EE-40A7-8BBD-0A61B9A5BA44) The storage where the virtual hard disk is located does not support virtual hard disk sharing. 'VM': Cannot get information for attachment 'F:\VHD\HardDrive\Testmachine.vhdx'. (Virtual machine ID A452F062-C8EE-40A7-8BBD-0A61B9A5BA44) The storage where the virtual hard disk is located does not support virtual hard disk sharing. At line:1 char:1 + Add-VMHardDiskDrive -VMName VM -path "F:\VHD\HardDrive\Testmachine.vhdx"+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Add-VMHardDiskDrive], Virtual izationOperationFailedException+ FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.AddVMHardDiskDriveCommand
Thanks and regards,