Install Hibernation for Ubuntu 16.04 LTS on EC2

Install Hibernation for Ubuntu 16.04 LTS on EC2

June 6, 2020 / Eternal Team

Hibernation is now Available on AWS EC2, in this blog we explain to you how we can install hibernation on your running instances.

What is hibernation?

In simple words, it’s to pause your running instance when it is not required and resume them at a later time. Users can take advantage of this feature without the need of modifying your existing applications.

Steps for implementing hibernate on AWS

Step 1.

Sign in to your AWS account and lunch instance.

Step 2.

Connect the instance via putty or SSH

Something you have to know,

Hibernation on Amazon EC2 is provided by the linux-aws-hwe kernel package, version of 4.15.0-1058-aws, now available for Ubuntu 16.04 LTS.

Step 3.

Follow my instructions

sudo apt update

Install Hibernation for Ubuntu 16.04 LTS on EC2

Step 4.

sudo apt install linux-aws-hwe

Install Hibernation for Ubuntu 16.04 LTS on EC2

Step 5.

sudo apt install ec2-hibinit-agent

Install Hibernation for Ubuntu 16.04 LTS on EC2

Step 6.

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

uname -a

Install Hibernation for Ubuntu 16.04 LTS on EC2

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.

AWS-Consulting-Partner

Talk to AWS Certified Consultant

Want to start a project?

It’s simple.

Contact us