Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

  1. Blog
  2. Article

Canonical
on 11 February 2020

Amazon EC2 Hibernation for Ubuntu 16.04 LTS now available


AWS and Canonical today announce the public release of Amazon EC2 Hibernation support for Ubuntu 16.04 LTS, bringing support for this feature on par with Ubuntu 18.04 LTS.

Hibernation allows you to pause your Amazon EC2 Instances when not required and resume them at a later time. Applications will start up exactly from where they left off instead of rebuilding their memory footprint. Using Hibernation, users can maintain a fleet of pre-warmed instances that can get to a productive state faster. Users can take advantage of this feature without the need of modifying your existing applications.

Support for Hibernation on Amazon EC2 is provided by the latest linux-aws-hwe kernel package, version 4.15.0-1058-aws, now available for Ubuntu 16.04 LTS. Users must install this package along with ec2-hibinit-agent to enable this feature via the following instructions:

sudo apt update
sudo apt install linux-aws-hwe
sudo apt install ec2-hibinit-agent
sudo reboot

To confirm the correct kernel is now in use after the reboot, issue the following command:

uname -a

The uname command should report kernel version 4.15.0-1058-aws or greater.

The linux-aws-hwe package is fully supported by Canonical and will continue to receive regular updates until the end of standard support for Ubuntu 16.04 LTS in April 2021. Security updates until the end of 2024 are available with Extended Security Maintenance (ESM) support.

To learn more about Amazon EC2 Hibernation, please visit this blog. For information about enabling hibernation for your Amazon EC2 instances, please visit the Amazon EC2 Hibernation user guide.

Limitations:

There is a known issue when using Amazon EC2 Hibernation related to KASLR (Kernel Address Space Layout Randomisation). KASLR is a standard Linux kernel security feature which helps to mitigate exposure to and ramifications of yet-undiscovered memory access vulnerabilities by randomising the base address value of the kernel. In a small percentage of tests, instances with KASLR enabled do not resume and become completely unusable after hibernation. Disabling KASLR, which is enabled by default, is known to avoid this issue. Please see bug lp:1837469 for additional details.

Related posts


Carlos Bravo
2 February 2024

Generative AI on a GPU-Instance with Ubuntu on AWS: Part 1 – Image Generation

Ubuntu Article

This blog post will show you how to run one of the most used Generative AI models for Image generation on Ubuntu on a GPU-based EC2 instance on AWS ...


Carlos Bravo
27 March 2024

Generative AI with Ubuntu on AWS. Part II: Text generation

AI Article

In our previous post, we discussed how to generate Images using Stable Diffusion on AWS. In this post, we will guide you through running LLMs for text generation in your own environment with a GPU-based instance in simple steps, empowering you to create your own solutions. Text generation, a trending focus in generative AI, facilitates ...


Carlos Bravo
20 November 2023

Canonical at AWS re:Invent – What you need to know!

AI Article

Though the Las Vegas Grand Prix has come to a close, the Canonical team is gearing up for the next big race at AWS re:Invent, slated for November 27-December 1, 2023. After a thrilling event in 2022, we’re excited and proud to be a sponsor once again in 2023. Learn more about the ways that ...