If using ctrl+c to exit, it reports qemu-system-x86_64: terminating on signal 2 but the process is still running in the background. Each new run creates a new process and they begin to build up. Killing with kill -9 seems to corrupt the .img file (not tested with COW, just raw):
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 4240 1560 pts/0 Ss 13:33 0:00 bash
root 113 71.7 37.3 1300320 373348 pts/0 Tl 13:36 0:51 qemu-system-x86_64 -machine q35,accel=kvm -cpu max -smp cores=4 -m 512M -drive if=pflash,format=raw,u
root 125 0.0 0.2 5892 2776 pts/0 R+ 13:37 0:00 ps aux
If using ctrl+c to exit, it reports
qemu-system-x86_64: terminating on signal 2
but the process is still running in the background. Each new run creates a new process and they begin to build up. Killing withkill -9
seems to corrupt the .img file (not tested with COW, just raw):