Hibernate feature to be added in Linux based Ubuntu 16.04 LTS
Canonical Ltd, a private software company from UK to support and related services for Ubuntu Linux distro, in collaboration with AWS (Amazon Web Services, Inc. to provide demand cloud computing platform and API’s to companies) announced that the hibernation support is to be In Ubuntu 16.04 LTS.
The Hibernation feature was launched in 2018 by the Amazon Web Services, Inc. This feature allows users resume the saved state by pause to the EC2 instances. The hibernation process stores the in-memory state of instance along with the IP addresses and thus helps in avoiding memory loss.
Canonical plans to expand the presence of the cloud with the recent released of Ubuntu Pro Images and Android OS Anbox Cloud.
Ubuntu 16.04 is not available for new users as AWS is going to end the support to the v16.04 on April 2021. However, for the premium customers, three years of extended security maintenance will be provided.
If you want the hibernating support in v16.04 instance, install the latest linux-aws-hwe kernel package v4.15.0-1058-aws along with ec2-hibinit-agent by running the command:
sudo apt update
sudo apt install linux-aws-hwe
sudo apt install ec2-hibinit-agent
sudo reboot
Canonical will provide updates for the package till 2021 and three years extended security maintenance to the paid users.
Also, you require disable the KASLR or Kernal Address Space Layout Randomization – a kernel security feature – in order to avoid the AWS hibernate failure. It you enable it, you will not be able resume the status. So, you must disable the KASLR feature first before enabling the hibernate support.