Import snapshot to project
Run
Code Block | |
---|---|
theme | Emacsopenstack 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 | ||
---|---|---|
| ||
$ 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
Code Block | theme | Emacs
---|
$ openstack image list +--------------------------------------+----------------------------------------------------------+-------------+ | ID | Name | Status | +--------------------------------------+----------------------------------------------------------+-------------+ | 2b9c6711-4dd8-4e5c-9edc-dd106b8319b5 | test-snapshot | active | +--------------------------------------+----------------------------------------------------------+-------------+ |
Create the VM
Code Block | theme | Emacs
---|
$ openstack server create --flavor c3.small --image 2b9c6711-4dd8-4e5c-9edc-dd106b8319b5 new-instance-from-snapshot |
...