You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consistency checks fail, if disk is attached to a running VM. Only the initial push works flawlessly. Afterwards, the nodes will never achive the desired state unless the VMs are stopped every time...
Verbose logs
VERBOSE: [flamberge]: LCM: [ Start Resource ] [[VhdFile]SQL002osdiskmof]
VERBOSE: [flamberge]: LCM: [ Start Test ] [[VhdFile]SQL002osdiskmof]
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Mounting Failed. Attempting to
dismount and mount it back
The path "C:\ClusterStorage\SU1_Volume\SQL002\SQL002_OS.vhdx" is not the path to a mounted virtual hard
disk file.
+ CategoryInfo : InvalidArgument: (:) [], CimException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.Vhd.PowerShell.Cmdlets.DismountVHD
+ PSComputerName : localhost
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Alias
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] C
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Cert
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] D
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] E
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Env
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] F
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Function
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] HKCU
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] HKLM
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Variable
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] WSMan
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] :\
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] SourcePath =>
E:\ISO\RequiredModules\*
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Type => Directory
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Ensure => True
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Content =>
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] DestinationPath => Program
Files\WindowsPowerShell\Modules
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Force => False
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Attributes =>
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Recurse => True
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Testing the file with relative VHD
destination Program Files\WindowsPowerShell\Modules
VERBOSE: [flamberge]: [[VhdFile]SQL002osdiskmof] Test returned False
VERBOSE: [flamberge]: LCM: [ End Test ] [[VhdFile]SQL002osdiskmof] in 0.2030 seconds.
The PowerShell DSC resource '[VhdFile]SQL002osdiskmof' with SourceInfo '::49::13::VhdFile' threw one or more
non-terminating errors while running the Test-TargetResource functionality. These errors are logged to the ETW channel
called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
Unclear. If I understood the resource properly, I would suggest skipping the Set method entirely if the VHD has been attached to a (running) VM.
Reasoning: If the machine is already running, even if the disk is already attached, we have to assume that there should be no additional file copies, as the machine is now owned by someone else.
Operating system the target node is running
Server 2016
PowerShell version and build the target node is running
5.1
HyperVDsc version
4.0.0
The text was updated successfully, but these errors were encountered:
Problem description
Consistency checks fail, if disk is attached to a running VM. Only the initial push works flawlessly. Afterwards, the nodes will never achive the desired state unless the VMs are stopped every time...
Verbose logs
DSC configuration
Suggested solution
Unclear. If I understood the resource properly, I would suggest skipping the Set method entirely if the VHD has been attached to a (running) VM.
Reasoning: If the machine is already running, even if the disk is already attached, we have to assume that there should be no additional file copies, as the machine is now owned by someone else.
Operating system the target node is running
PowerShell version and build the target node is running
HyperVDsc version
The text was updated successfully, but these errors were encountered: