올려져있는 이미지 다운로드 하기

리눅스/OpenStack|2018. 2. 22. 15:26
반응형

Listing images

When you've created a computerc file and loaded it up in your shell you can start the process. You need the UUID of the image you want to download. Get a list of all images using the glance image-list command:

$ glance image-list

Output:

+------------+---------------------+--------+-----------+------------+--------+
| ID         | Name                | Disk   | Container | Size       | Status |
+------------+---------------------+--------+-----------+------------+--------+
| 0a[...]5dd | example-test        | raw    | bare      | 4843700224 | active |
| 13[...]b30 | example-2           | qcow2  | bare      | 4762632192 | active |
| 22[...]eeb | FreeBSD-10.1        | qcow2  | bare      | 736981504  | active |
| d2[...]625 | pfSense 2.1.5       | iso    | bare      | 403243008  | active |
+------------+---------------------+--------+-----------+------------+--------+

The ID part is what you need. In this example it is trimmed.

Download Image

Use the glance image-download command to download the image. By default it will go to STDOUT, use the --file parameter to place the output in a file.

$ glance image-download --file ./example-test.img 0a[...]5dd

The command syntax is:

$ glance image-download --file $FILENAME $UUID

[출처] https://raymii.org/s/tutorials/Openstack_Glance_Image_Download.html

반응형

댓글()