When you stop a virtual machine to transition it into a SHUTOFF state, billing continues as the resources it utilizes remain exclusively reserved for you. To stop billing costs, make sure the virtual machine is either HIBERNATED or deleted.
When you stop a virtual machine to transition it into a SHUTOFF state, billing continues as the resources it utilizes remain exclusively reserved for you.
To stop billing costs, make sure the virtual machine is either HIBERNATED or deleted.
You won't incur charges for transition states like HIBERNATING or RESTORING, and there are no charges for a VM in the ERROR state resulting from failed operations.
How to change the state of your virtual machines within Hyperstack:
In Hyperstack, you can change the state of your virtual machines using these steps:
-
Go to the details page of the VM you want to modify as illustrated below, and hover your cursor over the "More Options V" dropdown in the top right corner of the window to see the VM state-changing actions available for execution on the virtual machine.
-
Select the VM state-changing action based on your needs.
- Stop - Transitions your virtual machine into a SHUTOFF state.
- Hard Reboot - Restarts the operating system and all its running programs.
- Hibernate this VM - Transitions your virtual machine into a HIBERNATED state.
- Delete - Permanently deletes a virtual machine.
Changing VM state using the Infrahub API:
The Infrahub API can be used to HIBERNATE or DELETE your virtual machine, refer to the instructions available here.
To avoid data loss, before modifying your virtual machines (hibernate, resize, or delete), back up the data from the temporary storage of the current session, known as the ephemeral disk, to one or more Shared Storage Volumes (SSVs). See the instructions below:
How to save your workload data to an SSV:
VM data can be stored by utilizing Shared Storage volumes (SSVs).
-
Create a volume either through Hyperstack, or by using the Infrahub API's "Create volume" endpoint.
-
Attach and mount the volume to your virtual machine, achieved either through Hyperstack or by using the "Attach volumes to virtual machine" Infrahub API endpoint.
-
Once the volume is attached to your virtual machine, you can proceed to move or copy the data from the ephemeral disk to the shared storage volume, saving your data.
-
With the data now saved on the volume, you can modify the state of the virtual machine without the risk of data loss.
References:
- Infrahub Docs | States and Billing Status of Virtual Machines
- Infrahub Docs | Manage your virtual machines
- Hyperstack | My Virtual Machines