Versions Compared

Key

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

Import snapshot to project

Run

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

Example

Code Block
$ 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
$ openstack image list
+--------------------------------------+----------------------------------------------------------+-------------+
| ID                                   | Name                                                     | Status      |
+--------------------------------------+----------------------------------------------------------+-------------+
| 2b9c6711-4dd8-4e5c-9edc-dd106b8319b5 | test-snapshot                                            | active      |
+--------------------------------------+----------------------------------------------------------+-------------+


Create the VM

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


Import snapshot to project

Run

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

...

Find the image ID

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


Create the VM

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

...