0

我正在尝试将图像从服务器注册到远程 openstack Glance 安装。基本上我已经通过一个 shell 脚本在本地处理了图像,现在想一目了然地导入它在不同的系统上运行。

提前致谢

4

1 回答 1

1

看起来您只需要将图像上传到 Glance:

  1. 确保安装了glance-client pip install python-glanceclient

  2. source openrc#用于远程 openstack 安装的带有凭据的 openrc 文件,请参阅 [1] 以供参考

  3. glance image-create --container-format CONTAINER_FORMAT --disk-format DISK_FORMAT --name IMAGE_NAME --file a-path-to-local-image-file --progress有关参数说明,请参阅“glance help image-create”

而已。图像将通过 HTTP 上传到远程 Glance 安装。您可以通过Glance image-list 列出图像

[1] http://docs.openstack.org/icehouse/install-guide/install/apt/content/ch_clients_openrc_files.html

于 2016-01-17T15:33:49.437 回答