- OpenStack Cloud Computing Cookbook(Third Edition)
- Kevin Jackson Cody Bunch Egle Sigler
- 258字
- 2021-07-16 20:39:16
Registering a remotely stored image
OpenStack Image Service provides a mechanism to remotely add an image that is stored at an externally accessible location. This allows for a convenient method of adding images we might want to on our private cloud that have been uploaded to an external third-party server.
Getting ready
To begin with, ensure you are logged in to our Ubuntu client where we can run the glance
tool. This can be installed using the following command:
sudo apt-get update sudo apt-get install python-glanceclient
Ensure that you have your environment variable set up correctly with our admin
user and password, as created in the previous chapter:
export OS_TENANT_NAME=cookbook export OS_USERNAME=admin export OS_PASSWORD=openstack export OS_AUTH_URL=https://192.168.100.200:5000/v2.0/ export OS_NO_CACHE=1 export OS_KEY=/vagrant/cakey.pem export OS_CACERT=/vagrant/ca.pem
How to do it...
Carry out the following steps to remotely store an image in our OpenStack Image Service:
- To register a remote virtual image into our environment, we add a location parameter instead of streaming the image through a pipe on our
glance
command line:glance image-create \ --name='Ubuntu 12.04 x86_64 Server' \ --disk-format=qcow2 \ --container-format=bare \ --public \ --location http://webserver/precise-server-cloudimg-amd64-disk1.img
- The preceding step returns information similar to what you can see here, which is then stored in our OpenStack Image Service:
How it works...
Using the glance
tool to specify remote images directly provides a quick and convenient way to add images to our OpenStack Image Service repository. The way this happens is with the location
parameter. We add in our usual meta information to accompany this, as we would with a locally-specified image.
- Getting Started with Gulp(Second Edition)
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Python Geospatial Development(Second Edition)
- jQuery從入門到精通 (軟件開發視頻大講堂)
- Python數據分析從0到1
- Scientific Computing with Scala
- 編程數學
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- Kotlin編程實戰:創建優雅、富于表現力和高性能的JVM與Android應用程序
- IDA Pro權威指南(第2版)
- 區塊鏈項目開發指南
- 從零開始學Android開發
- Learning D
- Android編程權威指南(第4版)
- Python 快速入門(第3版)