Welcome to Microsoft Q&A!
Thank you for providing the detailed information.
An Unmapped state in Hyper-V typically indicates that the cluster can no longer associate the VM resource with its configuration because the configuration files, such as the .vmcx file, are inaccessible or locked. In your scenario, the fact that the .vmcx file remains locked by an orphaned vmwp.exe process suggests that the Virtual Machine Worker Process did not clean up correctly after a migration or failover.
Here are a few things you can check:
- Use Process Explorer or Handle.exe from Sysinternals to identify which node and process are holding an open handle to the .vmcx file.
- Confirm that the VM is not actively running on another cluster node before taking any action. Terminating the wrong vmwp.exe process could affect a running workload.
- If the VM is confirmed to be offline and the vmwp.exe process is truly orphaned, ending that specific process is typically the least disruptive way to release the file lock.
- Once the lock has been released, refresh the cluster resource and attempt to bring the VM online. If necessary, remove and re-register the VM configuration. In Failover Cluster Manager, taking the clustered role offline and bringing it back online can also force the cluster to re-read the VM configuration.
- Review the Hyper-V-VMMS and Failover Clustering event logs for any errors related to VM registration, ownership transfer, or access to the configuration files.
Unfortunately, if the lock is being maintained by a stale kernel handle or a Hyper-V management service issue rather than an orphaned user-mode process, there may not be a supported way to release it without restarting the Hyper-V services or rebooting the host that owns the handle.
If the information provided is helpful, please click Accept Answer.
Thank you for choosing Microsoft Q&A!