Download a nectar snapshot image
Procedure
Download nectar credential
Get the nectar credential
source the openrc.sh file
Place the downloaded openrc.sh file in a directory
source openrc.sh
env | grep OS_
get a list of snapshot images
make sure python-glanceclient is installed (apt-get install python-glanceclient)
glance image-list
You will see an output like below: |Image ID |Image Name| Disk Format|Container Format| Size| Status| |8c60e6d7-8a12-4378-b18c-374e8e00b7ae| connect_matlab|qcow2| bare| 10640228352 | active |
Download the Image
glance image-download <Image ID> --file filename.img
glance image-download 8c60e6d7-8a12-4378-b18c-374e8e00b7ae --file connect_matlab.img
To upload an image
glance image-create --name myimage --disk-format=raw --container-format=bare < /path/to/file.img
OR:
glance image-create --name myimage --disk-format=raw --container-format=bare --file /path/to/file.img
e.g: glance image-create --name clovr-standard-2012-11-16-20-05-15-Griffith --disk-format=raw --container-format=bare --file clovr-standard-2012-11-16-20-05-15.img +------------------+---------------------------------------------+ | Property | Value | +------------------+---------------------------------------------+ | checksum | b79ea25aacb528a49e8c84752b66c4aa | | container_format | bare | | created_at | 2014-08-05T23:41:22 | | deleted | False | | deleted_at | None | | disk_format | raw | | id | 5d89718c-8dbf-4b1b-a280-01212f9c1fd0 | | is_public | False | | min_disk | 0 | | min_ram | 0 | | name | clovr-standard-2012-11-16-20-05-15-Griffith | | owner | 44afac96e4e7490286342bf1be738cc8 | | protected | False | | size | 19002294784 | | status | active | | updated_at | 2014-08-05T23:54:17 | +------------------+---------------------------------------------+ To upload qcow2 format image: glance image-create --name clovr-standard-2012-11-16-20-05-15-Griffith-qcow2 --disk-format=qcow2 --container-format=bare --file clovr-standard-2012-11-16-20-05-15.qcow2 +------------------+---------------------------------------------------+ | Property | Value | +------------------+---------------------------------------------------+ | checksum | 008fb601236ed9c5c275e18ece471d49 | | container_format | bare | | created_at | 2014-08-06T01:08:16 | | deleted | False | | deleted_at | None | | disk_format | qcow2 | | id | a85b8c38-7e07-4d8c-9b7c-db27d3fae041 | | is_public | False | | min_disk | 0 | | min_ram | 0 | | name | clovr-standard-2012-11-16-20-05-15-Griffith-qcow2 | | owner | 44afac96e4e7490286342bf1be738cc8 | | protected | False | | size | 5576261632 | | status | active | | updated_at | 2014-08-06T01:14:45 | +------------------+---------------------------------------------------+
Reference:
1. http://docs.openstack.org/grizzly/openstack-compute/admin/content/adding-images.html
, multiple selections available,