glance image-create --name ubuntu14-14.04.1-server --disk-format=raw --container-format=bare --is-public True --copy-from https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
OpenStackのglaceでコマンドラインでイメージを登録する例。
OpenStackでコマンドラインでイメージを登録する例
$ glance image-create --name='image name' --is-public=true --container-format=bare --disk-format=qcow2 < file.imgイメージを標準入力から受け取るので、以下のようにcurlでダウンロードしながら、それを登録することもできる。
$ curl https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img | glance image-create --name='Ubuntu Server 14.04 LTS' --is-public=true --container-format=bare --disk-format=qcow2
登録:
投稿 (Atom)