For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/en/guides/public-cloud/compute/suspend-or-pause-an-instance.md.
Skip to content

Manage instance states (stop, shelve, pause)

View as Markdown

Learn how to shelve, hard stop, suspend or pause a Public Cloud instance to temporarily free resources while keeping your IP address, and understand the billing impact of each option

Objective

As part of the configuration of a high-availability infrastructure, you may need to cut access to your instances to perform different tests. OpenStack allows you to shelve, stop (shutoff), suspend or pause your instance. In each case, your IP is maintained.

Warning

In the OVHcloud Console, only Shelve / Unshelve and Hard stop (OpenStack stop, Shut Off in Horizon) are available. Suspend / Resume and Pause / Unpause are available with the OVHcloud API (v2), in Horizon and with the OpenStack API.

This guide explains how to shelve, hard stop, suspend or pause your instance.

Requirements


OVHcloud Console Access

  • Direct link:
  • Navigation path: Public Cloud > Select your project > Compute > Instances

Instructions

Warning

Scope: This guide applies to all Public Cloud instances, regardless of their billing model (hourly or monthly).

Monthly billing: For instances billed monthly, the monthly price of the instance continues to be billed regardless of the instance status. A shelved monthly instance is billed its monthly price plus the snapshot.

Note: As long as the instance is not deleted, any operation will continue to incur instance charges.

The table below allows you to differentiate the options available on your instances. Click the option of your choice below to continue reading this guide. The OpenStack action is given in brackets.

OptionMemory stateDisk dataHost resources (CPU/RAM)Resume behaviourBilling
Hard stop (stop)LostPreservedStill allocated on the hostCold boot (the OS restarts)You are billed at the same rate.
Shelve (shelve)LostSaved in a snapshot imageReleased once offloadedCold boot from the snapshot, possibly on another hostHourly instances: only the snapshot is billed. Monthly instances: the monthly price of the instance plus the snapshot.
Pause (pause)Kept in host RAMPreservedStill allocated and consumedInstant, exactly where it wasYou are billed at the same rate.
Suspend (suspend)Written to disk on the hostPreservedRAM/CPU freed on the hypervisor, allocation keptRestores the saved state, like hibernationYou are billed at the same rate.

In each case, the IP address of the instance is maintained.

Content overview

Shelve an instance

Danger

Please note that shelving an IOPS or T1/T2-180 instance will result in the loss of data on the NVMe passthrough drives.

Shelving this type of instance leads to its decommissioning from the host, and therefore from the disks in passthrough.

This option releases the resources dedicated to your Public Cloud instance, but the IP address will remain. The data on your local disk will be stored in a snapshot automatically created once the instance is shelved. Data stored in the memory and elsewhere will not be retained.

OVHcloud Console
OVHcloud CLI
OVHcloud API
OpenStack/Nova APIs
Horizon

In the left-hand menu of your Public Cloud project, click Instances under Compute.

Click on the ... button to the right of the instance you want to shelve, then click on Shelve.

In the Shelve your instance window, take note of the message and click on Confirm.

Once the process is completed, the status of your instance will appear as Shelve.

To view the snapshot, click on Instance Snapshot under Compute in the left-hand menu. A snapshot named xxxxx-shelved will now be visible.

Unshelve an instance

This option reactivates your instance so that you can continue using it. Once this is done, regular billing resumes.

Danger

Actions on the snapshot

Any actions on the snapshot other than unshelve can be very dangerous for your infrastructure in case of misuse. Once you unshelve an instance, the snapshot is automatically deleted. It is not recommended to deploy a new instance from any snapshot created as a result of shelving an instance.

OVHcloud is providing you with machines that you are responsible for. We have no access to these machines, and therefore cannot manage them. You are responsible for your own software and security management. If you experience any issues or doubts when it comes to managing, using or securing your server, we recommend that you contact a specialist service provider.

OVHcloud Console
OVHcloud CLI
OVHcloud API
OpenStack/Nova APIs
Horizon

In the left-hand menu of your Public Cloud project, click Instances under Compute.

Click on the ... button to the right of the instance, then click on Unshelve.

In the Unshelve your instance window, click on Confirm.

Once the process is completed, the status of your instance will appear as Active.

Hard stop (stop) an instance

This option stops your instance (OpenStack stop action, Shut Off in Horizon). The data on the disk is preserved, but the memory state is lost: the instance reboots when you start it again. The resources dedicated to the instance remain reserved, including the IP address, and you are still billed at the same price.

OVHcloud Console
OVHcloud CLI
OVHcloud API
OpenStack/Nova APIs
Horizon

In the left-hand menu of your Public Cloud project, click Instances under Compute.

Click on the ... button to the right of the instance you want to stop, then click on Hard stop.

In the Hard stop your instance window, take note of the message and click on Confirm.

Once the process is completed, the status of your instance will appear as Hard stop (Shutoff).

To start the instance again, click on the ... button to the right of the instance and select Start, then click on Confirm in the Start your instance window. In some cases, you might need to do a cold reboot.

Once the process is completed, the status of your instance will appear as Active.

Suspend an instance

This option suspends your instance: the memory state is written to disk on the host, and the RAM/CPU are freed on the hypervisor while the allocation is kept. When you resume the instance, the saved state is restored, like hibernation. You are billed at the same rate.

This action is not available in the OVHcloud Console: use the OVHcloud API, the Horizon interface or the OpenStack/Nova API.

OVHcloud API
OpenStack/Nova APIs
Horizon

Use the following API call, where projectId is the ID of your Public Cloud project and instanceId the ID of the instance:

With the following request body:

{
  "type": "SUSPEND"
}

To resume the instance, use the same call with the RESUME type:

{
  "type": "RESUME"
}

Pause an instance

This action is not available in the OVHcloud Console: use the OVHcloud API, the Horizon interface or the OpenStack/Nova API. It allows you to freeze your instance: the memory state is kept in the host RAM, and the instance resumes instantly, exactly where it was.

OVHcloud API
OpenStack/Nova APIs
Horizon

Use the following API call, where projectId is the ID of your Public Cloud project and instanceId the ID of the instance:

With the following request body:

{
  "type": "PAUSE"
}

To resume the instance, use the same call with the UNPAUSE type:

{
  "type": "UNPAUSE"
}

Go further

OpenStack documentation.

Join our community of users.

Was this page helpful?