systemctl hibernate
. But for this to work you need to have enough swap space available and set up in a way that can be resumed from it, to contain all RAM contents.Hi aaron,Okay, no that is not really intended as a Proxmox VE server is usually running 24/7.
You can try to put it into hibernate manually withsystemctl hibernate
. But for this to work you need to have enough swap space available and set up in a way that can be resumed from it, to contain all RAM contents.
Since this is not a use case PVE is intended for, the default disk layout usually does not have a swap space large enough, if it even has swap configured at all.
Why not just power down the node if you don't need it?
Really sad story.... I don't know why hibernate don't work...I want exactly the same. Proxmox is running on my Laptop. A shutdown and startup takes each ~5 min.
Suspend to RAM works, but network problems after wake up.
Hibernate does logout and then a reboot.
/etc/initramfs-tools/conf.d #: cat pve-initramfs.conf
# disable suspend-to-disk, as it delays boot on systems with root on ZFS
RESUME=none
/etc/initramfs-tools/conf.d #: rm pve-initramfs.conf
/etc/initramfs-tools/conf.d #: update-initramfs -k all -u
thank you.@LnxBil If you are referring to me - I have SWAP partition, sized 33GB (32GB ram here, not even half of that is never used), and only ext4 is used and ceph.
I'm facing this problem too (PVE 7.3 installed on a debian 11.6 vanilla) and I've tried lot of combos.Hi aaron,
I want to use proxmox in my laptop, and running both macos and windows on it. So I just added xfce2 to proxmox and got a GUI then it's OK to enter vm with same machine. So the hibernate mode is the best choice if I want to take this laptop to office.
I build a swap file and make it swapon, but when choose hibernate, it just reboot...
After reboot, the swapfile keeps off.
I google it and many replies said uswsusp was required, but apt-get install uswsusp found no packages... I think I could fetch the target uswsusp package from debian download site, but is that the right way to make hibernate run on proxmox???
btw, the proxmox version is newest 7.0.1.
systemctl hibernate
, it works. I have a swap disk partition and I modify grub to use it using resume=uuid=
parameter (and update-grub soon after)./sys/power/disk
is [platform] shutdown reboot suspend test_resume
: it seems to act as "reboot", the first time.# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
UUID=DA0A-1AA9 /boot/efi vfat defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
UUID=2dc3e04f-f161-4023-8419-123677d7cbc4 /my_data/disk_1 ext4 defaults 0 2
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /my_data/disk_1
sdb 8:16 0 238.5G 0 disk
├─sdb1 8:17 0 1007K 0 part
├─sdb2 8:18 0 1G 0 part /boot/efi
└─sdb3 8:19 0 237.5G 0 part
├─pve-swap 253:0 0 20G 0 lvm [SWAP]
├─pve-root 253:1 0 66.4G 0 lvm /
├─pve-data_tmeta 253:2 0 1.3G 0 lvm
│ └─pve-data 253:4 0 132.4G 0 lvm
└─pve-data_tdata 253:3 0 132.4G 0 lvm
└─pve-data 253:4 0 132.4G 0 lvm
[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=
#SuspendEstimationSec=60min
I don't know if this is still true, haven't used hibernate for over 10 years, but there is kernel command line setting resume=<UUID-of-your-swap> that tries to explicitly use this. Maybe this helps.Hi,
I'm also trying to config on a new bare metal, Proxmox 8.0.2 (my previous post remains unsolved for me ).
I've defined - during the install process - and seen that there is a swap partition, even if not in the classic way I'm used to see ('cause I'm newbie ... I've to study lvm and pve partitions).
Now, if I tried to hibernate, it seems that partition is not seen as a swap one and not used (I say so because the system just shutdown).
Is there a way to do this?
This is my fstab:
and this is my lsblk output:Code:# <file system> <mount point> <type> <options> <dump> <pass> /dev/pve/root / ext4 errors=remount-ro 0 1 UUID=DA0A-1AA9 /boot/efi vfat defaults 0 1 /dev/pve/swap none swap sw 0 0 proc /proc proc defaults 0 0 UUID=2dc3e04f-f161-4023-8419-123677d7cbc4 /my_data/disk_1 ext4 defaults 0 2
Code:NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 931.5G 0 disk └─sda1 8:1 0 931.5G 0 part /my_data/disk_1 sdb 8:16 0 238.5G 0 disk ├─sdb1 8:17 0 1007K 0 part ├─sdb2 8:18 0 1G 0 part /boot/efi └─sdb3 8:19 0 237.5G 0 part ├─pve-swap 253:0 0 20G 0 lvm [SWAP] ├─pve-root 253:1 0 66.4G 0 lvm / ├─pve-data_tmeta 253:2 0 1.3G 0 lvm │ └─pve-data 253:4 0 132.4G 0 lvm └─pve-data_tdata 253:3 0 132.4G 0 lvm └─pve-data 253:4 0 132.4G 0 lvm
If may help this is etc/systemd/sleep.conf. have I to decomment something?
Code:[Sleep] #AllowSuspend=yes #AllowHibernation=yes #AllowSuspendThenHibernate=yes #AllowHybridSleep=yes #SuspendMode= #SuspendState=mem standby freeze #HibernateMode=platform shutdown #HibernateState=disk #HybridSleepMode=suspend platform shutdown #HybridSleepState=disk #HibernateDelaySec= #SuspendEstimationSec=60min
Maybe you need also some grub config file? Some form journalctl?
Thanks a lot for any suggestions!!
resume=uuid=328d8454-9e72-4598-aacf-cbf6add14c87
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on i915.enable_gvt=1"
update-grub
resume
with the swap uuid partition in the folder /etc/initramfs-tools/conf.d//etc/initramfs-tools/conf.d/pve-initramfs.conf
that contains# disable suspend-to-disk, as it delays boot on systems with root on ZFS
RESUME=none
TASK ERROR: command '/usr/bin/termproxy 5900 --path /nodes/proxmox-node2 --perm Sys.Console -- /bin/login -f root' failed: exit code 1