Home > FAQs > What are the differences between Version 4 and Version 5 RightImages?

Copyright (c) 2006-2014 MindTouch Inc.

This file and accompanying files are licensed under the MindTouch Master Subscription Agreement (MSA).

At any time, you shall not, directly or indirectly: (i) sublicense, resell, rent, lease, distribute, market, commercialize or otherwise transfer rights or usage to: (a) the Software, (b) any modified version or derivative work of the Software created by you or for you, or (c) MindTouch Open Source (which includes all non-supported versions of MindTouch-developed software), for any purpose including timesharing or service bureau purposes; (ii) remove or alter any copyright, trademark or proprietary notice in the Software; (iii) transfer, use or export the Software in violation of any applicable laws or regulations of any government or governmental agency; (iv) use or run on any of your hardware, or have deployed for use, any production version of MindTouch Open Source; (v) use any of the Support Services, Error corrections, Updates or Upgrades, for the MindTouch Open Source software or for any Server for which Support Services are not then purchased as provided hereunder; or (vi) reverse engineer, decompile or modify any encrypted or encoded portion of the Software.

A complete copy of the MSA is available at http://www.mindtouch.com/msa

What are the differences between Version 4 and Version 5 RightImages?


You noticed that some ServerTemplates published by RightScale use v4 RightImages while all newer ServerTemplates published by RightScale use v5 RightImages.  You want to understand the differences between these two versions of RightImages and why it makes sense to use v5 RighImages for all future Server development or understand why you should strongly consider migrating any existing Deployments built on v4 RightImages to use newer ServerTemplates built on v5 RightImages.


The first thing you should understand is that all functionality that is available in v4 RightImages is supported in v5 RightImages.  For example, although one of the main benefits of v5 RightImages is its support for Chef Recipes, you can still run any RightScripts on v5 Servers.  So, if you migrate to use v5 RightImages, you will not lose any functionality that you enjoyed with v4 RightImages.  It's strongly recommended that you migrate any existing Deployments to use v5 RightImages. 

There are several advantages and benefits of using v5 RightImages, which will be discussed in more detail below.

  • Key Differences
  • Key Benefits

Key Differences between v4 and v5 RightImages

The key differences between v4 and v5 RightImages can be summarized as affecting the following topics:

  • RightLink Support
  • SSH Access
  • Execution of Scripts
RightLink Support

One of the key differences between v4 and v5 RightImages is that v5 (and later) RightImages install a RightLink agent on the instance that allows RightScale to more efficiently communicate with the instance.   A RightLink-enabled RightImage is also required in order to run Chef recipes on an instance.  Other software tools like Puppet can be installed and configured on v4 or v5 RightImages.

SSH Access (Linux only)

v4 RightImages
For instances launched with v4 RightImages, the EC2 SSH Key is used to establish SSH (shell) access to the instance.  When you launch an EC2 instance, you must select an EC2 SSH Key that will be used to establish a secure client-server connection with the instance.  Therefore, if you want to SSH into the instance from inside the RightScale Dashboard, you must use an SSH Key for which the private key material is available and not missing.  The private key material in only sent once when the SSH Key is created.  So if you're using an EC2 SSH Key that you created outside the RightScale platform, you will need to manually copy the private key material in the Dashboard for the matching key.

v5 RightImages
For instances launched with v5 RightImages, RightScale's Managed SSH feature will be used to establish SSH (shell) access to the instance. You can either use the unique SSH Key that RightScale generates for each user or upload your own SSH Key.  You will still need to select an EC2 SSH Key in order to launch the instance, however since it's no longer used to establish an SSH console session from the RightScale Dashboard, even if the EC2 SSH Key has missing private key material, you will still be able to SSH into the instance. 

Execution of Scripts

The execution of RightScripts is supported on Servers that are launched with v4 or v5 RightImages.  However, the manner in which those scripts are run on a Server differs depending on whether it's a v4 or v5 and later RightImage.

v4 RightImages
For Servers that are launched with v4 RightImages (e.g. RightImage CentOS_5.2_i386_v4.2.5), RightScale uses the EC2 SSH Key in order to SSH into an instance over port 22 and run the script(s).  Therefore, it's important that RightScale has the private key material for the Server's assigned EC2 SSH Key, otherwise RightScale will not be able to establish a secure client-server connection in order to run the specified RightScripts on the Server.  In order to successfully launch a Server in EC2 using a v4 RightImage where the specified boot scripts can be run on the Server, the following cloud resources must be configured properly:

  • EC2 SSH Key (with private key material) - RightScale must provide the matching private key material in order to establish a client-server connection to the instance.
  • EC2 Security Group - One of the EC2 Security Groups that the instance is launched with must have port 22 open to -any- TCP/IP address. 


If you launch a Server with an EC2 SSH Key for which RightScale does not have the private key material stored in the RightScale database, the Server will become "stranded in booting" because RightScale will be unable to complete the boot process and run the specified Boot Scripts. 

Note: Even though the launched Server is stranded in booting you will continue to be charged by AWS for hourly usage of that instance.

v5 RightImages
For Servers launched with v5 RightImages, bi-directional communication is used between the RightLink agent on the Server and RightScale's core site for coordinating the execution of scripts on a Server.  Instead of using the EC2 SSH Key to SSH into an instance over port 22 and run the script (as with v4 RightImages), a RightLink agent is installed on the instance and is used for communicating with the RightScale platform over a secure connection. 

Server Communication with RightScale

v4 RightImages
For Servers launched with v4 RightImages, RightScale makes inbound connections to the Server over port 22.  Servers were required to have port 22 open so that RightScale would be able to initiate contact with the Server. 

v5 RightImages
For Servers launched with v5 RightImages, there is now bi-directional communication between Servers and RightScale.  A Server's Security Group is no longer required to have port 22 open since RightScale no longer makes inbound connections to the running Server.  Instead, the RightLink agent on the Server makes an outbound connection to RightScale.   However, you will still need to open up port 22 to provide normal SSH access.

Key Benefits of v5 RightImages

  • Supports all functionality of v4 RightImages and also includes many bug fixes
  • Removal of 15 minute limit for Operational Scripts.  With v4 RightImages, a script would automatically timeout if it required more than 15 minutes to complete the task.
  • Faster Execution of Operational Scripts
  • Managed SSH
  • Chef Support
  • Use of Tags for Automation via API.  One of the ways RightScale uses tags with v5 RightImages is to automatically connect application servers with load balancers running HAProxy.  Instead of relying on correctly defined DNS settings and A Records to make the necessary connections (as in v4 RightImages), each server is simply tagged as an "application" server or "load balancer" so that when an application server boots up, it will automatically connect to the correct load balancing pool based on its tags. 

See also

You must to post a comment.
Last modified
21:28, 16 May 2013



This page has no classifications.



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.