| Previous | Next |
| STATUS_HV_ACCESS_DENIED | STATUS_HV_OPERATION_DENIED |
STATUS_HV_INVALID_PARTITION_STATE
The partition lifecycle does not allow the requested transition
STATUS_HV_INVALID_PARTITION_STATE means the partition exists, but it is not in a state where this particular operation is legal. Hyper-V partition lifecycle is stateful: a child partition is created, configured, initialized, activated, finalized, and deleted through defined transitions.
Distinguish this status from an invalid partition ID. Here the identifier may be correct, yet a create/configure/start/save/restore request is being made too early, too late, or during a transition. Logging only the final state can hide a race, so record the preceding lifecycle operation and whether it completed or was canceled.
Diagnostic record
- The target partition ID, current state, requested operation and preceding state transition.
- Whether virtual processors or guest memory have already been created or withdrawn.
- Concurrent host-management actions such as stop, reset, save, restore, or delete.
- The caller’s expected lifecycle state and the synchronization used to enforce it.
References
- Microsoft: virtualization-host partition lifecycle
- Microsoft: Hyper-V hypercall interface
- Linux source: Hyper-V guest initialization
Looking for a different code? Search another status or error code.