|
After reading this article on performance. I decided to upgrade one of the EC2 instances to the latest kernel with the following command
That command tries to install the typical ec2 packages, and at the same time attempts to upgrade from 2.6.32 to 2.6.38. Unfortunately, I hit a snag with the following message
So the real question is.. how do I upgrade the Linux kernel on EC2 instances (it is a standard bitnami AMI running ubuntu 10.04) |
|
Hi Antony, you can ignore those errors. The new kernel will be loaded once you reboot your instance. Take a look at: http://groups.google.com/group/ec2ubuntu/browse_thread/thread/e4d77bfc2ef44bba?pli=1 Amazon pv-grub kernel will take the configuration from /boot/grub/menu.lst. It doesn't require you to have a grub installation in the disk. You can find more details about how it works at the link below: http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html#configuringGRUB I hope it helps. I rebooted, but the kernel doesn't seem to get updated at all. uname -r 2.6.32-342-ec2
(02 Mar '12, 15:35)
Antony Wu
Can you run the following command to check the exact kernels you have installed? dpkg --list | grep linux-image
(04 Mar '12, 06:10)
Carlos Sánchez ♦♦
Hi Carlos, after rebooting the box and running the command, the result shows that it is indeed running under 2.6.32 linux-image-ec2 2.6.32.343.24 Linux kernel image for ec2 machines
(08 Mar '12, 00:40)
Antony Wu
All the kernels mentioned in the log you have pasted above are 2.6.32: 2.6.32-38 2.6.32-32 2.6.32-316-ec2 2.6.32-342-ec2 2.6.32-342 is the latest in that case. Can you run the command I mentioned to make sure you have a "2.6.38" kernel installed?
(08 Mar '12, 04:09)
Carlos Sánchez ♦♦
Just in case, repled in answer section due to comment size limit
(08 Mar '12, 23:12)
Antony Wu
|
|
Carlos, I would love to reply in the comment section except that it has a size limit, so I am posting here for reference. I just ran the dist-upgrade again yesterday for 2.6.39. From the log below, finally, I see the latest kernel listed (there was no reference of 2.6.38 before). However, the uname -a returns 2.6.32-342-ec2 still
Please notice that all the kernels you have are "2.6.32". As you can see in your list there's no "2.6.38" or "2.6.39" installed but "2.6.32-38" and "2.6.32-39". The latest kernel you have installed is "2.6.32-343-ec2", which is the latest in the Ubuntu 10.04 repositories.
(09 Mar '12, 04:13)
Carlos Sánchez ♦♦
|