AWS里面的centos AMI

AMI
An Amazon Machine Image (AMI) is an encrypted machine image that contains all information necessary to boot instances of your software.
use public AMIs as a base to create your own custom private AMIs.
可以理解为系统的一个模板。你可以基于这个模板启动多个系统实例,或者修改这个模板,做为自己的模板。


rightscale 是我认为比较好的第三方AMI提供者。提供cetos的AMI。
AMI的版本:http://support.rightscale.com/18-Release_Notes/02-AMI/RightImages_Release_Notes

RightImage CentOS 5.4 v4.4.10

Release Date:  Dec 29, 2009

CentOS 5.4
RightImage CentOS_5.4_i386_v4.4.10 (32-bit)
RightImage CentOS_5.4_x64_v4.4.10 (64-bit)

These RightImages support CentOS v5.4.  Use the 32-bit version for small and medium instances. Use the 64-bit version for all other instance types.

  • Amazon Kernel Modules v2.6.21
  • Sun Java 6 update 14
  • RubyGems v1.3.1
  • nano, ruby, postfix, openssl, openssh, curl, cvs, subversion, git, vim-enhanced, rrdtool-1.2.27, pkgconfig, lynx, screen, redhat-lsb
 Nickname  AMI ID  Location  Region
 RightImage CentOS_5.4_i386_v4.4.10  ami-f8b35e91  rightscale-us/CentOS_5.4_i386_v4.4.10  aws us-east
 RightImage CentOS_5.4_x64_v4.4.10  ami-ccb35ea5  rightscale-us/CentOS_5.4_x64_v4.4.10  aws us-east
 RightImage CentOS_5.4_i386_v4.4.10  ami-e32273a6  rightscale-us-west/CentOS_5.4_i386_v4.4.10  aws us-west
 RightImage CentOS_5.4_x64_v4.4.10  ami-eb2273ae  rightscale-us-west/CentOS_5.4_x64_v4.4.10  aws us-west
 RightImage CentOS_5.4_i386_v4.4.10  ami-efe4cf9b  rightscale-eu/CentOS_5.4_i386_v4.4.10  aws eu
 RightImage CentOS_5.4_x64_v4.4.10  ami-ebe4cf9f  rightscale-eu/CentOS_5.4_x64_v4.4.10  aws eu



2、从vmware创建一个AMI
http://blog.chinaunix.net/u/32831/showart_1839873.html
另外,kernel需要是xen的内核:The current hardware does NOT support hardware virtualization, so you need to build for Xen。In general, building for Xen, even on virtualizing hardware, can improve performance. 

更多,可以查看我的另一篇文章:
http://blog.chinaunix.net/u/32831/showart_1886169.html

注:从本地上传做好的image到s3上时只需要上传 image.part.00 到 image.part.98和image.manifest.xml文件即可,大概1G左右,最大的那个3G左右的image文件不需要上传。

注:我按照上面的方法做了一个AMI,启动时出现了错误
FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory 。
原因,查看下面的文章:
http://developer.amazonwebservices.com/connect/message.jspa?messageID=112316

你可能感兴趣的:(image,centos,subversion,rubygems,xen,rightscale)