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

# Reinstall a VM

> Re-image a VM with a fresh OS template while keeping the IP, attached volumes, and specs

<sub>Updated May 8, 2026</sub>

Reinstall replaces the VM's OS disk with a fresh OS template. The VM keeps its ID, public IPv4, attached volumes, and CPU/RAM/disk specs — everything else on the OS disk is destroyed.

## Before you start

<Warning>
  Reinstall is destructive. The OS disk is wiped and **all snapshots and backups of this VM are deleted**. If you want to keep anything, take a snapshot to attached volumes or push to Object Storage first.
</Warning>

## What's preserved vs reset

| Preserved                                    | Reset                                       |
| -------------------------------------------- | ------------------------------------------- |
| Attached volumes and their data              | OS disk (everything on it)                  |
| Network configuration and IP addresses       | Installed software and configurations       |
| VM specifications (CPU, RAM, base disk size) | Root / Administrator password (regenerated) |
|                                              | Existing snapshots and backups of this VM   |

The VM is unavailable during the rebuild. **Typical duration is a few minutes**; the actual time depends on:

* **Template size** — bigger images (Windows Server, Marketplace apps with bundled software) take longer to copy than minimal Linux base images
* **Hypervisor I/O** — busier hosts copy slower; quieter ones copy faster
* **Disk size** — base disk being wiped and reprovisioned scales with size (a 25 GiB disk is faster than a 480 GiB one)
* **First boot work** — cloud-init / sysprep / OS first-boot configuration runs after the disk lands; some templates do more work on first boot than others

There's no published SLA for reinstall duration. For reference: a fresh **Ubuntu 24.04 on a 25 GiB disk** typically completes in 1–3 minutes; a **Windows Server 2022 on a 50 GiB disk** typically takes longer due to sysprep. Plan for **up to 10 minutes** in worst-case scenarios so you don't get nervous mid-rebuild. See [Storage model](/products/build/virtual-machines/concepts/storage-model) for the survival matrix across reinstall, factory reset, and delete.

## Two ways to start

### a. VM detail page → Actions tab → Change OS

Open the **Actions** tab on the VM detail page. Under **System Operations** find the **OS Reinstallation** card and click **Change OS**.

<Frame>
  <img src="https://mintcdn.com/rafftechnologiesllc/KFKEsJgQ3IuaIJdK/images/products/compute/vm/manage/reinstall-01-actions-tab.png?fit=max&auto=format&n=KFKEsJgQ3IuaIJdK&q=85&s=b2592295794744057e5fd01635d33739" alt="Actions tab on VM detail page with the OS Reinstallation card and Change OS button" width="2000" height="1373" data-path="images/products/compute/vm/manage/reinstall-01-actions-tab.png" />
</Frame>

### b. Instance list row → Actions menu → Reinstall OS

In the **Instances** list, open the row's **⋮** menu and pick **Reinstall OS**. Both paths open the same 3-step dialog.

<Frame>
  <img src="https://mintcdn.com/rafftechnologiesllc/KFKEsJgQ3IuaIJdK/images/products/compute/vm/connect/connect-via-ssh-01-actions-menu.png?fit=max&auto=format&n=KFKEsJgQ3IuaIJdK&q=85&s=6600c2a45a6265bd7347f28266327f53" alt="Row Actions menu showing Reinstall OS option" width="2000" height="1196" data-path="images/products/compute/vm/connect/connect-via-ssh-01-actions-menu.png" />
</Frame>

## Step 1 — Select OS

Pick the new OS template (or stay on the same one for a clean reinstall) and the version.

<Frame>
  <img src="https://mintcdn.com/rafftechnologiesllc/KFKEsJgQ3IuaIJdK/images/products/compute/vm/manage/reinstall-02-select-os.png?fit=max&auto=format&n=KFKEsJgQ3IuaIJdK&q=85&s=43927a05872fb5ff53a296ef904dfa13" alt="Reinstall Step 1: OS grid with Ubuntu, Fedora, Debian, CentOS, AlmaLinux, Rocky Linux, FreeBSD, Alpine Linux, openSUSE, and a Version dropdown" width="2000" height="1136" data-path="images/products/compute/vm/manage/reinstall-02-select-os.png" />
</Frame>

Same OS lineup as VM creation. Switch between Linux distros, jump from Linux to Windows, or stay put for a clean reinstall. The **Marketplace** tab is also available for pre-built application images.

## Step 2 — Authentication

Pick how you'll log in to the rebuilt VM.

<Frame>
  <img src="https://mintcdn.com/rafftechnologiesllc/KFKEsJgQ3IuaIJdK/images/products/compute/vm/manage/reinstall-03-authentication.png?fit=max&auto=format&n=KFKEsJgQ3IuaIJdK&q=85&s=4b8b4341ec67e5acc512b4fc4251f291" alt="Reinstall Step 2: three authentication options — SSH Key, Set Password, Email Me Password" width="2000" height="1139" data-path="images/products/compute/vm/manage/reinstall-03-authentication.png" />
</Frame>

| Option                | What it does                                                               |
| --------------------- | -------------------------------------------------------------------------- |
| **SSH Key**           | Pick an existing key from your saved list (same keys used at VM creation)  |
| **Set Password**      | Type your own root / Administrator password                                |
| **Email Me Password** | Platform generates a secure password and emails it to your account address |

## Step 3 — Confirm

Review what's preserved and reset, tick the acknowledgement box, and click **Reinstall OS**.

<Frame>
  <img src="https://mintcdn.com/rafftechnologiesllc/KFKEsJgQ3IuaIJdK/images/products/compute/vm/manage/reinstall-04-confirm.png?fit=max&auto=format&n=KFKEsJgQ3IuaIJdK&q=85&s=2519e67c6957b8fb47fe56279c60095a" alt="Reinstall Step 3: confirmation listing preserved/reset items and the 1-5 minute unavailability warning" width="2000" height="1139" data-path="images/products/compute/vm/manage/reinstall-04-confirm.png" />
</Frame>

## After reinstall

* The VM transitions `provisioning` → `booting` → `active` — typically a few minutes; up to \~10 for larger templates / Windows / large disks.
* Public IPv4 is unchanged — DNS records still point at the right place.
* Connect with the new credentials (your SSH key, the password you set, or the emailed password).
* Attached volumes are still attached but may need re-mounting; the new OS won't have your old `/etc/fstab`.

## Reinstall vs other options

| Goal                                                | Use                                                                                                                                                                                                      |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Clean OS reset, keep IP and specs                   | **Reinstall**                                                                                                                                                                                            |
| Same OS, just a clean state                         | **Reinstall** with the same template                                                                                                                                                                     |
| Switch between Linux and Windows                    | **Reinstall** with the new family                                                                                                                                                                        |
| Recover from misconfiguration without wiping the OS | [Reset password](/products/build/virtual-machines/quickstart-guides/reset-password) + [VNC console](/products/build/virtual-machines/quickstart-guides/connect-via-ssh#3-vnc-console-graphical-fallback) |
| Fully start over with a new VM                      | [Delete](/products/build/virtual-machines/quickstart-guides/delete-vm) and [Create](/products/build/virtual-machines/quickstart-guides/create-a-vm)                                                      |

## Next steps

<CardGroup cols={2}>
  <Card title="Create a snapshot" icon="camera" href="/products/build/virtual-machines/quickstart-guides/create-snapshot">
    Capture state before reinstalling.
  </Card>

  <Card title="Connect via SSH" icon="terminal" href="/products/build/virtual-machines/quickstart-guides/connect-via-ssh">
    Reconnect after the rebuild.
  </Card>
</CardGroup>
