VirtIO SCSI single
and IO Thread
by default, yesterday morning i had another Debian12 VM unresponsive (without snapshot this time) freezing at 01 Am for no apparent reason, i had a partial local console connection but no prompt, had too reboot (force reboot) to regain control over the VM. If i snapshot with Memory the same problem may occur.It seems like you are using the (default in the backend)Hi
@fiona , all my VMs are usingVirtIO SCSI single
andIO Thread
by default, yesterday morning i had another Debian12 VM unresponsive (without snapshot this time) freezing at 01 Am for no apparent reason, i had a partial local console connection but no prompt, had too reboot (force reboot) to regain control over the VM. If i snapshot with Memory the same problem may occur.
Regards,
View attachment 76667View attachment 76668
kvm64
Processor/CPU type, which is not recommended anymore nowadays. Can you try switching to x86-64-v2-AES
or something close to your physical model: https://pve.proxmox.com/pve-docs/chapter-qm.html#_cpu_typeoct. 23 15:33:10 xxxxx kernel: clocksource: Long readout interval, skipping watchdog check: cs_nsec: 1000034688 wd_nsec: 1000034116
#!/bin/bash
while true; do
stress -c 1 --timeout 1
sleep 0.5
done
while [ 1 ]; do date ; dd if=/dev/random of=/tmp/FILE-BIG-1G bs=1M count=1000 ;done
1048576000 octets (1,0 GB, 1000 MiB) copiés, 3,3899 s, 309 MB/s
saving VM state and RAM using storage 'vms'
4.02 MiB in 0s
1.12 GiB in 1s
1.49 GiB in 2s
1.80 GiB in 3s
2.05 GiB in 4s
2.36 GiB in 5s
snapshot create failed: starting cleanup
TASK ERROR: unable to save VM state and RAM - qemu_savevm_state_complete_precopy error -5
1048576000 octets (1,0 GB, 1000 MiB) copiés, 4,84992 s, 216 MB/s
saving VM state and RAM using storage 'vms'
1.51 MiB in 0s
882.54 MiB in 1s
1008.48 MiB in 2s
1.22 GiB in 3s
1.39 GiB in 5s
1.56 GiB in 6s
1.69 GiB in 7s
1.84 GiB in 8s
1.95 GiB in 9s
2.10 GiB in 10s
2.18 GiB in 11s
2.19 GiB in 12s
completed saving the VM state in 13s, saved 2.44 GiB
snapshotting 'drive-scsi0' (vms:vm-111-disk-0)
snapshotting 'drive-efidisk0' (vms:vm-111-disk-1)
TASK OK
1048576000 octets (1,0 GB, 1000 MiB) copiés, 11,4522 s, 91,6 MB/s
1048576000 octets (1,0 GB, 1000 MiB) copiés, 17,3274 s, 60,5 MB/s
1048576000 octets (1,0 GB, 1000 MiB) copiés, 35,1212 s, 29,9 MB/s
1048576000 octets (1,0 GB, 1000 MiB) copiés, 253,325 s, 4,1 MB/s
oct. 23 17:32:15 debian12 kernel: clocksource: Long readout interval, skipping watchdog check: cs_nsec: 1076691946 wd_nsec: 1076691530
Hi @fionaHi,
@derjoerg. Are you using theIO Thread
setting on for the VM disks? You might want to try and see if that helps. Turning it on also requires selecting theVirtIO SCSI single
controller.
Might also be worth giving a shot for other people in this thread.
apt install pve-qemu-kvm=8.1.5-6
? A VM needs to be shut down and started again to be running with the newly installed QEMU binary. The Reboot
button in web interface also works, reboot inside the VM is not enough!I am having the same issue. Took a snapshot with RAM as I did already several times before, and after the snapshot it was unresponsive. This is the output ofqm status <ID> --verbose
balloon: 4294967296
ballooninfo:
actual: 4294967296
free_mem: 363380736
last_update: 1727510890
major_page_faults: 11611
max_mem: 4294967296
mem_swapped_in: 0
mem_swapped_out: 8192
minor_page_faults: 1266619200
total_mem: 4105109504
apt install pve-qemu-kvm-dbgsym gdb
and then, once the VM is sluggish or stuck after the snapshot, rungdb --batch --ex 't a a bt' -p $(cat /var/run/qemu-server/100.pid)
100
with the actual ID of the VM.Hi,Hello again,
today after 3 Snapshots (one everyday at 8:33) the VM crashes.
i use cv4pve-autosnap in crontab. did anyone know how to disable RAM-Snapshot? (--help cant help)
whats the downside of Snapshotting without RAM?
The GDB output can help to check if it is the same issue.To gather debug information, you can runapt install pve-qemu-kvm-dbgsym gdb
and then, once the VM is sluggish or stuck after the snapshot, run
replacingCode:gdb --batch --ex 't a a bt' -p $(cat /var/run/qemu-server/100.pid)
100
with the actual ID of the VM.
When will this patch be released?There is a preliminary patch on the mailing list now that might solve the issue for snapshot with RAM: https://lore.proxmox.com/pve-devel/20241030095240.11452-1-f.ebner@proxmox.com/T/#u
It's not yet in any released package.
The GDB output can help to check if it is the same issue.
We use essential cookies to make this site work, and optional cookies to enhance your experience.