> 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](https://docs.i3d.net/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](https://docs.i3d.net/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
