【IT168技术】EC2上,我使用的rightscale的AMI为centos5的V1版本,该版本的kernel版本为2.6.16。
可以使用下面的方法升级到2.6.18.
因为,amazon允许在启动的时候选择kernel版本,amazon提供的最新内核的版本为2.6.18(其实,rightscale就是使用amazon提供的2.6.18的内核),所以,可以选择使用2.6.18的kernel启动以后再将INSTANCE重新打包成AMI。下面有官方文档。
注:使用了2.6.18kernel后,启动后,查看output中的输出,有下面的错误
解决的办法:
Untar the file and you will get two folders boot and lib. Copy the files under boot to /boot of your ami. and similarly mv the contents of lib/modules to /lib/modules of the instance. When launching your ami, mention the kernel id too -- the one of the link is aki-9b00e5f2 。
使用aki-9b00e5f2(32位)启动ami,然后,上传module到相应的目录,然后重新打包成AMI。
module下载地址在下面的官方文档中有说明。
如果你想找某个版本的kernel,你可以在amazon的ami里搜索