Home > Clouds > CloudStack > Upload RightImages to a CloudStack Private Cloud

Upload RightImages to a CloudStack Private Cloud

Objective

To upload a RightImage to a private cloud so that you can create a custom MCI and use it with a ServerTemplate.

Table of Contents

Overview

If you are setting up your own private cloud and want to use RightScale's ServerTemplate model for launching servers, you need to use one of RightScale's published RightImages (machine images). The first step of this process is to upload one or more RightImages to your private cloud. Once the RightImage is available in your private cloud, you can create a MultiCloud Image (MCI) that references the image in that cloud and then add the MCI to your ServerTemplate(s). This tutorial explains the initial step of uploading a RightImage to your private cloud.

Steps

Download RightImages

Our CloudStack RightImages can be found here.

For Windows based images, please contact RightScale support (support@rightscale.com)

Upload CloudStack RightImages to your Private Cloud

Perform the following steps to upload a RightImage to your private cloud using CloudStack's Management Console UI. 

Note: The following instructions and screenshots apply to CloudStack 2.2.

The first step is to upload the RightImages to your private cloud using the most recently published version. The list of the latest production RightImages, which have been tested and are ready for general use, are located under the Hypervisor sections of OS and Software Package Support.

When selecting the correct RightImage, make sure it matches the proper MCI. For example, if you have a Multi-Cloud Image that looks like this:

  • RightImage_CentOS_5.8_x64_v5.8 - XenServer

 

Then the correct RightImage to select would be either of the following:

  • RightImage_CentOS_5.8_x64_v5.8.8.qcow2.bz2
  • RightImage_CentOS_5.8_x64_v5.8.8.vmdk.ova
  • RightImage_CentOS_5.8_x64_v5.8.8.vhd.gz

 

After selecting the RightImage, log into the Management Console UI that's hosted on the "Management Server" of your CloudStack.  Contact your CloudStack administrator for the public IP address of the "Management Server" and login credentials.  You'll need to construct a URI similar to the example below.

http://66.70.70.226:8080/client

Specify the following information to log into the management console:

  • Username
  • Password

In the Templates tab, click Create Template.  (In CloudStack, a "template" is equivalent to an image.)

 

CloudStack_Dash copy.png

 

 

Provide the following information:

File:09-Clouds/CloudStack/Upload_RightImages_to_a_CloudStack_Private_Cloud/CreateTemplatePopUp_copy.png

  • Name - The name of the template (Image).  To keep the name short, use the 'RI' prefix for RightImage.  (e.g. RI_CentOS_5.4_x64_5.6)
  • Description - A longer description of the template.  For this field you can use the full length of the image name.  (e.g. RightImage_CentOS_5.4_x64_5.6)
  • URL - Link to where the image will be downloaded from.  If you are pulling the image from an S3 bucket, you must enter the URL using 'http'. Using  'https' will cause the retrieval will fail. add your desired image URL in Image Location from our bucket found here.
  • Zone - In a CloudStack, templates (images) are zone-specific so if you've set up multiple zones in your private cloud, you must specify into which zone the template will be saved.
  • Hypervisor - The hypervisor on which the template runs.  Select the appropriate Hypervisor for the image.
  • Format - The format for the template. Possible values include QCOW2, RAW, and VHD.
  • OS Type - Select the Operating System that matches the RightImage's OS.
  • Extractable - Leave this box unchecked.
  • Password Enabled - Leave this box unchecked.
  • Public - Check this box to make the image publicly available so that it is accessible to RightScale users.

 
Click OK.

Depending on the size of the image it can take up to 20-30 minutes before the image becomes available in the private cloud. 

Troubleshooting

If a RightImage is not automatically discovered in the RightScale dashboard, this could be due to the image's fingerprint not being calculated correctly. The problem can also occur when launching a server. For example, if the MCI detects that there is no cloud with an image whose fingerprint matches, you will not have the option to select the cloud when launching a server.

To see if this problem exists, click into an MCI by navigating to ServerTemplate > Images and look at the fingerprint. If the image was uploaded through the CloudStack UI, the fingerprint may be missing. Or if you're using CloudStack 3.0 - 3.0.2, the fingerprint may be incorrect, preventing CloudStack from correctly calculating the checksum when uploading the image. To resolve this, you'll need to apply the following patch to your CloudStack Private Cloud. Download the following ISO to /usr/lib64/cloud/agent/vms.

http://rightscale-cloudstack-install...2/systemvm.iso

Once you have uploaded the ISO, destroy your SSVM and allow a new one to be created. The new SSVM will have the needed fingerprint fix. This will apply to any images that are uploaded after the ISO is uploaded. 

If you are running CloudStack version 2.2.x,  you can find the following tool for uploading images with fingerprints (see the README for details):

https://github.com/rgeyer/cloudstack...image_uploader

 
You must to post a comment.
Last Modified
16:01, 2 Oct 2013

Page Rating

Was this article helpful?

Tags


Announcements

None

Glossary | 用語용어 Site Map | Site Help Community Corporate Site Get Support Dashboard Login
Doc Feedback Product Feedback Resources MultiCloud Marketplace Forums

Dashboard Status


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.