Is Sleep or Hibernate possible in Windows guest VM?

kingp0dd

New Member
Mar 28, 2024
5
1
3
Sleep option is not present in the Start menu. This VM is for veeam and I'd like to put it to sleep when not performing a backup (it has an option to go to Sleep after a backup completes). I have a task to wake it up on schedule but when I'm going to test it, I found out that Sleep is not present in Start Menu. I also tried
Code:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
but it's not working too.

Is there an option in Proxmox to allow Sleep?

Code:
Windows 11 Guest VM
QM Agent installed
CPU(s) 8 x 12th Gen Intel(R) Core(TM) i3-12100 (1 Socket)
Kernel Version Linux 6.5.13-1-pve (2024-02-05T13:50Z)


Code:
cat /etc/pve/qemu-server/102.conf
agent: 1
balloon: 4096
bios: ovmf
boot: order=scsi0;ide0;ide2;net0
cores: 4
cpu: x86-64-v2-AES
efidisk0: truenas_vms:102/vm-102-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide0: truenas_vms:iso/virtio-win-0.1.248.iso,media=cdrom,size=715188K
ide2: truenas_vms:iso/Windows 11.iso,media=cdrom,size=5529856K
machine: pc-q35-8.1
memory: 5096
meta: creation-qemu=8.1.5,ctime=1712038400
name: veeam
net0: virtio=BC:24:11:87:A8:0F,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: win11
scsi0: truenas_vms:102/vm-102-disk-1.qcow2,cache=writeback,discard=on,iothread=1,size=62G
scsihw: virtio-scsi-single
shares: 1000
smbios1: uuid=64cc45d5-bf84-4501-9319-9b4c899fb97e
sockets: 1
tpmstate0: truenas_vms:102/vm-102-disk-0.raw,size=4M,version=v2.0
vmgenid: 2b7ce7a0-00d1-47f3-a74e-a0c0ea5a1cae
 
Last edited:
udpate: it says Graphics, my Graphics in VM options is just set to Default. Is it related to that? Do I need to change it to something else for Sleep to work?

Code:
powercfg /availablesleepstates
The following sleep states are available on this system:
Hibernate
Fast Startup

The following sleep states are not available on this system:
Standby (S1)
The system firmware does not support this standby state.
An internal system component has disabled this standby state.
Graphics

Standby (S2)
The system firmware does not support this standby state.
An internal system component has disabled this standby state.
Graphics

Standby (S3)
An internal system component has disabled this standby state.
Graphics

Standby (Connected)
The system firmware does not support this standby state.

Hybrid Sleep
Standby (S3) is not available.
 
There are probably several solutions thinkable.

I would simply shutdown the VM from inside the guest and start the VM via cron "qm start <vmid>" on the host. This just look more "normal" to me...

Good luck.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!