...
Code Block | ||
---|---|---|
| ||
glanceopenstack image-create --name <image_name> create --file <image_location> --disk-format raw --container-format bare --visibility public --progress openstack image create --file <image_location> --disk-format raw --container-format bareprotected [--public|--private] <image_name> |
...
Code Block | ||
---|---|---|
| ||
glanceopenstack image-create --name "Ubuntu Server 16.04 (Xenial) amd64" create --file xenial-server-cloudimg-amd64-disk1.img.raw --disk-format raw --container-format bare --is-public True --progress openstack image create --file xenial-server-cloudimg-amd64-disk1.img.raw --disk-format raw --container-format bareprotected --public "Ubuntu Server 16.04 (Xenial) amd64" |
The "–visibility public–public" flag is used to indicate that all projects should have access to this image, and the upload would then require admin credentials. In the case of an image upload which should only be accessible to the project uploading it, that flag can be omitted.
...