Page cover

stop

The cldkctl vm stop command powers off a virtual machine (VM) by specifying its name. This command gracefully shuts down the VM, ensuring data integrity before releasing allocated resources. It is typically used to stop a running VM to reduce resource usage when the VM is not needed. Ensure that you have the necessary permissions to perform this operation and that the VM is currently in a Running state before stopping it.

Usage

cldkctl vm stop [name] [flags]

Aliases

stop, turn-off, off, shutdown

Steps

Follow the steps below to run and view the result of this command:

  1. Run the following command in your terminal and replace <vm_name> with your virtual machine name.

./cldkctl vm stop <vm_name>
  1. Ensure that you have the appropriate permissions and that the VM is currently in a Running state.

  2. The command initiates a graceful shutdown, preserving data integrity and releasing allocated resources.

  3. Once the shutdown is complete, a confirmation message “Virtual Machine stopped” appears in the terminal

Flags

This command supports global flags. Refer to the Global Flags section for details

Flag
Description

-h, --help

Help for the vm stop command.

-n, --namespace string

Specifies the cluster namespace to scope the operation.

-p, --project string

Specifies the project ID.

Last updated