[SOLVED] How can I check why a Windows 11 VM resumes?

frenk970

Well-Known Member
Jan 20, 2020
94
3
48
27
Good morning,
I have a problem with a Windows 11 VM, after a while of not using it it goes into resume mode and from the log I can't find the line that displays the event, how can I solve it?

pveversion: pve-manager/8.2.4/faa83925c9641325 (running kernel: 6.8.12-1-pve)

VM config:

Code:
agent: 1,fstrim_cloned_disks=1,type=virtio
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=on'
balloon: 0
bios: ovmf
boot:
cores: 8
cpu: x86-64-v4
cpuunits: 3072
efidisk0: local-lvm:vm-105-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:01:00,pcie=1,x-vga=1
hotplug: disk,network,usb
machine: pc-q35-8.1,viommu=intel
memory: 16384
name: Windows-11
net0: virtio=62:66:c9:54:bd:d6,bridge=vmbr0,firewall=1
numa: 1
onboot: 1
ostype: win11
sata0: VMSSD:vm-105-disk-0,size=150G,ssd=1
sata1: VMDati:vm-105-disk-0,size=500G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=6a0e3325-55d5-48a8-a898-ed3fc93f3040
sockets: 1
startup: order=4,up=10
tpmstate0: local-lvm:vm-105-disk-1,size=4M,version=v2.0
usb0: host=046d:c52b,usb3=1
usb1: host=046d:0893,usb3=1
usb2: host=2040:8265,usb3=1
usb3: host=2040:8265,usb3=1
vmgenid: ddcf50ee-7ce2-4a7d-b6cc-1e4db4cf532a
 
Windows sleep by default after 30 minutes.
afaik, VM can't go in sleep because virtual basic video, but
since you've pass the GPU, Sleep function is available.
thanks, I hadn't thought of that.

I'll let you know