Managing your cloud resources with OpenStack: Difference between revisions

Jump to navigation Jump to search
Line 263: Line 263:


=Downloading an image into a local VirtualBox=
=Downloading an image into a local VirtualBox=
The first step is to install the glance client. If you don't have pip get it with
The first step is to install the openstack client and download the OpenStack RC file and source it see [OpenStack#Command Line Clients] .
{{Command|sudo apt-get install python-dev python-pip}}
The OpenStack client can list the available images on your OpenStack project with
note that this is the command on Ubuntu/Debain other Linux flavors will have similar but different commands see [http://docs.openstack.org/user-guide/common/cli_install_openstack_command_line_clients.html]. Then install the client with
{{Command|openstack image list}}
{{Command|pip install python-glanceclient}}
As mentioned in the [[OpenStack#Command Line Clients]] section you will need to download the OpenStack RC file and source it. Glance can list the available images on your OpenStack account with
{{Command|glance image-list}}
producing something like:
producing something like:


Line 288: Line 285:
  +--------------------------------------+---------------------------------------+-------------+------------------+-------------+--------+
  +--------------------------------------+---------------------------------------+-------------+------------------+-------------+--------+


You can then download a particular image with  
You can then download a particular image with
{{Command|glance image-download --file ./<file-name-for-image>.qcow2 2c751755-854d-49c3-af82-d501e51e7159}}
{{Command|openstack image save --file ./<file-name-for-image>.qcow2 2c751755-854d-49c3-af82-d501e51e7159}}
where the last argument is the <code>ID</code> of the image you wish to download taken from the table listed with the <code>glance image-list</code> command. For more detailed instructions on the above steps see [https://raymii.org/s/tutorials/Openstack_Glance_Image_Download.html].
where the last argument is the <code>ID</code> of the image you wish to download taken from the table listed with the <code>openstack image list</code> command.


Then to use this image in VirtualBox you will need to convert the image in the qcow2 format to the vmdk format. This can be done with the <code>qemu-img</code> tool. This can be installed with something like
Then to use this image in VirtualBox you will need to convert the image in the qcow2 format to the vmdk format. This can be done with the <code>qemu-img</code> tool. This can be installed with something like
cc_staff
1,486

edits

Navigation menu