> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flex.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Your VMs

> Stop, start and delete GPU VMs, keep your data, and read VM statuses

You manage each VM from its page under **Managed Services → GPU VMs** in the [FlexAI Web Console](https://platform.flex.ai/managed/gpu-vms).

## Actions

| VM status | Actions available |
| - | - |
| Provisioning, Running | Stop, Delete |
| Waiting for GPUs | Cancel start, Delete |
| Stopped | Start, Delete |
| Failed | Delete |
| Stopping | None until it has stopped |

### Stop

Stopping releases the VM's GPUs, so a stopped VM is not billed. Your `/workspace` disk is kept, ready for when you start the VM again.

### Start

Starting a stopped VM brings it back on the same machine, with your `/workspace` as you left it. It starts as soon as that machine has enough free GPUs. Until then the VM shows **Waiting for GPUs**, which is not billed, and you can cancel the start at any time. When the GPUs free up, the VM starts and billing begins automatically.

### Delete

Deleting a VM removes it together with its disks, including `/workspace`, whether it's running or stopped. Save anything you want to keep first.

## Keep your data

A VM has two disks:

| Disk | Size | On stop | On delete |
| - | - | - | - |
| `/workspace` | 100 GiB per GPU | Kept | Deleted |
| Container disk (everything outside `/workspace`) | Depends on the machine | Erased | Deleted |

So keep code, data and results in `/workspace`, and reinstall system packages after a restart, or script them.

To keep data beyond the life of a VM, open the VM's **Data** tab and use **Save to the catalog**. That saves a folder as a FlexAI [Dataset](https://docs.flex.ai/platform-services/dataset-manager.md) or [Checkpoint](https://docs.flex.ai/platform-services/checkpoint-manager.md), which you can use in Training, Fine-tuning and Inference. The save runs in your browser, so keep the tab open until it finishes.

## Manage SSH keys

Add or remove keys at any time from the VM's **SSH keys** tab. A VM always needs at least one key, so add the new key before you remove the old one.

## Stop reasons

A stopped or failed VM's page shows why it stopped:

| Reason | What happened | What to do |
| - | - | - |
| Stopped by user | Someone in your Workspace stopped it. | Start it when you need it. |
| Balance ran out | Your prepaid balance reached zero. | Add credit, then start the VM. |
| Session limit reached | The VM reached the maximum continuous run time. | Start it again to continue. |
| GPU VM access removed | GPU VM access was turned off for your Workspace. | [Contact us](mailto:support@flex.ai). |
| GPUs were reclaimed | The machine's GPUs were taken back. | Start the VM again. |
| No free GPUs on its machine | A start couldn't get enough free GPUs. | Try again later. |
| Failed to start | The VM couldn't be created or started. | Try again, or [contact us](mailto:support@flex.ai) if it keeps happening. |
| VM was lost, VM exited | The VM stopped responding or its process ended. | Start it again, or [contact us](mailto:support@flex.ai) if it keeps happening. |

A VM can also stop for an account check, such as a pending business verification, a reached spend cap or a hold on the account. If you see one of these, [contact us](mailto:support@flex.ai) and we'll help you get running again.

## Limits

* Up to 8 GPUs per VM, depending on the machine.
* Up to 10 SSH keys when you deploy a VM.
* Up to 4 browser console tabs per person on each VM.
* To run more VMs or GPUs than your Workspace has today, [contact us](mailto:support@flex.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.