reboot
The cldkctl vm reboot command restarts a virtual machine (VM) by specifying its name. This command performs a graceful reboot, shutting down and restarting the VM while preserving its current configuration and resources. Ensure that you have the appropriate permissions and that the VM is currently in a Running state before performing this operation. If the VM is not running, the command will fail with an error message indicating that the VM cannot be rebooted.
Usage
cldkctl vm reboot [name] [flags]Aliases
reboot, restartSteps
Follow the steps below to run and view the result of this command:
Run the following command in your terminal and replace <vm_name> with your virtual machine name.
./cldkctl vm reboot <vm_name>Ensure that the virtual machine is currently Running before executing the command.
The system performs a graceful reboot, stopping and restarting the VM while keeping its configuration intact.
If the reboot is successful, a confirmation message “Virtual Machine rebooted” will appear in the terminal.
If the VM is not running, an error message similar to the following will appear:
✘ Error: failed to reboot virtual machine: Operation cannot be fulfilled...
VM is not running
Flags
-h, --help
Help for the vm reboot command.
-n, --namespace string
Specifies the cluster namespace to scope the operation.
-p, --project string
Specifies the project ID.
Last updated
