Rebooting VMs

You can reboot a running virtual machine (VM) at any time if needed, which corresponds to rebooting the operating system. When rebooting, the VM restarts without going through the stop and start process.

Rebooting a VM Using Cockpit v2

  1. In the VMs dashboard, check the box of the running VM you want to reboot.

    Multiselection is available.

    The VM is selected.

  2. Click IconReboot Reboot.
    The REBOOT VMS dialog box appears.

  3. Click Reboot.
    The selected VM is rebooted.

Rebooting VMs Using OSC CLI

The RebootVms command reboots one or more virtual machines (VMs).
This operation sends a reboot request to one or more specified VMs. This is an asynchronous action that queues this reboot request. This action only reboots VMs that are valid and that belong to you.

Request sample
$ osc-cli api RebootVms --profile "default" \
    --VmIds '["i-12345678"]'

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • VmIds: One or more IDs of the VMs you want to reboot.

The RebootVms command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Rebooting VMs Using oapi-cli

The RebootVms command reboots one or more virtual machines (VMs).
This operation sends a reboot request to one or more specified VMs. This is an asynchronous action that queues this reboot request. This action only reboots VMs that are valid and that belong to you.

Request sample
$ oapi-cli --profile "default" RebootVms \
    --VmIds '["i-12345678"]'

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • VmIds: One or more IDs of the VMs you want to reboot.

The RebootVms command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Rebooting Instances Using AWS CLI

Before you begin: Install and configure AWS CLI. For more information, see Installing and Configuring AWS CLI.

To reboot one or more instances, use the reboot-instances command following this syntax:

Request sample
$ aws ec2 reboot-instances \
    --profile YOUR_PROFILE \
    --instance-ids i-87654321 i-12345678 \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

The specified instances reboot.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.