Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Import snapshot to project

Run

openstack image create --container-format bare --disk-format qcow2 --file <path-to-image-file> <name>

Example

$ openstack image create --container-format bare --disk-format qcow2 --file snapshot.raw test-snapshot

Booting From Image

Create a VM and selecting the image as the boot source

Example

Find the image ID

$ openstack image list
+--------------------------------------+----------------------------------------------------------+-------------+
| ID                                   | Name                                                     | Status      |
+--------------------------------------+----------------------------------------------------------+-------------+
| 2b9c6711-4dd8-4e5c-9edc-dd106b8319b5 | test-snapshot                                            | active      |
+--------------------------------------+----------------------------------------------------------+-------------+


Create the VM

$ openstack server create --flavor c3.small --image 2b9c6711-4dd8-4e5c-9edc-dd106b8319b5 new-instance-from-snapshot


  • No labels