要显示映像信息,可以使用 nova 命令或 glance 命令。
$ nova image-list +--------------------------------------+-------------------------+--------+--------+ | ID | Name | Status | Server | +--------------------------------------+-------------------------+--------+--------+ | 4dfbfd4f-2de5-4251-832c-e35a4a4145ee | Solaris Non-global Zone | ACTIVE | | +--------------------------------------+-------------------------+--------+--------+
glance image-list 命令显示其他信息,例如,不同映像的磁盘格式、容器格式以及大小。
nova image-show 和 glance image-show 命令显示有关特定映像的信息。每个命令生成有关映像的不同输出。
$ nova image-show 'Solaris Non-global Zone' +--------------------------+--------------------------------------+ | Property | Value | | OS-EXT-IMG-SIZE:size | 845025280 | | created | 2015-11-19T14:46:38Z | | id | 4dfbfd4f-2de5-4251-832c-e35a4a4145ee | | metadata architecture | x86_64 | | metadata hypervisor_type | solariszones | | metadata vm_mode | solariszones | | minDisk | 0 | | minRam | 0 | | name | Solaris Non-global Zone | | progress | 100 | | status | ACTIVE | | updated | 2015-11-19T14:46:42Z | +--------------------------+--------------------------------------+ $ glance image-show 'Solaris Non-global Zone' +----------------------------+--------------------------------------+ | Property | Value | +----------------------------+--------------------------------------+ | Property 'architecture' | x86_64 | | Property 'hypervisor_type' | solariszones | | Property 'vm_mode' | solariszones | | checksum | ba9b9eeddb467833d725c8750a46e004 | | container_format | bare | | created_at | 2015-11-19T14:46:38 | | deleted | False | | disk_format | raw | | id | 4dfbfd4f-2de5-4251-832c-e35a4a4145ee | | is_public | True | | min_disk | 0 | | min_ram | 0 | | name | Solaris Non-global Zone | | owner | 7d1caf0854b24becb28df5c5cabf72cc | | protected | False | | size | 845025280 | | status | active | | updated_at | 2015-11-19T14:46:42 | +----------------------------+--------------------------------------+