After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 55 of 317

Chapter 2 45 The command to register is as follows: euca-register images/centos.5-3.x86.img.manifest.xml The previous command will produce the following output: 9. That's it—we now have a CentOS 5.3 image for use in our Nova environment. To verify this, we can list the available images as follows: euca-describe-images 10. We can run our newly uploaded image by referencing this output image ami and connect to it via ssh as the root user for this CentOS image, as follows: euca-run-instances ami-00000005 -k openstack -t m1.tiny ssh -i openstack.pem root@172.16.1.1 How it works... Uploading images using the tools provided by euca2ools is quite straightforward and is made up of three steps: bundle, upload, and register. You then repeat these steps for each of the kernel, ramdisk, and image files. euca-bundle-image -i kernel --kernel true euca-upload-bundle -b bucket -m manifest.xml euca-register bucket/manifest.xml euca-bundle-image -i ramdisk --ramdisk true euca-upload-bundle -b bucket -m manifest.xml euca-register bucket/manifest.xml euca-bundle-image -i image --kernel kernel_id –ramdisk ramdisk_id euca-upload-bundle -b bucket -m manifest.xml euca-register bucket/manifest.xml Each command flows to the next: euca-bundle-image outputs the manifest XML file path that is used by euca-upload-bundle as the value for the parameter -m. euca-upload- bundle outputs the value to be used by euca-register. The last triplet of bundle, upload, and register is for the image itself, as you need to reference the assigned kernel and ramdisk IDs from the preceding steps. These procedures can also be used to upload to other Cloud environments such as Amazon EC2. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook