Creating Snapshots from Instance

A snapshot can be used as a backup or template for creating new instances.

Web Interface

  1. Shut off your instance by clicking the drop-down menu on the right-hand side (in Actions column) and select SHUT OFF INSTANCE

  2. Create a Snapshot by clicking the drop-down menu on the right-hand side (in Actions column) and select CREATE SNAPSHOT

  3. Give it a name and click CREATE SNAPSHOT

Command-line

See on how to set-up the command line client

  1. Find the server ID (Instance) using the command below

  2. Shut down the instance using

    $ openstack server stop <server-id> #example $ openstack server stop b5acb398-76b4-48fe-9b9a-d480636fdfd9



  3. Confirm that the server is shut-off

    $ openstack server list +--------------------------------------+--------------------------+---------+----------------------------------------+---------------------------------------------------------+--------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+---------+----------------------------------------+---------------------------------------------------------+--------------+ | b5acb398-76b4-48fe-9b9a-d480636fdfd9 | test-rebuild | SHUTOFF | Internal=172.16.101.195 | ubuntu-focal-20.04-gui | c3.small | +--------------------------------------+--------------------------+---------+----------------------------------------+---------------------------------------------------------+--------------+



  4. Use openstack server image create  to create a snapshot

    $ openstack server image create --name test-snapshot b5acb398-76b4-48fe-9b9a-d480636fdfd9 +------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | created_at | 2021-12-03T12:37:40Z | | file | /v2/images/2b9c6711-4dd8-4e5c-9edc-dd106b8319b5/file | | id | 2b9c6711-4dd8-4e5c-9edc-dd106b8319b5 | | min_disk | 20 | | min_ram | 0 | | name | test-snapshot | | owner | fa0f417fb4b5462791e4320e317eb2d2 | | properties | base_image_ref='90e1b77b-4192-46f1-8d9c-49fc36d9b54c', boot_roles='user', clean_attempts='2', description='Ubuntu-Focal-Gui', image_location='snapshot', image_state='available', image_type='snapshot', instance_uuid='b5acb398-76b4-48fe-9b9a-d480636fdfd9', locations='[]', os_distro='Ubuntu', os_hidden='False', os_variant='Gui', os_version='20.04-Focal' | | protected | False | | schema | /v2/schemas/image | | status | queued | | tags | | | updated_at | 2021-12-03T12:37:40Z | | visibility | private | +------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+



  5. Check the image list