/
Creating Snapshots from Instance
Creating Snapshots from Instance
A snapshot can be used as a backup or template for creating new instances.
Web Interface
Shut off your instance by clicking the drop-down menu on the right-hand side (in
Actions
column) and selectSHUT OFF INSTANCE
Create a Snapshot by clicking the drop-down menu on the right-hand side (in
Actions
column) and selectCREATE SNAPSHOT
Give it a name and click
CREATE SNAPSHOT
Command-line
See Using the OpenStack Command Line Interface on how to set-up the command line client
Find the server ID (Instance) using the command below
Shut down the instance using
$ openstack server stop <server-id> #example $ openstack server stop b5acb398-76b4-48fe-9b9a-d480636fdfd9
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 | +--------------------------------------+--------------------------+---------+----------------------------------------+---------------------------------------------------------+--------------+
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 | +------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Check the image list
, multiple selections available,
Related content
VM Flavors
VM Flavors
Read with this
Create Volume Snapshot
Create Volume Snapshot
More like this
Deleting Instances (VM)
Deleting Instances (VM)
More like this
Rebuilding Instances
Rebuilding Instances
More like this
Create new image from snapshot
Create new image from snapshot
More like this
Openstack Shelving and Unshelving
Openstack Shelving and Unshelving
More like this