Skip to content

Hibernated RHEL 10 EC2 Instance

0

I'm trying to create an EC2 instance of RHEL 10 (RedHat-10) with hibernation. With a similar instance, but based on 9.6, everything works perfect.

I know that it's not supported officially, but I've waited 2 months and there is still no support in the horizon (if you are going to support it soon, then - Woohooo! Thanks!). And in any case, this machine is only for testing.

The problem in 10 begins when the DNF can't find ec2-hibinit-agent. RPM of 9 doesn't help. I downloaded SRPM of 9 and re-built it, but nada. I downloaded sources from github but the build failed because ec2-hibinit-agent isn't compatible with the current setuptools. So I installed it manually, as described in the github's Issues, but still no help.

The symptom is that when trying to hybernate the machine, and/or restarting it, it's freezing for a long time (even an hour!), and then reboot normally without hibernation.

I found no suspect in var/log/messages (the problem probably happens before the system starts to write to it).

I have no problem to use another AMI, if it helps (currently use the official RHEL 10).

Thanks for any help!

asked a year ago200 views

2 Answers
1

When an EC2 instance is having trouble hibernating, it's often related to the hibernation configuration not being properly set up. Based on your description, you're experiencing issues with a RHEL 10 instance where hibernation attempts result in the instance freezing for a long time before rebooting normally without hibernation.

For troubleshooting hibernation issues on Linux instances, you should check the instance system log for messages related to hibernation. You can do this by connecting to the instance or using the get-console-output command. Look specifically for log lines from the hibinit-agent. If these log lines indicate a failure or are missing entirely, it suggests that hibernation was not properly configured at launch.

Common hibernation issues include:

  • Insufficient disk space on the root volume (you would see a message like: "hibinit-agent: Insufficient disk space. Cannot create setup for hibernation. Please allocate a larger root device.")
  • Incompatible AMI (not all AMIs support hibernation)
  • Issues with the hibernation agent itself

Since you're using RHEL 10, which as you noted isn't officially supported for hibernation yet, the compatibility issues with ec2-hibinit-agent are likely the root cause. The agent is essential for configuring hibernation properly on Linux instances.

If your instance appears stuck in the stopping state after attempting hibernation, you may need to forcibly stop it. However, this won't resolve the underlying hibernation configuration issue.

As a workaround, since you mentioned RHEL 9.6 works perfectly with hibernation, you might want to continue using that version for any workloads that require hibernation until official support for RHEL 10 is available.
Sources
Troubleshoot Amazon EC2 instance hibernation - Amazon Elastic Compute Cloud

answered a year ago

  • Thank you (or whatever should be said to automatic bots... ;-) Since the machine is for testing, I'll love to use workarounds based on RHEL 10, even if it requires a technical effort. Is there any roadmap for RHEL 10 version of ec2-hibinit-agent?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.