Backup of Windows 2022 on NAS failed due to "VM quit/powerdown failed"

Bama

New Member
Nov 8, 2024
4
0
1
Hi,

I am absolutely new to Proxmox and managed to get it installled, a VM machine with Win Server 2022 running and also to setup a backup to my local Synology NAS by following some guides and videos.

Unfortunately my backup failed and I'm not quite sure why and I hope that someone can point me into the right direction.

Logs​

vzdump 100 --mailnotification failure --notes-template '{{guestname}}' --node pve --mode stop --fleecing 0 --mailto href="mailto:xx@xx.eu">xx@xx.eu --quiet 1 --storage synology-nas --compress zstd

100: 2024-11-07 21:00:02 INFO: Starting Backup of VM 100 (qemu)
100: 2024-11-07 21:00:02 INFO: status = running
100: 2024-11-07 21:00:02 INFO: backup mode: stop
100: 2024-11-07 21:00:02 INFO: ionice priority: 7
100: 2024-11-07 21:00:02 INFO: VM Name: WinServer22
100: 2024-11-07 21:00:02 INFO: include disk 'scsi0' 'local-lvm:vm-100-disk-1' 200G
100: 2024-11-07 21:00:02 INFO: include disk 'efidisk0' 'local-lvm:vm-100-disk-0' 4M
100: 2024-11-07 21:00:02 INFO: include disk 'tpmstate0' 'local-lvm:vm-100-disk-2' 4M
100: 2024-11-07 21:00:03 INFO: stopping virtual guest
100: 2024-11-07 21:10:03 INFO: VM quit/powerdown failed
100: 2024-11-07 21:10:03 ERROR: Backup of VM 100 failed - command 'qm shutdown 100 --skiplock --keepActive --timeout 600' failed: exit code 255

Am I reading this corretly, that the backup stopped because the VM machine (Win Server 2022) could not be stopped/powered down? Is it supposed to do that? Shouldn't a backup be possible whilst the VM is running?

I would appreciate it if someone could write me how i can fix this issue.

Thank you
 
Hello @Bama and welcome to Proxmox Community :)

A shutdown of the VM should also work normally. If no Qemu agent is activated and installed, you have to edit the energy guidelines and the local GPOs in Windows so that a shutdown with ACPI is possible.

Computer Configuration“ -> ‘Administrative Templates’ -> ‘System’, set the right-hand column ”Show event logging for shutdown “ to ”Disabled “. Set"Remove status messages for restart, shutdown, logon and logoff ‘ (6 entries below) to ’Enabled ”. Then edit the energy saving plan and set it so that the screen never switches off and the computer shuts down when the on/off switch is pressed. Disable also quick start.

Am I reading this corretly, that the backup stopped because the VM machine (Win Server 2022) could not be stopped/powered down? Is it supposed to do that? Shouldn't a backup be possible whilst the VM is running?
Basically, there is nothing to be said against it. If you have activated the Qemu agent in your VM configuration and have also installed the agent in your Windows server, you can also use the “snapshot” method. This briefly freezes the filesystem and creates a snapshot of your VM for the backup. This allows the VM to remain in safe operation.

[1] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_qemu_agent
 
Thank you for the quick reply mariol.

I see that I have to dig in deeper in the whole topic so that I can understand everthing.