Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Activate the VPN if you are outside the CNAF offices.
  2. Take note of the location of your private key, or go to the folder where it is located.
  3. Remember the FloatingIP address for your instance.
  4. Use the SSH command to make a secure connection to the instance. For example:

    Code Block
    languagebash
    themeConfluence
    titleConnect to istance
    $ ssh -i <key_path>/<key_name> -l <operating_system_users> <FloatingIP>


  5. At the prompt, type yes.

Connect to istance

Track usage for instances

...

Manage an instance

  1. Log in to the dashboard.
  2. Select the appropriate project from the drop down menu at the top left.
  3. On the Project tabthe Project tab, open the Compute tab and click Overview category.
  4. To query the instance usage for a month, select a month and click Submit (at the bottom of the page).
  5. To download a summary, click Download CSV Summary
  6. Instances category.
  7. By clicking the menu list of an instance, you can perform various actions:
    1. You can resize or rebuild an instance.
    2. You can also choose to view the instance console log, edit instance or the security groups.
    3. Depending on the current state of the instance, you can pause, resume, suspend, soft or hard reboot, or terminate it.

Let's see some examples.

Create an instance snapshot

A snapshot of a Virtual Machine is an image which preserves the disk state of that running instance. Snapshots can be used e.g. to backup your instances, or to migrate your instances to another cloud.

  1. Log in to the dashboard.
  2. Select the appropriate project from the drop down menu at the top left.
  3. On the Project tab, open the Compute tab and click the Instances category.
  4. Select the instance from which to create a snapshot.
  5. In the actions column, click Create Snapshot.
  6. In the Create Snapshot dialog box, enter a name for the snapshot, and click Create Snapshot.

The Images category shows the instance snapshot. To launch an instance from the snapshot, select the snapshot and click Launch. Proceed with launching an instance.

...

Stopping and Starting Istance

Pause Instance/Unpause Instance allows for temporary suspension of the VM. The VM is kept in memory but it is not allocated any CPU time.
Suspend Instance/Resume Instance stores the VM onto disk and recovers it later. This is faster than stop/start and the VM returns to the status is was when the suspend was performed as opposed to a new boot cycle.

Info
titleWarning

The cleanest way to shutdown (or reboot) an instance is however to log on the VM and issue from the shell the shutdown or reboot command. In fact if the Soft Reboot Instance or Hard Reboot Instance or Shut Off Instance actions are chosen, there could be problems with networking when the VM is later restarted.

Track usage for instances

You can track usage for instances for each project. You can track costs per month by showing meters like number of vCPUs, disks, RAM, and uptime for all your instances.

  1. Log in to the dashboard.
  2. Select the appropriate project from the drop down menu at the top left.
  3. On the Project tabthe Project tab, open the Compute tab and click InstancesOverview category.
  4. To query the instance usage for a month, select a month and click Submit (at the bottom of the page).
  5. To download a summary, click Download CSV SummaryBy clicking the menu list of an instance, you can perform various actions:
  6. You can resize or rebuild an instance.
  7. You can also choose to view the instance console log, edit instance or the security groups.
  8. Depending on the current state of the instance, you can pause, resume, suspend, soft or hard reboot, or terminate it. Although, the cleanest way to shutdown (or reboot) an instance is to log on the VM and issue from the shell the shutdown or reboot command.