Comment 5 for bug 1866984

Revision history for this message
Horst Schirmeier (horst) wrote : Re: hibernate-disk resumes instantly

To ensure that hibernate/resume *should* work properly in a KVM environment, I reproduced the above steps with Ubuntu 19.10 Eoan Desktop (x86_64). After applying one missing step (see below), hibernate-disk successfully hibernated the machine state in /swapfile and powered off the VM; restarting kvm resumed the state as expected.

The additionally necessary step to make resume work properly (hibernate-disk works with the above steps alone, but resume doesn't):

-> add resume=/swapfile to the GRUB_CMDLINE_LINUX_DEFAULT string in /etc/default/grub; run update-grub