5

谷歌计算引擎的 gcutil 工具在 list 子命令中没有显示任何图像/内核:

$ gcutil listimages --project <project_name>
+------+-------------+---------------+--------+
| name | description | creation-time | kernel |
+------+-------------+---------------+--------+
+------+-------------+---------------+--------+

虽然如果我们在配置实例时不指定图像,它会提供一组图像选项:

$ gcutil addinstance cj-test-001

1: projects/google/global/images/centos-6-2-v20120326
2: projects/google/global/images/centos-6-2-v20120503
3: projects/google/global/images/centos-6-2-v20120611
4: projects/google/global/images/centos-6-2-v20120621
...
22: projects/google/global/images/ubuntu-12-04-v20120611
23: projects/google/global/images/ubuntu-12-04-v20120621
24: projects/google/global/images/ubuntu-12-04-v20120912

如何解决通过 gcutil 列出图像的问题?

4

1 回答 1

5

默认情况下,该gcutil listimages命令会列出项目的自定义图像。

要列出 Google 提供的默认图像,请运行以下命令:

$ gcutil --project=google listimages

此处文档中的更多详细信息:https ://developers.google.com/compute/docs/images

于 2013-02-06T19:20:15.140 回答