Canonical and AWS (Amazon Web Services) announced today the general availability of Amazon EC2 Hibernation support for the Ubuntu 16.04 LTS (Xenial Xerus) operating system.
Already available for Ubuntu 18.04 LTS (Bionic Beaver) installations, the Hibernation feature lets users pause their Amazon EC2 Instances. These can be later be resumed when needed and the previously saved workspace restored so users can continue from where it was left off.
Now Ubuntu 16.04 LTS (Xenial Xerus) Amazon EC2 users can use the Hibernation feature, which is possible thanks to the latest linux-aws-hwe 4.15.0-1058-aws kernel package that landed recently in the distribution’s stable repositories.
“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,” said Canonical.
How to add Amazon EC2 Hibernation support on Ubuntu 16.04 LTS
To add Hibernation support on your Amazon EC2 instance running Ubuntu 16.04 LTS, you must install both the new AWS kernel and the agent (ec2-hibinit-agent) package that creates a setup for your instance to support the hibernation features. Run the following commands in a terminal.
sudo apt update
sudo apt install linux-aws-hwe
sudo apt install ec2-hibinit-agent
Once your Amazon EC2 instance was rebooted successfully, you can use Hibernation. However, you should be aware of a known issue that affects some systems using the KASLR (Kernel Address Space Layout Randomisation) security feature, making them completely unusable after hibernation. To avoid any issues, you must disable KASLR.
Canonical said that they plan on supporting the linux-aws-hwe kernel package with regular security updates until the end of the standard support offered for Ubuntu 16.04 LTS (Xenial Xerus), around April 2021.
Last updated 10 months ago