Amazon EC2 Hibernation for Ubuntu 16.04 LTS now available

Canonical

on 11 February 2020

ubuntu, Amazon EC2, AWS, 16.04, LTS

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.

Ubuntu cloud

Ubuntu offers all the training, software infrastructure, tools, services and support you need for your public and private clouds.

Newsletter signup

Select topics you’re
interested in

In submitting this form, I confirm that I have read and agree to Canonical’s Privacy Notice and Privacy Policy.

Related posts

Introducing the Ubuntu AWS Rolling Kernel

The linux-aws 4.15 based kernel, which is the default kernel in the Ubuntu 18.04 LTS AMIs, is moving to a rolling kernel model. Why is this changing? The...

Canonical announces Ubuntu Pro for Amazon Web Services

New premium Ubuntu images with extended security, kernel live patching and more 4th December 2019 – Canonical today announced the availability of Ubuntu Pro...

Amazon EC2 On-Demand Hibernation for Ubuntu 18.04 LTS now available

AWS and Canonical today announce the public release of Amazon EC2 Hibernation support for Ubuntu 18.04 LTS. Amazon EC2 Hibernation gives you the ability to...