qemu-ga fs-freeze causes VM to
Host environment
- Operating system: Debian 11 (Proxmox 7.1-10)
- OS/kernel version: Linux pve1-eri1 5.13.19-4-pve #1 SMP PVE 5.13.19-9 (Mon, 07 Feb 2022 11:01:14 +0100) x86_64 GNU/Linux
- Architecture: AMD64
- QEMU flavor: pve-qemu-kvm/stable,now 6.1.1-2 amd64
- QEMU version: QEMU emulator version 6.1.1 (pve-qemu-kvm_6.1.1)
- QEMU command line:
/usr/bin/kvm -id 103 -name mariadb1 -no-shutdown -chardev socket,id=qmp,path=/var/run/qemu-server/103.qmp,server=on,wait=off -mon chardev=qmp,mode=control -chardev socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5 -mon chardev=qmp-event,mode=control -pidfile /var/run/qemu-server/103.pid -daemonize -smbios type=1,uuid=a924bd8f-87cd-465c-8d07-b5fb17883f9e -smp 2,sockets=1,cores=2,maxcpus=2 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg -vnc unix:/var/run/qemu-server/103.vnc,password=on -cpu host,+kvm_pv_eoi,+kvm_pv_unhalt -m 2048 -device pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e -device pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f -device vmgenid,guid=4d005c4e-325e-4d02-b26f-832043f60d8a -device piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2 -device VGA,id=vga,bus=pci.0,addr=0x2 -chardev socket,path=/var/run/qemu-server/103.qga,server=on,wait=off,id=qga0 -device virtio-serial,id=qga0,bus=pci.0,addr=0x8 -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -iscsi initiator-name=iqn.1993-08.org.debian:01:7b7afcc344f0 -device virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5 -drive file=/dev/zvol/rpool/data/vm-103-disk-0,if=none,id=drive-scsi0,format=raw,cache=none,aio=io_uring,detect-zeroes=on -device scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100 -netdev type=tap,id=net0,ifname=tap103i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device virtio-net-pci,mac=56:6D:91:28:1E:28,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=101 -machine type=pc+pve0
Emulated/Virtualized environment
- Operating system: Debian 11
- OS/kernel version: Linux mariadb1 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux
- Architecture: AMD64
Description of problem
I have fresh install of Debian 11 and installed MariaDB 10.7 from MariaDB's Repo. Guest is fully up to date.
When Proxmox goes to do a backup it will call fs-freeze to the VM via the agent which then causes the backup process to hang and the VM will lockup or causes kernel message such as **task qemu-ga:370 blocked for more than 120 seconds**
. The VM from what I can tell no longer is able to write to disk, and the only fix is to force reset the VM.
The issue doesn't happen when the VM has first started or the agent has been restart from what I can tell, but if you leave it and wait for the nightly backup to run of the VM, it will then cause this issue to happen.
There are other reports of this happening on the proxmox forums More details on this topic. Other reports with the issue with MariaDB 10.6.
My other Debian 11 VMs which were also setup recently, do not experience this problem, only difference is this VM is running the MariaDB. I have Gitlab, Docker, Mailcow, PowerDNS, OPNsense (each of these separate VM) in the other VMs and they do not experience this issue. All these VMs are running Debian 11.
Agent Info
qemu-guest-agent/stable,stable-security,now 1:5.2+dfsg-11+deb11u1 amd64
Steps to reproduce
- Install Proxmox (although I would assume any QEMU 6.1.1)
- Create a Debian 11 guest with MariaDB 10.7 from MariaDB repo
- Wait good few hours
- Issue a backup or fs-freeze