After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 52 of 317

Administering OpenStack Compute 42 Alternative upload method using euca2ools Using an alternative method to upload images to our environment offers us greater flexibility in what we can configure. By using the euca-bundle-image, euca-upload-bundle, and euca-register tools, we can upload each part of our machine image independently, allowing us to specify alternative kernel and ramdisk images. Getting ready To begin with, ensure you're logged in to your Ubuntu client and have your cloud credentials sourced into your environment. The euca-bundle-image, euca-upload-bundle, and euca-register tools are provided by the euca2ools package. This can be installed as follows: sudo apt-get update sudo apt-get -y install euca2ools How to do it... To have the ability to have more control over how we upload images into our environment, we can use the tools provided by euca2ools. Carry out the following steps to use euca2ools to upload images into your OpenStack environment: 1. Download a cloud image, as described at the beginning of the last section. Once downloaded, we then unpack this as follows: tar zxvf euca-centos-5.3-i386.tar.gz cd euca-centos-5.3-i386 2. Once unpacked, we use a separate set of commands to bundle this up for our OpenStack Compute environment and upload the relevant parts to create our image for use. For this section, we run a command named euca-bundle-image, to package up the kernel. There will have been two distinct kernel folders in the tarball: kvm-kernel and xen-kernel. Our sandbox server is based on kvm, so we will bundle up the kvm-kernel file. The command is as follows: euca-bundle-image -i kvm-kernel/vmlinuz-2.6.28-11-generic --kernel true The previous command will produce the following output: 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