Skip to main content

VM lifecycle

Overview

A VM's lifecycle is the sequence of states it moves through from creation to deletion. After being created, a VM is repeatedly started and stopped during operation; once deleted, it is gone permanently.


State flow

Start: Idle → Allocating → Booting → Running
Stop: Running → Terminating → Idle
Delete: Idle → Deleted

What each state means, and billing

The VM billing below applies to on-demand and spot. Reserved instances are billed at the reserved rate for the contract duration, regardless of state.

StateMeaningVM billing
IdleNo active allocation; can be started
AllocatingJust after start; reserving resources in the zone
BootingResources reserved; bringing the VM up
RunningOperating normally
TerminatingShutdown in progress
DeletedPermanently deleted
Stopping does not pause storage and public IP billing

Stopping pauses only the VM's compute charges. Attached block storage and public IPs continue to be billed until you delete them.


VM state vs allocation state

Internally, a VM carries two states at once.

VM status

The state of the VM resource itself — whether it has an active allocation and whether it has been deleted.

ValueMeaning
idleNo active allocation
allocatedHas an active allocation
deletedPermanently deleted

idle / allocated only surface in a few screens (such as the eligibility check when attaching block storage, or the list of VMs that belong to a PFS). On most screens the portal shows the label derived from the allocation state below.

VM allocation status

The phases a single start request (allocation) moves through as it starts, runs, and ends. The state label you see in the portal is based on this value.

ValuePhasePortal label
(none)No allocationIdle
queuedStart request waitingAllocating
assignedScheduler has allocated resourcesAllocating
takenAgent has taken over and is bootingBooting
startedRunningRunning
terminatingShutdown in progressTerminating
terminatedShutdown complete(Cleaned up; returns to Idle)

State transition diagram

User action VM status Allocation status
idle

Start ──────────────▶

allocated ──────────▶ queued (Allocating)
│ (scheduler)

assigned (Allocating)
│ (agent)

taken (Booting)
│ (agent)

started (Running)

Stop ───────────────────────────────────▶

terminating (Terminating)
│ (agent)

idle ◀─────────── terminated (Cleaned up; returns to Idle)

Diagnostic state

In addition to the lifecycle above, a monitoring diagnostic state (Unhealthy / Unknown) may also be shown. This reflects the result of agent and GPU health checks and is independent of the VM lifecycle. For resolution steps see VM diagnostic state.


Next steps