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

# Set a Maintenance Window

> Schedule a maintenance window on one machine or on many at once from the Machines page, so renters are warned before you take hardware down.

A maintenance window tells renters that you are going to take a machine down. When
you schedule one, everybody with a running or stopped instance on that machine is
notified with the start time and duration, and a warning appears on their instance
card so they can save their work.

Scheduling a window is a notification, not an action. It does not stop instances,
unlist the machine, or block new rentals. You still take the machine down yourself
when the window arrives.

<Note>
  The screenshots on this page use the redesigned **Machines** page, which is
  currently in Early Access. See [Using the classic Machines page](#using-the-classic-machines-page)
  if you have not opted in — the steps are nearly the same, but you cannot set a
  reason.
</Note>

***

## Set a window on one machine

<Steps>
  <Step title="Open the Machines page">
    Go to [Host → Machines](https://cloud.vast.ai/host/machines/) and find the
    machine you want to take down.
  </Step>

  <Step title="Open its settings">
    Click **Settings** on the machine's card.

    <Frame caption="The Settings button on a machine card">
      <img src="https://mintcdn.com/vastai-80aa3a82/yh_I7lzlXBM4O5Hs/images/set-maintenance-window-machines-page-settings.webp?fit=max&auto=format&n=yh_I7lzlXBM4O5Hs&q=85&s=ef0f3d6342f7b3d82b667ccf6b7a017a" alt="Machines page with the Settings button on a machine card circled" width="1414" height="552" data-path="images/set-maintenance-window-machines-page-settings.webp" />
    </Frame>
  </Step>

  <Step title="Go to the Machine Maintenances tab">
    The settings dialog opens on **Listing Settings**. Switch to **Machine
    Maintenances**.

    <Frame caption="The Machine Maintenances tab in the machine settings dialog">
      <img src="https://mintcdn.com/vastai-80aa3a82/yh_I7lzlXBM4O5Hs/images/set-maintenance-window-maintenances-tab.webp?fit=max&auto=format&n=yh_I7lzlXBM4O5Hs&q=85&s=977e3f1f71aac22ec0d9ece17d4ec070" alt="Machine settings dialog open on Listing Settings with the Machine Maintenances tab circled" width="1414" height="785" data-path="images/set-maintenance-window-maintenances-tab.webp" />
    </Frame>
  </Step>

  <Step title="Set the start, duration, and reason">
    Fill in all three fields:

    * **Maintenance start** — the date and time the machine goes down. It
      defaults to 24 hours from now.
    * **Duration (hours)** — how long the machine will be unavailable, as a
      whole number of hours.
    * **Reason** — what the maintenance is for. See
      [Reasons](#reasons) for the full list.

    <Frame caption="A window filled in and ready to add">
      <img src="https://mintcdn.com/vastai-80aa3a82/yh_I7lzlXBM4O5Hs/images/set-maintenance-window-form-filled.webp?fit=max&auto=format&n=yh_I7lzlXBM4O5Hs&q=85&s=3dde6a04776666b3ab5c47a366d0a0c8" alt="Maintenance start, duration, and reason filled in, with the Add button circled" width="868" height="360" data-path="images/set-maintenance-window-form-filled.webp" />
    </Frame>
  </Step>

  <Step title="Click Add">
    **Add** stays disabled until the duration is a positive whole number and a
    reason is selected. Once you click it, the window is created and renters are
    notified.

    The new window appears in the table below the form, marked **Upcoming**.

    <Frame caption="The scheduled window in the maintenance table">
      <img src="https://mintcdn.com/vastai-80aa3a82/yh_I7lzlXBM4O5Hs/images/set-maintenance-window-scheduled-table.webp?fit=max&auto=format&n=yh_I7lzlXBM4O5Hs&q=85&s=70387e917c825961928e0082abc1694a" alt="Maintenance table listing a 48 hour window marked Upcoming, with its start, duration, and reason" width="868" height="360" data-path="images/set-maintenance-window-scheduled-table.webp" />
    </Frame>
  </Step>
</Steps>

***

## Set one window across several machines

If several machines go down together — a rack, a circuit, everything behind one
switch — you can schedule a single window for all of them in one pass.

<Steps>
  <Step title="Select the machines">
    Tick the checkbox on each machine you want to include, or use **Select all**
    to take every machine in the current view. A bar appears showing how many are
    selected, with a **Bulk Edit** button on the right.

    <Frame caption="Selecting machines reveals the Bulk Edit button">
      <img src="https://mintcdn.com/vastai-80aa3a82/yh_I7lzlXBM4O5Hs/images/set-maintenance-window-bulk-select.webp?fit=max&auto=format&n=yh_I7lzlXBM4O5Hs&q=85&s=5142996088ebc1bf9afc791ae388d38e" alt="Machines page with a machine checked and the Bulk Edit button in the selection bar" width="1407" height="626" data-path="images/set-maintenance-window-bulk-select.webp" />
    </Frame>
  </Step>

  <Step title="Click Bulk Edit">
    The same settings dialog opens, titled with the number of machines selected
    instead of a single machine ID.
  </Step>

  <Step title="Schedule the window">
    Go to **Machine Maintenances** and fill in the start, duration, and reason
    exactly as above, then click **Add**. Every selected machine gets the same
    window, and renters on all of them are notified.

    The list below the form gains a **Machine** column so you can tell the
    windows apart, and a summary tells you which machines succeeded and which
    failed.
  </Step>
</Steps>

<Note>
  A bulk request covers at most 100 machines. Select fewer and repeat if you have
  more than that.
</Note>

***

## Review or cancel a window

The **Machine Maintenances** tab lists every window on the machine, past and
upcoming, with a status:

| Status        | Meaning                        |
| ------------- | ------------------------------ |
| **Upcoming**  | Scheduled, has not started yet |
| **Ongoing**   | The window is open now         |
| **Completed** | The window has passed          |

To cancel a window, click the **✕** at the end of its row. Upcoming and ongoing
windows can be cancelled; completed ones cannot.

<Warning>
  A window that Vast scheduled on your machine cannot be cancelled from this page.
  Contact support if one needs to be removed.
</Warning>

***

## Field reference

### Start time

The start must be in the future, and no more than a year out.

### Duration

Duration is recorded in whole hours, with a minimum of one. A fractional value is
rounded down, so anything under an hour becomes one hour.

### Reasons

| Reason              | Use it for                                            |
| ------------------- | ----------------------------------------------------- |
| **Power issues**    | Electrical work, UPS or PDU changes, a planned outage |
| **Internet issues** | Switch, router, uplink, or ISP work                   |
| **Disk issues**     | Replacing or rebuilding storage                       |
| **GPU issues**      | Pulling, replacing, or reseating a GPU                |
| **Updates**         | Driver, kernel, or host software upgrades             |
| **Other**           | Anything that does not fit the above                  |

***

## Using the classic Machines page

The redesigned Machines page is opt-in while it is in Early Access. To turn it on,
open [Account Settings](https://cloud.vast.ai/account/), find the **Early Access**
section, and enable **Machines page**.

<Frame caption="The Early Access toggle in Account Settings">
  <img src="https://mintcdn.com/vastai-80aa3a82/yh_I7lzlXBM4O5Hs/images/set-maintenance-window-early-access-toggle.webp?fit=max&auto=format&n=yh_I7lzlXBM4O5Hs&q=85&s=840afd094077443aa8ceedec5f6096d0" alt="Early Access section of Account Settings with the Machines page toggle" width="1613" height="876" data-path="images/set-maintenance-window-early-access-toggle.webp" />
</Frame>

You get there the same way: **Settings** on a single machine, or **Bulk Edit**
once you have selected several. The dialog is what differs. It has no tabs — the
window is set from a **Set Machine Maintenance** section partway down it — and it
has no **Reason** field, so every window scheduled there is recorded as
**Other**. Set the start date and **Duration (hours)**, then click **Schedule
Maintenance**.

Existing windows appear under **Scheduled Maintenances**, with a **Category**
column that shows the stored value rather than the label used on the redesigned
page — a window set to **Updates** reads as `software` here.

<Frame caption="Setting a window on the classic Machines page">
  <img src="https://mintcdn.com/vastai-80aa3a82/yh_I7lzlXBM4O5Hs/images/set-maintenance-window-classic-modal.webp?fit=max&auto=format&n=yh_I7lzlXBM4O5Hs&q=85&s=7242f689410af7fa4eaddcdeb4bb1e82" alt="Set Machine Maintenance section of the classic machine settings dialog" width="905" height="944" data-path="images/set-maintenance-window-classic-modal.webp" />
</Frame>

***

## Related

* [Host notifications](/host/notifications) — control how maintenance
  confirmations reach you
* [`vastai schedule maintenance`](/host/cli/schedule-maint) — schedule a window
  from the CLI
* [`vastai show maints`](/host/cli/show-maints) — list scheduled windows
* [`vastai cancel maint`](/host/cli/cancel-maint) — cancel a machine's windows
* [Upgrade the Kernel](/host/upgrade-kernel) — a task that needs a window first
