Managing your cloud resources with OpenStack: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 218: Line 218:
{{Command|openstack image save --file ./<file-name-for-image>.<format> <ID>}}
{{Command|openstack image save --file ./<file-name-for-image>.<format> <ID>}}
where <format> matches the value in the ''Disk format'' column and <ID> matches the value in the ''ID'' column.
where <format> matches the value in the ''Disk format'' column and <ID> matches the value in the ''ID'' column.
=Uploading an Image=
The first step is to install the OpenStack client and download the OpenStack RC file and source it (see [[OpenStack Command Line Clients]]).
Then run the command
{{Command|openstack image create --file <path-to-local-file-image> --disk-format <format> <new-image-name>}}
where <path-to-local-file-image> is the path to the file containing the image you wish to upload from your local machine, <format> is the disk format if not specified the raw format is assumed, which is incorrect can cause issues when using the image in OpenStack, and <new-image-name> is the name of the image as it appears on the OpenStack dashboard.


=Creating a VirtualBox VM from a Cloud Image= <!--T:41-->
=Creating a VirtualBox VM from a Cloud Image= <!--T:41-->
cc_staff
1,486

edits