Verified with 1.0.0-0ubuntu4~16.04.0 on Xenial:
+ sudo apt-get install -qq ec2-hibinit-agent debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 1.) debconf: falling back to frontend: Readline Selecting previously unselected package ec2-hibinit-agent. (Reading database ... 38529 files and directories currently installed.) Preparing to unpack .../ec2-hibinit-agent_1.0.0-0ubuntu4~16.04.0_all.deb ... Unpacking ec2-hibinit-agent (1.0.0-0ubuntu4~16.04.0) ... Setting up ec2-hibinit-agent (1.0.0-0ubuntu4~16.04.0) ... + sleep 3 + curl http://169.254.169.254/latest/meta-data/hibernation/configured <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>404 - Not Found</title> </head> <body> <h1>404 - Not Found</h1> </body> </html> + service hibinit-agent status ● hibinit-agent.service - EC2 instance hibernation setup agent Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-03-12 11:53:46 UTC; 3s ago Docs: file:/usr/share/doc/ec2-hibinit-agent/README
Mar 12 11:53:46 ip-172-31-0-169 systemd[1]: Starting EC2 instance hibernation setup agent... Mar 12 11:53:46 ip-172-31-0-169 /hibinit-agent[5933]: Instance Launch has not enabled Hibernation Configured Flag. h ibinit-agent exiting!! Mar 12 11:53:46 ip-172-31-0-169 hibinit-agent[5933]: Instance Launch has not enabled Hibernation Configured Flag. hi binit-agent exiting!! Mar 12 11:53:46 ip-172-31-0-169 systemd[1]: Started EC2 instance hibernation setup agent. + true + sudo apt-get install -qq screen
+ sudo apt-get install -qq ec2-hibinit-agent + sleep 3 + curl http://169.254.169.254/latest/meta-data/hibernation/configured <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>404 - Not Found</title> </head> <body> <h1>404 - Not Found</h1> </body> </html> + service hibinit-agent status ● hibinit-agent.service - EC2 instance hibernation setup agent Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-03-12 11:39:16 UTC; 15min ago Docs: file:/usr/share/doc/ec2-hibinit-agent/README
Mar 12 11:39:16 ip-172-31-11-52 systemd[1]: Starting EC2 instance hibernation setup agent... Mar 12 11:39:16 ip-172-31-11-52 /hibinit-agent[1730]: Instance Launch has not enabled Hibernation Configured Flag. h Mar 12 11:39:16 ip-172-31-11-52 hibinit-agent[1730]: Instance Launch has not enabled Hibernation Configured Flag. hi Mar 12 11:39:16 ip-172-31-11-52 systemd[1]: Started EC2 instance hibernation setup agent. + true + sudo apt-get install -qq screen + screen -d -m top ubuntu@ip-172-31-11-52:~$ dpkg -l ec2-hibinit-agent | cat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=================-======================-============-================================= ii ec2-hibinit-agent 1.0.0-0ubuntu4~16.04.0 all Amazon EC2 hibernation agent
+ sudo apt-get install -qq ec2-hibinit-agent + sleep 3 + curl http://169.254.169.254/latest/meta-data/hibernation/configured true+ service hibinit-agent status ● hibinit-agent.service - EC2 instance hibernation setup agent Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2019-03-12 11:39:40 UTC; 15min ago Docs: file:/usr/share/doc/ec2-hibinit-agent/README Main PID: 1727 (code=exited, status=0/SUCCESS)
Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Allocating 4194304000 bytes in /swap-hibinit Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Swap pre-heating is skipped, the swap blocks won't be touched Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Running: mkswap /swap-hibinit Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Running: swapon /swap-hibinit Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Updating the kernel offset for the swapfile: /swap-hibinit Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Updating GRUB to use the device /dev/xvda1 with offset 346112 Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: GRUB configuration is updated Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Setting swap device to 51713 with offset 346112 Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Done updating the swap offset. Turning swapoff Mar 12 11:39:40 ip-172-31-12-48 hibinit-agent[1723]: Running: swapoff /swap-hibinit + true + sudo apt-get install -qq screen + screen -d -m top ubuntu@ip-172-31-12-48:~$ dpkg -l ec2-hibinit-agent | cat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=================-======================-============-================================= ii ec2-hibinit-agent 1.0.0-0ubuntu4~16.04.0 all Amazon EC2 hibernation agent
Verified with 1.0.0-0ubuntu4~ 16.04.0 on Xenial:
+ sudo apt-get install -qq ec2-hibinit-agent perl5/Debconf/ FrontEnd/ Dialog. pm line 76, <> line 1.) hibinit- agent_1. 0.0-0ubuntu4~ 16.04.0_ all.deb ... 0ubuntu4~ 16.04.0) ... 0ubuntu4~ 16.04.0) ... 169.254. 169.254/ latest/ meta-data/ hibernation/ configured "iso-8859- 1"?> www.w3. org/TR/ xhtml1/ DTD/xhtml1- transitional. dtd"> www.w3. org/1999/ xhtml" xml:lang="en" lang="en"> agent.service - EC2 instance hibernation setup agent system/ hibinit- agent.service; enabled; vendor preset: enabled) share/doc/ ec2-hibinit- agent/README
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/
debconf: falling back to frontend: Readline
Selecting previously unselected package ec2-hibinit-agent.
(Reading database ... 38529 files and directories currently installed.)
Preparing to unpack .../ec2-
Unpacking ec2-hibinit-agent (1.0.0-
Setting up ec2-hibinit-agent (1.0.0-
+ sleep 3
+ curl http://
<?xml version="1.0" encoding=
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
<html xmlns="http://
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
+ service hibinit-agent status
● hibinit-
Loaded: loaded (/lib/systemd/
Active: inactive (dead) since Tue 2019-03-12 11:53:46 UTC; 3s ago
Docs: file:/usr/
Mar 12 11:53:46 ip-172-31-0-169 systemd[1]: Starting EC2 instance hibernation setup agent... agent[5933] : Instance Launch has not enabled Hibernation Configured Flag. h agent[5933] : Instance Launch has not enabled Hibernation Configured Flag. hi
Mar 12 11:53:46 ip-172-31-0-169 /hibinit-
ibinit-agent exiting!!
Mar 12 11:53:46 ip-172-31-0-169 hibinit-
binit-agent exiting!!
Mar 12 11:53:46 ip-172-31-0-169 systemd[1]: Started EC2 instance hibernation setup agent.
+ true
+ sudo apt-get install -qq screen
+ sudo apt-get install -qq ec2-hibinit-agent 169.254. 169.254/ latest/ meta-data/ hibernation/ configured "iso-8859- 1"?> www.w3. org/TR/ xhtml1/ DTD/xhtml1- transitional. dtd"> www.w3. org/1999/ xhtml" xml:lang="en" lang="en"> agent.service - EC2 instance hibernation setup agent system/ hibinit- agent.service; enabled; vendor preset: enabled) share/doc/ ec2-hibinit- agent/README
+ sleep 3
+ curl http://
<?xml version="1.0" encoding=
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
<html xmlns="http://
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
+ service hibinit-agent status
● hibinit-
Loaded: loaded (/lib/systemd/
Active: inactive (dead) since Tue 2019-03-12 11:39:16 UTC; 15min ago
Docs: file:/usr/
Mar 12 11:39:16 ip-172-31-11-52 systemd[1]: Starting EC2 instance hibernation setup agent... agent[1730] : Instance Launch has not enabled Hibernation Configured Flag. h agent[1730] : Instance Launch has not enabled Hibernation Configured Flag. hi ip-172- 31-11-52: ~$ dpkg -l ec2-hibinit-agent | cat Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= -====== ======= ======= ==-==== ======= =-===== ======= ======= ======= ======= 16.04.0 all Amazon EC2 hibernation agent
Mar 12 11:39:16 ip-172-31-11-52 /hibinit-
Mar 12 11:39:16 ip-172-31-11-52 hibinit-
Mar 12 11:39:16 ip-172-31-11-52 systemd[1]: Started EC2 instance hibernation setup agent.
+ true
+ sudo apt-get install -qq screen
+ screen -d -m top
ubuntu@
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii ec2-hibinit-agent 1.0.0-0ubuntu4~
+ sudo apt-get install -qq ec2-hibinit-agent 169.254. 169.254/ latest/ meta-data/ hibernation/ configured agent.service - EC2 instance hibernation setup agent system/ hibinit- agent.service; enabled; vendor preset: enabled) share/doc/ ec2-hibinit- agent/README
+ sleep 3
+ curl http://
true+ service hibinit-agent status
● hibinit-
Loaded: loaded (/lib/systemd/
Active: inactive (dead) since Tue 2019-03-12 11:39:40 UTC; 15min ago
Docs: file:/usr/
Main PID: 1727 (code=exited, status=0/SUCCESS)
Mar 12 11:39:40 ip-172-31-12-48 hibinit- agent[1723] : Allocating 4194304000 bytes in /swap-hibinit agent[1723] : Swap pre-heating is skipped, the swap blocks won't be touched agent[1723] : Running: mkswap /swap-hibinit agent[1723] : Running: swapon /swap-hibinit agent[1723] : Updating the kernel offset for the swapfile: /swap-hibinit agent[1723] : Updating GRUB to use the device /dev/xvda1 with offset 346112 agent[1723] : GRUB configuration is updated agent[1723] : Setting swap device to 51713 with offset 346112 agent[1723] : Done updating the swap offset. Turning swapoff agent[1723] : Running: swapoff /swap-hibinit ip-172- 31-12-48: ~$ dpkg -l ec2-hibinit-agent | cat Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= -====== ======= ======= ==-==== ======= =-===== ======= ======= ======= ======= 16.04.0 all Amazon EC2 hibernation agent
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
Mar 12 11:39:40 ip-172-31-12-48 hibinit-
+ true
+ sudo apt-get install -qq screen
+ screen -d -m top
ubuntu@
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii ec2-hibinit-agent 1.0.0-0ubuntu4~