> For the complete documentation index, see [llms.txt](https://docs.i3d.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.i3d.net/compute/flexvm/vm-lifecycle-and-states.md).

# VM Lifecycle and States

A VM moves through a series of states from creation to deletion. The current state is reported in the `status` field of the VM object, which you can retrieve with `GET /v3/flexVM/clouds/{cloudUuid}/vms/{vmUuid}`.

## VM states

| Status         | Description                                                          |
| -------------- | -------------------------------------------------------------------- |
| `provisioning` | The VM is being created and resources are being allocated on a Node. |
| `created`      | The VM has been created but has not yet started.                     |
| `starting`     | The VM is booting.                                                   |
| `running`      | The VM is powered on and operational.                                |
| `stopping`     | The VM is shutting down.                                             |
| `stopped`      | The VM is powered off. Its disks are retained.                       |
| `paused`       | The VM is suspended, with its state held in memory.                  |
| `failed`       | The VM entered an error state during provisioning or operation.      |
| `deleting`     | The VM is being removed and its disks are being wiped.               |
| `deleted`      | The VM has been removed.                                             |

## Typical lifecycle

A newly created VM transitions through `provisioning` → `created` → `starting` → `running`.

From `running`, you change a VM's state by issuing commands (stop, reboot, and so on) — see [Managing VMs](/compute/flexvm/managing-vms.md). Stopping a VM moves it through `stopping` → `stopped`; starting it again returns it through `starting` → `running`.

Deleting a VM moves it through `deleting` → `deleted` and immediately wipes its local LVM disk and any NVMe passthrough disk. See [Creating and Deleting a VM](/compute/flexvm/creating-and-deleting-a-vm.md).

{% hint style="info" %}
A VM in the `failed` state cannot be recovered. Delete it and create a new one. If failures persist, contact i3D.net support.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.i3d.net/compute/flexvm/vm-lifecycle-and-states.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
