Versions Compared

Key

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

...

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


Import snapshot to project

Run

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

Example

Code Block
themeEmacs
$ 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

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


Create the VM

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